That I have already checked. [r...@omvm6 ~]# ls -ld /dev/tty crw-rw-rw- 1 root tty 5, 0 Jun 13 00:32 /dev/tty [r...@omvm6 ~]#
I have written, that after copying su executable from RHEL4 on RHEL5, it is working. There must be some issue with coreutils-5.97. Thanks & Regards, Sanjay Kumar Sr. Software Engg Symantec Corporation www.symantec.com Office: (020) 4075 4020 Mobile: 919881061153 sanjay_kum...@symantec.com -----Original Message----- From: Bob Proulx [mailto:b...@proulx.com] Sent: Friday, June 12, 2009 5:43 PM 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) The su command appears to be working properly. The problem shown above is that your system is missing the /dev/tty device node. Something has apparently removed it! You can confirm this by running the following. ls -ld /dev/tty You could repair your system by creating that device node. See the 'mknod' documentation for how. Bob _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils