1827808 Members
12471 Online
109969 Solutions
New Discussion

chmod for link file

 
Macho_2
Frequent Advisor

chmod for link file

I want to change the below link file with the following file permission

lrwxrwxrwt I want change to lrwxrwxr--t
lrwxrwxrwx I want change to lrwxrwxr--

Please guide me how to change the above file.
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: chmod for link file

The mode of a symbolic link doesn't matter at all; only the mode of file pointed to actually matters but if this really bugs you then follow this link. It takes advantage of the undocumented lchmod() system call.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=910500&admit=-682735245+1165981117379+28353475
If it ain't broke, I can fix that.