Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Symbolic Links

Status
Not open for further replies.

pbird42

Technical User
Jul 27, 2010
3
CA
Hi everyone,

Quick question about symbolic links. Symbolic links are always created with permissions of 777. Do these permissions, particularly the world read/write/execute, allow anyone to do anything to the symbolic link (such as change what the symbolic link points to) or are these permissions irrelevant and ignored by the system?
 
Not 100% sure but since anything you want to do involves opening the symbolic link as a file, and the system calls to open the symbolic link as a file will follow the symbolic link and try to open the target, then it's really hard to edit the actual symbolic link.
 
The permissions on a symlink have no meaning whatsoever. It's the permissions of what is eventually pointed to (and that could be some levels of symlinks deep) that matters.

So everyone is allowed to (try to) follow the links but some other permission might hinder that operation...


HTH,

p5wizard
 
Thanks for the info, that does help.

What about changing what the link points to? Can this only be done by the owner of the symbolic link by deleting the link and recreating it to point to a different file?















 
That I don't know off hand. Try it and see what happens? I am not at an AIX machine right now.

HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top