21 reputation
3
bio website github.com/vbarbarosh
location Moldova
age 29
visits member for 3 years, 8 months
seen Oct 6 at 16:50

Mar
11
awarded  Popular Question
Apr
28
comment Why sudo(1) asks for password when stdout and stderr are redirected?
The problem lies here: sudo &> /dev/null < /dev/null. Everything ok for sudo &> /dev/null. I ask the question on sudo maillist. As soon as I found the answer I will post it here. Just now I consider this as a bug.
Apr
26
comment Why sudo(1) asks for password when stdout and stderr are redirected?
I use Debian 6.0.1. On this system the directory where sudo(1) stores passwords is /var/lib/sudo/vb/, and I notice no "tty?" nor "unknown" files here. Only "0", "1", "2", and "3". I never heard about tty(1) previously so I tried the following: 1) add "tty" to the robot script; 2) ./robot &> tempfile; 3) cat tempfile. The strange thing was that tempfile contain "/dev/pts/3" line. So, why "sudo is no longer able to determine the terminal when executed in a script with redirected streams."? Is it a bug?
Apr
25
awarded  Student
Apr
24
awarded  Scholar
Apr
24
comment Why sudo(1) asks for password when stdout and stderr are redirected?
Thanks. It seems that "sudo -A" is the only choice to circumvent this.
Apr
24
asked Why sudo(1) asks for password when stdout and stderr are redirected?