1833402 Members
3353 Online
110052 Solutions
New Discussion

Softlink

 
Daniela Pinger
New Member

Softlink

lrwx------ 1 root sys 16 Nov 18 03:30 scp -> /opt/ssh/bin/scp

chmod 755 scp
=> 700

I need 755! What can I do ?
3 REPLIES 3
James Murtagh
Honored Contributor

Re: Softlink

Hi Daniela,

The permissions of a symbolic link itself is ignored, it is only the permissions of the target file that you need be concerned with. The "ln" manpage discusses this in more depth.

cheers,

James.
James Murtagh
Honored Contributor

Re: Softlink

Thought I'd add, if you really wanted the permissions to be 755 for whatever reason you could alter your umask to be 022 and re-create the link :

# rm scp
# umask 022
# ln -s /opt/ssh/bin/scp scp
Norman_21
Honored Contributor

Re: Softlink

Another way:
#rm -i scp
#chmod 755 /opt/ssh/bin/scp
#ln -s /opt/ssh/bin/scp scp

Hope this help!
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003