I’m using HomeBrew for my port needs (seems a bit “cleaner” than MacPorts).
I can install without sudo
ing (which is great), but the man linking step seems to require it (/usr/local/share/man/man3
is owned by root
).
A guide I found suggests I recursively chown /usr/local
by doing
sudo chown -R `whoami` /usr/local
Is this safe…or is it a Bad Idea™?
Also: are my permissions correct?
$ pwd
/usr/local/share/man
$ ls -lah
total 32
drwxrwxr-x 8 root staff 272B 4 Set 11:02 .
drwxrwxr-x 9 root staff 306B 10 Set 11:27 ..
drwxr-xr-x 3 root wheel 102B 4 Ago 2009 de
drwxrwxr-x 163 root staff 5,4K 10 Set 11:27 man1
drwxr-xr-x 11 root wheel 374B 10 Set 11:27 man3
drwxr-xr-x 7 ago staff 238B 10 Set 11:39 man5
drwxr-xr-x 11 ago staff 374B 10 Set 11:39 man7
-rw-r--r-- 1 root staff 13K 4 Set 11:02 whatis
sudo chown -R :admin /usr/local
. This way, it'll work the same for any admin user of the machine. Though you may also need to runsudo find /usr/local -perm -200 -exec chmod g+w '{}' \+
to ensure the group has the same write access as the user.