Best way to log sudo group

Prashant Singh prash4321 at yahoo.co.in
Fri Jul 5 13:35:33 UTC 2013


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

It works but first time it asks password and it also logs that and after that it dose'nt ask for password and works without giving sudo command

In the next senario it asks for sudo before any command and logs it without sudo asking for password

I need to work it like it asks for password first time with sudo <Command>  and then dont need sudo to be added before a command and also logs it.

we use mostly Fedora 15 and CentOS 6.0 up versions on servers.


 
Thanks & Regards
Prashant Singh Genda


More information about the redhat-list mailing list