I have a folder hierarchy
parent_folder -> inner_folder -> innermost_folder
The steps I followed are (as a sudo user):
- created a symlink pointing to
parent_folder
- set the permissions of the symlink to 0400 =>
chmod -h 0400
- set the owner (of symlink) to root =>
chown -h root
Now I switch to normal user,
ran ls -l
in the folder which has the symlink, it throws error :
Permission denied
Is this the expected behaviour?