[CentOS] strange su behavior

Uwe Kiewel ml at kiewel-online.ch
Wed Mar 10 19:15:12 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 10.03.2010 18:26, schrieb Tony Schreiner:
> 
> On Mar 10, 2010, at 12:12 PM, Uwe Kiewel wrote:
> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Am 09.03.2010 22:22, schrieb Tom H:
>>>>>>> Do you have any sudo call from your /etc or /etc/skel bashrc or  
>>>>>>> profile...?
>>>>>> Yes, I do have in /etc/bashrc:
>>>>>> sudo -l
>>>>> Unless you already understood:
>>>>>  su -  "make the shell a login shell"
>>>>>  so sudo -l  in bashrc is executed, which asks for the user's  
>>>>> password
>>>> Understood, who is asking - not understood why "sudo -l" is asking  
>>>> for
>>>> the password and why just hitting the enter key works
>>>
>>> sudo -l
>>> lists the commands that you are allowed to run with sudo
>>
>> That is clear to me, but why does this command request the password?
> 
> what's the output of
> 
> sudo grep root /etc/sudoers
> 

## the root user, without needing the root password.
## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLl+/AAAoJENs3frmum9swifQH/jGXojOi65cIEA20gKInEMRe
3Jhnztx2lPDFq2K6am0Wc4qVvcyTkIM5MpgigoJgBI2f0LgLOQNei0/+bDoKsei3
fD5LFcpxepJKd2fukGcjYoIfg1hcHF5fA6+jw6qR/gBdjk67Jx2cZZrfSXaL+uN3
0Mme87EnYKRrJAuAKIlX5yHAB7GQdtuiJrWh6RPbdXSwoggYppjJnFZoCRAnOinp
A66jjGa0POAplYs9DHwW/K3mNwA5YggW5KLFyeNfiW16zdaNwQ8a6Q14AeTUy1AO
yjQzBZ0UXNkrASpGWKSSDySs3XKIHbtdHhCAY1TxKhOTEeSLO5xROB2UEpsZ9ys=
=o7+2
-----END PGP SIGNATURE-----


More information about the CentOS mailing list