• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Requiring user password when switching (su) from root to regular user

tontod

Diamond Member
Normally, when you su (as root) to a regular user, a password is not needed. However, I was wondering if there is a way in linux to force a password request when "su-ing" from root to a regular user?
 
Kinda, if you edit /etc/pam.d/su you can take out the pam_rootok.so line and it'll prompt you. However, that's only as good as a gentleman's agreement since root can edit that file or even just change the users's password.

If you don't want people using su to become other users, don't give them the root password and setup sudo to only allow them to run a certain subset of commands as root.
 
Back
Top