Best way to log sudo group

m.roth at 5-cent.us m.roth at 5-cent.us
Fri Jul 5 13:49:05 UTC 2013


Prashant Singh wrote:
> Dear All,
>
> What is the best way to give root priviliges and also log thier activity
> logs. What I did was I have created a user added to group assigned admin
> rights to the group using entry:-
>
> %group_name ALL = ALL       ALL

We have it as
User_Alias ADMIN = <list of users>
ADMIN ALL=(ALL) ALL

After that, you need your password, UNLESS you sudo again in a short time,
like within a minute or two. And all such commands issued should be in
/var/log/secure.

And I hope you've updated to CentOS 6.4 from 6.0....

      mark




More information about the redhat-list mailing list