Code:
# touch FILE (-rw-r--r--)
# ln -s FILE SLINK (lrwxr-xr-x)
That is really strange as I actually get file chmod-edIf you have a file, foo, and a symlink to that file, bar, then this command will always succeed.
% chmod g-w bar
However, the permissions on foo will not have changed.
Code:
# chmod 0777 SLINK
lrwxr-xr-x 1 root wheel - 4B Feb 12 21:39:02 2010 SLINK -> FILE
-rwxrwxrwx 1 root wheel - 0B Feb 12 21:38:41 2010 FILE
There are nine system calls that do not follow links, and which operate on the symbolic link itself. Like lchmod(2)
Code:
# lchmod 0777 SLINK
lchmod: Command not found.