A script that requires root privileges needs to be executed when a non-root privileged user signs in/out. How do I handle this?
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
Use the PAM session hooks module. |
|||||
|
|
PAM looked a bit intimidating. I actually stumbled upon a way to solve this while trying to solve another problem. Upstart scripts. I was able to write a simple script that ran as root for non-root users when they logged in. |
||||
|
|