[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: su command failing on RHEL5
From: |
Sanjay Kumar |
Subject: |
RE: su command failing on RHEL5 |
Date: |
Fri, 12 Jun 2009 17:45:54 +0530 |
That I have already checked.
address@hidden ~]# ls -ld /dev/tty
crw-rw-rw- 1 root tty 5, 0 Jun 13 00:32 /dev/tty
address@hidden ~]#
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
address@hidden
-----Original Message-----
From: Bob Proulx [mailto:address@hidden
Sent: Friday, June 12, 2009 5:43 PM
To: Sanjay Kumar
Cc: address@hidden
Subject: Re: su command failing on RHEL5
Sanjay Kumar wrote:
> address@hidden ~]# 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