Q

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 linux.about.com). This is a "play" box and we all SU to root, but someone blew something away.
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

Dig deeper on Introduction to Linux system administration

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

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:

SearchDataCenter

SearchServerVirtualization

SearchCloudComputing

SearchEnterpriseDesktop

Close