[CentOS] strange su behavior

Tue Mar 9 19:53:21 UTC 2010
Uwe Kiewel <ml at kiewel-online.ch>

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

Am 09.03.2010 17:32, schrieb John Doe:
> From: Uwe (ML) Kiewel <ml at kiewel-online.ch>
>>> 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

Thanks,
	Uwe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLlqcxAAoJENs3frmum9sw9uYH/Ru8jR0zIApspV4W+1TzYo3H
HU6bAAU7p+Gee7rDWPCt4u+o+3woejV1MFFOF3jmAgv5qfZh2/nFAjRCF1Ml/OiW
La9xmCv5OZb1fJfHmcL7c/JoTtvfTKXkVbyb0tBec2YCqUATRvOVbLHCMYEI9OQJ
A+NeYlfOfQZ8Gnd9g435RoDEVNvYI+FhwOK0bwNRhDRC1ql5GYAcaNoqCtVLapj9
WN+IoxdIu5pm2aSMse/gyHV42JCb7AaVU7kfvoJh+nDQ3SgyOUKqDP+8Uq82mz3i
CGz5fp/bcS4BCMasQRI1F5tpuQQJPECG7HWho4pHSrEPNn+yKJ0iCjiZFY85oYs=
=F/Hf
-----END PGP SIGNATURE-----