1833012 Members
3027 Online
110048 Solutions
New Discussion

chmod link

 
SOLVED
Go to solution
Scott D. Allen
Regular Advisor

chmod link

I inadvertantly deleted a slink from /usr/bin (/usr/bin/as). Now, I'm trying to recreate it with the same perms. lr-xr-xr-t however, whenever I modify the perms (chmod 1555 as), it just changes the perms of the file that it's linked to. How do I modify the perms on the link?
"Sometimes the devil you know is better than the devil you don't know."
4 REPLIES 4
Kofi ARTHIABAH
Honored Contributor

Re: chmod link

The man pages on chmod say:

If chmod is used on a symbolic link, the mode of the file referred to
by the link is changed.

so i think its behaving like it should.
nothing wrong with me that a few lines of code cannot fix!
James R. Ferguson
Acclaimed Contributor

Re: chmod link

Scott:

The lowercase 't' indictates a 'transition link'. If this is the missing element then I think you need to run tlinstall.

...JRF...
James R. Ferguson
Acclaimed Contributor
James R. Ferguson
Acclaimed Contributor

Re: chmod link

Scott (or whoever):

The link didn't paste terribly well. The document is type "EN", ID=S3100000611, title="Sys Adm: losing the 'sticky bit' when copying a file", dated 1999 Nov 24.

...JRF...