[CentOS] strange su behavior

Mon Mar 8 20:28:44 UTC 2010
Uwe Kiewel <ml at kiewel-online.ch>

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

Am 08.03.2010 21:21, schrieb John R Pierce:
> Uwe Kiewel wrote:
>> [root at halifax ~]# useradd test00
>> [root at halifax ~]# su - test00
>>
>>
>> We trust you have received the usual lecture from the local System
>> Administrator. It usually boils down to these three things:
>>
>>     #1) Respect the privacy of others.
>>     #2) Think before you type.
>>     #3) With great power comes great responsibility.
>>
>> Password:
>> ...
> 
> that almost sounds like sudo, not su.   is it aliased or something?
> 

I don't think so:

[root at halifax ~]# type su
su is hashed (/bin/su)

[root at halifax ~]# file /bin/su
/bin/su: setuid ELF 32-bit LSB shared object, Intel 80386, version 1
(SYSV), for GNU/Linux 2.6.9, stripped

[root at halifax ~]# type sudo
sudo is /usr/bin/sudo

[root at halifax ~]# file /usr/bin/sudo
/usr/bin/sudo: setuid ELF 32-bit LSB shared object, Intel 80386, version
1 (SYSV), for GNU/Linux 2.6.9, stripped

[root at halifax ~]# sum /bin/su
22494    24

[root at halifax ~]# sum /usr/bin/sudo
63311   138


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

iQEcBAEBAgAGBQJLlV38AAoJENs3frmum9swTsgH/1NXTua12hvnHt1js0Mzc1wI
RViyiATgPTCYUEKtfR7vUw6oWymbu+Psb8QWjH/x++FkBogjRBGrYjMHP2bhrcBx
c8PP4WMWkTpuX05Tb+ox7oB2r8qzuSudx9np9Gx/b1RJJI7y9SG3eiPRINyFreEG
1ywjyvRfvOZPo3398RqXLb6zqEqrK7ghyNp0oo0p7NS4mfn9ipwPMlAzL0oYjmNY
+W5dv/Gce/KCHp94piDens312WTTqF+NCpNOSVtz9r6sjHJwGkcDhS86p+p+b+TO
Fls5KkgPrh2LldNfrvxLgP+D3XVAMBz60ZKWQ2tk7zaLCqd9nWCvn8v1dhAqWS4=
=PjGv
-----END PGP SIGNATURE-----