howto log usage of shared account (root account) after `sudo su -`
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu 10.04 LTS on IBM Lenovo R61e, RHEL5-6,SLES10-11
Posts: 262
Rep:
howto log usage of shared account (root account) after `sudo su -`
Hi
I would like to have traceability of sys admins behavior during usage of shared account (root account).
How to log sys admins session after he changes identity via sudo mechanism (`sudo su -`) ?
Couple of options off the top of my head, either a patched bash shell which logs the details ( can be bypassed tho) or kernel level logging such using auditd and audit=1 on the kernel command line
The sudo rpm that they have includes the ability to record sudo sessions. Problem is that those that have root access can edit the sudoers file and turn off recording, but it will at least be recorded to know what all was typed and done.
The bad thing about this approach is that you are replacing sudo for another implementation of sudo that did not come with your distribution.
There is a directive that you apply in the sudoers file that will record the session. Most implementations of sudo do not include it though. That is why I pointed you to the site that I did.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.