[sudo-users] Understanding why processes launched by sudo do not inherit the controlling terminal
jon.seymour at gmail.com
Fri Jun 19 20:58:56 EDT 2009
The RedHat su command has an extra option --session-command that can
be used to make it behave as per the -c option on most other
Thanks again for your help with this!
On Fri, Jun 19, 2009 at 11:08 PM, Jon Seymour<jon.seymour at gmail.com> wrote:
> I tracked down a RedHat bug report about this very issue which was closed as
> not a defect. [do not have reference handy right now]. It was closed for the
> completely spurious reason that no-one could possibly wish to
> invoke an an interactives shell from a command launched with su -c.
> I shall attempt to do battle with this mind-bendingly closed-minded myopia
> in the appropriate forum. Grrr!
> On 19/06/2009, at 1:35 AM, "Todd C. Miller" <Todd.Miller at courtesan.com>
>> In message <2cfc40320906180756p648260cdjc8e1ebc18694da1c at mail.gmail.com>
>> so spake Jon Seymour (jon.seymour):
>>> In other words, it has nothing to do with sudo at all - it's su
>>> behaviour. Mmm. How strange.
>>> Thanks very much for suggestion that, since it has got me a lot closer
>>> to understanding the issue. If you have any ideas about what to look
>>> at next, I'd certainly love to hear them!
>> This is probably related to the problems seen here:
>> One person reported that the problem was caused by a PAM-related
>> patch RedHat made to coreutils (which includes su).
>> - todd
More information about the sudo-users