bug-coreutils
[Top][All Lists]
Advanced

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

Re: su command failing on RHEL5


From: Ondřej Vašík
Subject: Re: su command failing on RHEL5
Date: Fri, 12 Jun 2009 15:13:42 +0200

Hello,

Sanjay Kumar wrote:
> address@hidden ~]# 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


reply via email to

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