Advertisement
vadipp

symlink permissions

May 8th, 2013
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. [root@vadim ~]# mkdir testdir
  2. [root@vadim ~]# touch testdir/stuff
  3. [root@vadim ~]# ln -s testdir testlink
  4. [root@vadim ~]# chmod -h 000 testlink
  5. [root@vadim ~]# ls -l testlink
  6. l--------- 1 root wheel 7 May 8 19:13 testlink -> testdir
  7. [root@vadim ~]# sudo -iu w
  8. w: ~ $ ls -l /root/testlink/
  9. total 0
  10. -rw-r--r-- 1 root wheel 0 May 8 19:13 stuff
  11. w: ~ $ ls -l /root/testlink
  12. l--------- 1 root wheel 7 May 8 19:13 /root/testlink -> testdir
  13. w: ~ $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement