[gdm-list] session and 'sudo' code



Hello.

I've got 2 (related) questions about GDM's interaction with session.
Usually GDM runs under dedicated user (like 'Debian-gdm' for example).

a) How can we set some environment variables from greeter program (spawned by GDM) so
they will be available in the user's session after logon?

b) More general - what's the best way to execute some code in greeter with different
(preferably root) privileges?

Those questions are related because if we can do b) than we can easily make a) happen
by altering files in PostLogon for example.

The only thing I can think of right now is to use some external suid helper which
seems like too much of a security risk.

thanks,
Max.

Attachment: signature.asc
Description: OpenPGP digital signature



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