Ask the Expert

How can I enable and view user audit logs?

Open source newbie here. I need to know how to enable and view user audit logs (who logs in, who SU to root, what commands were executed by root and history log files) Unix has this, but I cannot find any information online regarding Linux (searched ITKnowledge Exchange archives and This is a "play" box and we all SU to root, but someone blew something away.

    Requires Free Membership to View

Take a look at the file /etc/logins.defs. Define SYSLOG_SU_ENAB to yes. Also uncomment #SULOG_FILE /varlogf/sulog. This should give you a jumping off point. If this doesn't work, I recommend finding a forum for your distribution and posting a question. We almost always find that we're not the first to encounter a problem and someone has already solved it and is willing to share their knowledge. Good luck!

This was first published in November 2004

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: