[CentOS] strange su behavior

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


-----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?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLl9LqAAoJENs3frmum9swKfUIAKa5XH0t4saKu1MuNezprOGW
sBs4D+7bgvhQyp4YwAW6ZHkOsDKi8OQTQkpi/rTMiiJ2CshewkTFLj8F02I7j/on
Dm8Hckkj/+9W7GXvTNvOT3LWaDfXblIFJgXel4VrmWh4gTXEyieIAf2k4mbCIySA
F7rM/K0SswYvLJOPtqxS7CdsXVC7TR0NhyLWp2kCZQTaiQPMSsrg5LxDWeI4iQt3
d6+4iZAJg379bTdO2Wt9OO3uXvvFwHKnBgwwArlrJOv+mdeH1gN2l73XN6nhzwpF
IFS+vK6bRIMFwmsRr5kgg5Hfj5yDT+o0YDTYcb8XKOFa4dB2kzuXz1WLj5+uxaI=
=KoX6
-----END PGP SIGNATURE-----



More information about the CentOS mailing list