How to change users rights for a symboliked file.
Xian
ian at codepad.net
Fri Dec 22 14:48:20 PST 2006
On Thursday 21 December 2006 10:16, Halid Faith wrote:
> I use Freebsd6.1.
>
> I want to give a symbolic link for a directory with ln -s as below;
>
>
> cd /
>
> ln -s /var/tmp/ tmp2
>
> ls -l /var/tmp
> lrwxr-xr-x 1 root wheel 14 Dec 21 10:12 tmp -> /var/tmp
>
> I change write of user and group but i can't that.
> chmod 777 tmp2
>
> ls -l tmp2
> lrwxr-xr-x 1 root wheel 14 Dec 21 10:12 tmp -> /var/tmp
>
> Why don't I able to change user rights of tmp2 ?
I think you need the -h option to chmod. From the man page:
--
/Xian
"Knowledge speaks but wisdom listens"
Jimi Hendrix
More information about the freebsd-questions
mailing list