[CentOS-docs] becoming root

Nils Ratusznik nils.ratusznik at gruik.net
Fri Apr 18 19:25:48 UTC 2008


Akemi Yagi a écrit :
> On Fri, Apr 18, 2008 at 12:09 PM, Manuel Wolfshant
> <wolfy at nobugconsulting.ro> wrote:
>   
>> On 04/18/2008 09:27 PM, Akemi Yagi wrote:
>>
>>     
>>> Looking good to me.  One thing that may be worth mentioning is that
>>> all sudo commands are logged in /var/log/secure.  In the above
>>> example, it will look like:
>>>
>>> Apr 18 11:23:17 localhost sudo: bob  : TTY=pts/0 ; PWD=/home/bob ;
>>> USER=root ; COMMAND=/bin/ping -c 10 -i 0 localhost
>>>
>>> I think this is a nice feature.  Commands executed by real root are
>>> not logged except in root's .history file, if I'm not mistaken.
>>>
>>>       
>>  you are not mistaken :)
>>
>>  should I mention that my /etc/sudoers ends for quite sometime with:
>>    wolfy   ALL=(ALL) NOPASSWD: ALL
>>  ? neah, guess not :)
>>     
>
> Well, I have that line all over the place (except it does not say wolfy) :-D
>
> Akemi
>
>   

You both know what you are doing, right?
Do all the people who will read this wiki page know what the will do 
with this?
I prefer people guessing this and be aware of what they do instead of 
not learning what sudo is and what are its possibilities.

Nils


More information about the CentOS-docs mailing list