New answers tagged

0

This is a good case for the pam_env.so PAM module. Virtual console logins use the login program, so you can open /etc/pam.d/login and add a line such as the following: session required pam_env.so readenv=1 envfile=/etc/vc-environment user_readenv=0 With the accompanying new file, /etc/vc-environment: TMOUT=600 Two advantages to using PAM for this: ...


0

The following runs date whenever you lock or unlock by light-locker. However, I don't know how to know if it is locking or unlocking. dbus-monitor --system "type='signal',sender='org.freedesktop.login1',path='/org/freedesktop/login1/seat/seat0',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged'" | grep --line-buffered "ActiveSession" | ...



Top 50 recent answers are included