Comments (8)
odd. What are the permissions of /usr/local/git/bin ?
Original comment by [email protected]
on 8 Sep 2009 at 6:48
- Changed state: Accepted
from git-osx-installer.
@timcharper--
Tracked this through in the Apple discussion forums here:
http://discussions.apple.com/thread.jspa?
messageID=10139530
Permissions came up as:
10:22:49 ~
rob@Connemara $ ls -ld /usr/local; ls -l !$
ls -ld /usr/local; ls -l /usr/local/git/bin/git
drwx------ 10 root wheel 340 Sep 5 19:02 /usr/local
ls: /usr/local/git/bin/git: Permission denied
10:23:26 ~
rob@Connemara $ sudo ls -ld /usr/local; sudo ls -l /usr/local/git/bin/git
Password:
drwx------ 10 root wheel 340 Sep 5 19:02 /usr/local
-rwxr-xr-x 1 root wheel 1079044 Sep 3 13:38 /usr/local/git/bin/git
And:
sudo chmod 755 /usr/local
...appeared to solve the problem.
So it turns out that the problem is not with the installer but rather with how
the OS X 10.6 installer resets the
permissions on /usr/local such that the git installer completes as though the
installation was successful
(because it was) even though the user account may not be able to access it.
Original comment by [email protected]
on 8 Sep 2009 at 11:22
from git-osx-installer.
Can you try out the latest package and see if it fixes things? Sheldon has been
helping with snow leopard
compatibility. Thanks!
Original comment by [email protected]
on 17 Sep 2009 at 7:26
- Changed state: Started
from git-osx-installer.
seems to work out ok
Original comment by [email protected]
on 18 Sep 2009 at 12:01
from git-osx-installer.
I also have permission problems. I tried changing permissions to 755 and even
changing ownership to my own user (although I reverted that as it didn't help).
What
do you make of this:
peter-marklunds-macbook-pro-15:~ peter$ ls -l /opt/local
ls: /opt/local: Permission denied
peter-marklunds-macbook-pro-15:~ peter$ sudo ls -ldh /opt/local
drwxr-xr-x 11 root admin 374B Sep 28 14:22 /opt/local
peter-marklunds-macbook-pro-15:~ peter$ ls -l /opt/local/bin
ls: /opt/local/bin: Permission denied
peter-marklunds-macbook-pro-15:~ peter$ /opt/local/bin/git
-bash: /opt/local/bin/git: Permission denied
peter-marklunds-macbook-pro-15:~ peter$ sudo ls -ldh /opt/local/bin/git
-rwxr-xr-x 2 root admin 1.0M Sep 28 15:27 /opt/local/bin/git
Thanks!
Peter
peter-marklunds-macbook-pro-15:~ peter$ sudo ls -ldh /opt/local/bin/git
-rwxr-xr-x 2 root admin 1.0M Sep 28 15:27 /opt/local/bin/git
peter-marklunds-macbook-pro-15:~ peter$ sudo chmod -R 755 /opt/local
peter-marklunds-macbook-pro-15:~ peter$ /opt/local/bin/git
-bash: /opt/local/bin/git: Permission denied
peter-marklunds-macbook-pro-15:~ peter$ sudo ls -ldh /opt/local/bin/git
-rwxr-xr-x 2 peter staff 1.0M Sep 28 15:27 /opt/local/bin/git
peter-marklunds-macbook-pro-15:~ peter$ sudo ls -ldh /opt/local/bin
drwxr-xr-x 115 peter staff 3.8K Sep 28 15:27 /opt/local/bin
peter-marklunds-macbook-pro-15:~ peter$ whoami
peter
peter-marklunds-macbook-pro-15:~ peter$ sudo ls -ldh /opt/local
drwxr-xr-x 11 root admin 374B Sep 28 14:22 /opt/local
peter-marklunds-macbook-pro-15:~ peter$ ls -l /opt/local
ls: /opt/local: Permission denied
peter-marklunds-macbook-pro-15:~ peter$ ls -l /opt/local/bin
ls: /opt/local/bin: Permission denied
peter-marklunds-macbook-pro-15:~ peter$ ls -l /opt/local/bin/git
ls: /opt/local/bin/git: Permission denied
peter-marklunds-macbook-pro-15:~ peter$ sudo ls -l /opt/local/bin/git
-rwxr-xr-x 2 peter staff 1094148 Sep 28 15:27 /opt/local/bin/git
Original comment by [email protected]
on 29 Sep 2009 at 2:40
from git-osx-installer.
@peter - why are you dealing with /opt/local/bin ? The git installer installs
to /usr/local/git
Original comment by [email protected]
on 29 Sep 2009 at 2:44
from git-osx-installer.
I fixed my permission issues. Seems there was a sticky permission bit (or
something)
on /opt:
peter-marklunds-macbook-pro-15:~ peter$ sudo ls -ldh /opt
drwx------ 3 root admin 102B Sep 28 14:20 /opt
peter-marklunds-macbook-pro-15:~ peter$ sudo chmod 755 /opt
Now I can execute git without sudo.
@timcharper - my git-core package was not installed to /usr/local, it was
installed
to /opt/local:
peter-marklunds-macbook-pro-15:~ peter$ sudo port contents git-core |grep
'/usr/local'
peter-marklunds-macbook-pro-15:~ peter$
peter-marklunds-macbook-pro-15:~ peter$ sudo port info git-core
git-core @1.6.4.4 (devel)
peter-marklunds-macbook-pro-15:~ peter$ port -v
MacPorts 1.8.0
Original comment by [email protected]
on 29 Sep 2009 at 2:53
from git-osx-installer.
OK :) you may have wandered to the wrong place. This is the issue list for the
Mac OS X git installer, not the
port installer :)
Glad you found your problem anyways.
Original comment by [email protected]
on 29 Sep 2009 at 2:58
- Changed state: Invalid
from git-osx-installer.
Related Issues (20)
- git crash - illegal instruction HOT 1
- Localization support! HOT 2
- Include credential-osxkeychain when installing HOT 2
- The lastest build of git is missing. HOT 3
- Git v1.7.11 Released HOT 3
- Installer fails to run under Mountain Lion with standard settings HOT 3
- git mergetool doesnt list opendiff as an option HOT 3
- Update to the latest stable upstream version HOT 1
- Git PS1 functionality no longer included HOT 2
- git-remote-http core dumps during clone HOT 1
- git-gui died of signal 11 HOT 17
- No installer available for Git 1.8.2 HOT 3
- Can't complete installation; stalls on "Destination Select" screen HOT 2
- git clone https fails with error about incompatible libcurl.4.dylib HOT 3
- git not working or taking in username
- git 1.8.4.1 (latest stable) not listed at Downloads HOT 1
- The latest version listed for download (1.8.5.2) is failing on OS X v10.7.5 HOT 3
- git-credential-osxkeychain compiled x86_64 only HOT 1
- Git 1.9.2 fails von < OS X 10.9 HOT 4
- Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-osx-installer.