Readlink: permission denied
Ed Greshko
Ed.Greshko at greshko.com
Thu May 24 02:28:14 UTC 2012
On 05/24/2012 10:02 AM, Cameron Simpson wrote:
> Sigh. Which is why I asked you to run some ls commands, to _inspect_ the
> permissions. What do they show?
I don't know about you, but I'm not sure that things involving the /proc file system
act in quite the same manner as a real file system.
Take this as an example....
(as root, obviously)
[root at meimei proc]# pwd
/proc
[root at meimei proc]# ls -l | grep 1721
dr-xr-xr-x. 8 egreshko egreshko 0 May 23 13:54 1721
[root at meimei proc]# getfacl 1721
# file: 1721
# owner: egreshko
# group: egreshko
user::r-x
group::r-x
other::r-x
[root at meimei proc]# cd 1721
[root at meimei 1721]# ll cwd
lrwxrwxrwx. 1 root root 0 May 24 09:50 cwd -> /
[root at meimei 1721]# getfacl cwd
# file: cwd
# owner: root
# group: root
user::r-x
group::r-x
other::r-x
# file: cwd/var
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
Plus a whole bunch of others that would lead you to believe that the "other" has read
permission.
Yet as a "normal" user ....
[egreshko at meimei 1721]$ ll cwd
ls: cannot read symbolic link cwd: Permission denied
lrwxrwxrwx. 1 root root 0 May 24 09:50 cwd
I personally don't have much interest in delving into the behavior of the /proc file
system.
--
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage
More information about the users
mailing list