Re: Readlink: permission denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@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@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@srv-rhsoft:~]$ su -
Passwort:
[root@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    : -


Attachment: signature.asc
Description: OpenPGP digital signature

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux