[sudo-users] sudo, xauth and the manual
Todd C. Miller
Todd.Miller at courtesan.com
Fri Sep 24 15:11:19 EDT 2004
In message <Pine.LNX.4.33.0409241859450.26253-100000 at voronkov.cs.man.ac.uk>
so spake Dmitri Chubarov (dchubarov):
> I see, sudo would have to wait for the child process to complete
> to close down the session.
>
> Something over the lines of
>
> pam_open_session()
> pid = fork();
> if (pid) wait();
> else execlp();
> pam_close_session();
Basically, yes.
> This can be made a separate program called, say,
> sudo_xsession so that one could write
>
> sudo [options] sudo_xsession command
True, but wouldn't it be more useful as something done automatically?
- todd
More information about the sudo-users
mailing list