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