I'm trying to read the /var/adm/sulog file to see what users have attempted to login with su permissions. I'm able to login as su but neither /var/adm/sulog nor /etc/default/su exist in my file structure.

I'm curious if anyone might know where I can observe this information within CentOS 7 or restore the /etc/default/su configuration file?


On EL and Fedora su logs to /var/log/secure.

  • ok so I can view that file but my ultimate goal is to have any su login attempts, regardless of success or failure display to my terminal. This would typically be configured through the /etc/default/su file ya? – Shae Wittig Nov 23 '17 at 3:52
  • @ShaeWittig: Not on Linux. – Ignacio Vazquez-Abrams Nov 23 '17 at 3:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.