1
/ tmp中的符号链接的权限
我的机器上有2个用户:linuxlite和otheruser。 otheruser 有一个文件: otheruser@linuxlite:~$ ls -l a -rw-rw-r-- 1 otheruser otheruser 6 Mar 31 12:47 a otheruser@linuxlite:~$ cat a hello linuxlite在中创建了文件和符号链接/tmp: otheruser@linuxlite:~$ ls -l /tmp/file /tmp/link -rw-rw-r-- 1 linuxlite linuxlite 3 Mar 31 12:49 /tmp/file lrwxrwxrwx 1 linuxlite linuxlite 17 Mar 31 12:49 /tmp/link -> /home/otheruser/a 现在,尽管otheruser可以阅读/tmp/file和/home/otheruser/a,但他无法阅读/tmp/link: otheruser@linuxlite:~$ cat /tmp/file …