su within screen does not alert
Posted: 06 Aug 2013, 18:41
We have found that if a user is in a screen or tmux session and they su or sudo su an alert is not fired. If the user exits their screen/tmux session, the alerts will fire just fine.
It seems to be poorly documented that "who am i" does not properly return a user when the session is in screen/tmux. However, logname and other env variable such as $SUDO_USER will return the base user.
Is lfd making use of "who am i" when firing SU login alerts? And if so, can this be changed to a more reliable method of user detection?
It seems to be poorly documented that "who am i" does not properly return a user when the session is in screen/tmux. However, logname and other env variable such as $SUDO_USER will return the base user.
Is lfd making use of "who am i" when firing SU login alerts? And if so, can this be changed to a more reliable method of user detection?