A flaw in /dev/std{in,out,err} or /dev/fd/ or su
Hello!
I would like to know if this is standard behaviour for /dev/stderr:
marvin:~# su enrico
enrico@marvin:/root$ echo hello, world > /dev/stdout
bash: /dev/stdout: Permission denied
enrico@marvin:/root$ ls -la /dev/stdout
lrwxrwxrwx 1 root root 4 apr 12 1999 /dev/stdout -> fd/1
enrico@marvin:/root$ ls -la /dev/fd/1
lrwx------ 1 enrico enrico 64 gen 6 13:51 /dev/fd/1 -> /dev/tty12
enrico@marvin:/root$ ls -la /dev/tty12
crw------- 1 root tty 4, 12 gen 6 13:51 /dev/tty12
enrico@marvin:/root$
Here we have tty12 still owned by root, but making /dev/std{in,out,err} devices
unwritable, when IMHO they should be.
Is this normal behaviour or should I file a bug agains login, the package that
contains /bin/su?
Read you soon! Enrico
--
GPG public key available on finger -l zinie@cs.unibo.it
Reply to: