Best way to log sudo group

Prashant Singh <[email protected]>
Newsgroups gmane.linux.redhat.general
Message-ID <[email protected]>
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
-- 
redhat-list mailing list
unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.