[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: su command failing on RHEL5

From: Bob Proulx
Subject: Re: su command failing on RHEL5
Date: Fri, 12 Jun 2009 06:13:05 -0600
User-agent: Mutt/1.5.18 (2008-05-17)

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]