Re: strange su behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Uwe Kiewel <ml@xxxxxxxxxxxxxxxx>
>> If I am root and want to change the user to a non-root user, the system
>> prompts me for a password:
>> [root@halifax ~]# useradd test00
>> [root@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:
>> [test00@halifax ~]$ logout
>> [root@halifax ~]# su - test00
>> [test00@halifax ~]$ logout
>> [root@halifax ~]#
>> At this test procedure I just hit the enter key at the password promt.
>> Do you have any idea for this behavoir? I expect to do so from root to
>> any account _without_ being prompted for the password.
>
>Do you have any sudo call from your /etc or /etc/skel bashrc or profile...?

Yes, I do have in /etc/bashrc:

[...]
if [ $UID -ne 0 ]; then
 echo
 sudo -l
 echo
fi


Thanks,
Uwe
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux