Hello,

Sanjay Kumar wrote:
> [r...@omvm6 ~]# su poo -c "cat /dev/tty"
> cat: /dev/tty: No such device or address
> open("/dev/tty", O_RDONLY)              = -1 ENXIO (No such device or
> address)

1) su command is not failing
2) cat is working as expected

su -c creates new process in RHEL-5 - which is expected behaviour as it
could cause security problems. This process has apparently no
controlling terminal /dev/tty. There was non-upstream longoption
--session-command added in RHEL-5 to restore RHEL-4 behaviour. Consider
using it in this case.

> Please let us know the fix available or not.

Next time it would be better to use RHEL product support or RedHat
bugzilla. Please try to use it instead of upstream mailing list, if
--session-command is not solving your issue.

Greetings,
         Ondřej Vašík

Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy

_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to