Re: su command failing on RHEL5

2009-06-12 Thread Bob Proulx
Sanjay Kumar wrote: [r...@omvm6 ~]# su poo -c cat /dev/tty cat: /dev/tty: No such device or address ... strace is showing below: open(/dev/tty, O_RDONLY) = -1 ENXIO (No such device or address) The su command appears to be working properly. The problem shown above is that your

Re: su command failing on RHEL5

2009-06-12 Thread Andreas Schwab
Bob Proulx b...@proulx.com writes: Sanjay Kumar wrote: [r...@omvm6 ~]# su poo -c cat /dev/tty cat: /dev/tty: No such device or address ... strace is showing below: open(/dev/tty, O_RDONLY) = -1 ENXIO (No such device or address) The su command appears to be working properly.

Re: su command failing on RHEL5

2009-06-12 Thread Ondřej Vašík
Hello, Sanjay Kumar wrote: [r...@omvm6 ~]# su poo -c cat /dev/tty cat: /dev/tty: No such device or address open(/dev/tty, O_RDONLY) = -1 ENXIO (No such device or address) 1) su command is not failing 2) cat is working as expected su -c creates new process in RHEL-5 - which is

RE: su command failing on RHEL5

2009-06-12 Thread Sanjay Kumar
To: Sanjay Kumar Cc: bug-coreutils@gnu.org Subject: Re: su command failing on RHEL5 Sanjay Kumar wrote: [r...@omvm6 ~]# su poo -c cat /dev/tty cat: /dev/tty: No such device or address ... strace is showing below: open(/dev/tty, O_RDONLY) = -1 ENXIO (No such device or address