top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Where is the target path of a symlink stored? How are permission settings for symlinks handled?

+1 vote
250 views
Where is the target path of a symlink stored? How are permission settings for symlinks handled?
posted Feb 18, 2016 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The target path of a symlink is stored in an inode - the data structure used to store file information on disk.

Typically, the permission settings of the symlink itself only control the renaming and removal operations performed on the symlink itself. Any operation that deals with the contents of the file linked to are controlled by the permission settings of the target file.

answer Feb 22, 2016 by Manikandan J
Similar Questions
0 votes

I created a symlink for an executable in /usr/bin which didnt work. But I created the same in /usr/local/bin which worked the way I expected. How are these two different?

Both the above locations are present in my $PATH.

+1 vote

Is there any way to change default permission of file creation in linux ?

0 votes

I was playing with the permissions of

/home
/home/abc

Could someone please tell me the commands to restore the correct permissions to those both directories?

...