Re: [gdm-list] Access login credentials after login




El:

I have to run a few commands after the user logged in. As I'm using GDM as
login manager so there is /etc/gdm/PostLogin/Default script which is able to
handle that.

Some of that commands need the users login name and password. Login name is
not a problem as $LOGNAME contains that information, but is it possible to
access the users password after he has logged in into GDM?

No, the password is not available - that would be very insecure.
However, the PostSession script runs as the root user, so you should
have the ability to do anything which requires root privilege.  What
commands do you need to run that require a password?  Is it possible
to configure them so they do not need one, such as using Kerberos
or setting up ssh properly?

Brian



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