Readlink: permission denied
Reindl Harald
h.reindl at thelounge.net
Wed May 23 19:36:11 UTC 2012
Am 23.05.2012 21:13, schrieb JD:
>>> The full output of lsof | sort | uniq is at
>>> http://www.sendspace.com/file/0v2lgb
>>>
>>> what is the consequence of these failures on the rest of the system?
>>
>> have you considered calling such commands as root instead
>> as normal user? it is logical that without permissions
>> the system does not show you all informations
>>
> But some processes are owned by me
the process but not the open files
> Why would I be denied access to info of files opened by processes running with my uid?
because /proc/ are not normal files?
> This is a bug
not all you do not understand is a bug!
> To wit:
> COMMAND PID TID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> gnome-key 1707 jd cwd unknown /proc/1707/cwd (readlink: Permission denied)
> gnome-key 1707 jd rtd unknown /proc/1707/root (readlink: Permission denied)
[harry at srv-rhsoft:~]$ lsof | grep -i denied | grep harry
ssh-agent 6486 harry cwd unknown /proc/6486/cwd (readlink:
Permission denied)
ssh-agent 6486 harry rtd unknown /proc/6486/root (readlink:
Permission denied)
ssh-agent 6486 harry txt unknown /proc/6486/exe (readlink:
Permission denied)
ssh-agent 6486 harry NOFD /proc/6486/fd (opendir:
Permission denied)
[harry at srv-rhsoft:~]$ stat /proc/6486/cwd
Datei: „/proc/6486/cwd“stat: Lesen der symbolischen Verknüpfung „/proc/6486/cwd“ nicht möglich: Keine Berechtigung
Größe: 0 Blöcke: 0 EA Block: 1024 symbolische Verknüpfung
Gerät: 3h/3d Inode: 286740 Verknüpfungen: 1
Zugriff: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Zugriff : 2012-05-23 20:42:08.957669236 +0200
Modifiziert: 2012-05-23 20:41:53.459730435 +0200
Geändert : 2012-05-23 20:41:53.459730435 +0200
Geburt : -
[harry at srv-rhsoft:~]$ su -
Passwort:
[root at srv-rhsoft:~]$ stat /proc/6486/cwd
Datei: „/proc/6486/cwd“ -> „/“
Größe: 0 Blöcke: 0 EA Block: 1024 symbolische Verknüpfung
Gerät: 3h/3d Inode: 286740 Verknüpfungen: 1
Zugriff: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Zugriff : 2012-05-23 20:42:08.957669236 +0200
Modifiziert: 2012-05-23 20:41:53.459730435 +0200
Geändert : 2012-05-23 20:41:53.459730435 +0200
Geburt : -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120523/19ea0dd0/attachment.sig>
More information about the users
mailing list