[sudo-users] Understanding why processes launched by sudo do not inherit the controlling terminal

Jon Seymour jon.seymour at gmail.com
Thu Jun 18 10:56:13 EDT 2009


Interesting. That reports the tty I expect to see.

So, I then tried:

   su jseymour -c "ps -u jseymour"

and this gave a broken result on the broken machine and a good result
on the other machines.

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!


On Fri, Jun 19, 2009 at 12:06 AM, Todd C.
Miller<Todd.Miller at courtesan.com> wrote:
> What happens if you run:
> $ tty; sudo -u admin ps -u admin
> It's possible that one of the pam session actions is doing something
> funky.
>  - todd

More information about the sudo-users mailing list