Re: Issue in man page proc_pid_fd.5

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

 



On Sun, Nov 17, 2024 at 10:46:22AM GMT, Helge Kreutzmann wrote:
> Without further ado, the following was found:
> 
> Issue:    When executing this commands, sudo prompts me for my password

And what's the problem?

Cheers,
Alex

> 
> "$B< echo test | sudo -u nobody cat>\n"
> "test\n"
> "$B< echo test | sudo -u nobody cat /proc/self/fd/0>\n"
> "cat: /proc/self/fd/0: Permission denied\n"

alx@debian:~$ sudo echo
[sudo] password for alx:

alx@debian:~$ echo test | sudo -u nobody cat
test
alx@debian:~$ echo test | sudo -u nobody cat /proc/self/fd/0
cat: /proc/self/fd/0: Permission denied


-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux