[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: su command failing on RHEL5
From: |
Andreas Schwab |
Subject: |
Re: su command failing on RHEL5 |
Date: |
Fri, 12 Jun 2009 14:57:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) |
Bob Proulx <address@hidden> writes:
> 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.
If the file were missing, you would get ENOENT. ENXIO only means that
the underlying device does not exist. That can either mean that
/dev/tty has the wrong device address (major/minor device number), or
that the process has no controlling terminal.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."