I am trying to chmod a folder in OS X Lion
However the settings do not seem to stay when I do…
users-MacBook-Air:MAMP user$ sudo chmod a=rwx /tmp
users-MacBook-Air:MAMP user$ ls -l /tmp
lrwxr-xr-x@ 1 root wheel 11 Jul 20 23:44 /tmp -> private/tmp
The first letter
linlrwxr-xr-xmeans that/tmpis a symbolic link.This part
/tmp -> private/tmpmeans that it links toprivate/tmp.From
man chmod:So, you can safely ignore your link’s permissions.
Note that
private/tmpis a path relative to the folder where/tmpis located –/. Its absolute path is/private/tmp.