From: Uwe (ML) Kiewel <ml@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
JD
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
03-09-2010, 06:53 PM
Uwe Kiewel
strange su behavior
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 09.03.2010 17:32, schrieb John Doe:
> From: Uwe (ML) Kiewel <ml@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/
Uwe Kiewel wrote:
> Am 09.03.2010 17:32, schrieb John Doe:
> > From: Uwe (ML) Kiewel <ml@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
Hitting the enter key "works" as far as making the prompt go away, but
the sudo command is actually failing silently. If you enter the correct
password, you should receive some extra output.
Just pressing enter at the prompt:
$ sudo -l
Password:
$
Entering the correct password:
$ sudo -l
Password:
User xxxxxx may run the following commands on this host:
(ALL) ALL
$
--
Bowie
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
03-09-2010, 08:22 PM
Tom H
strange su behavior
>>>> 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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
03-10-2010, 04:12 PM
Uwe Kiewel
strange su behavior
-----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/
> -----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
Tony Schreiner
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
03-10-2010, 04:30 PM
John Doe
strange su behavior
From: Uwe Kiewel <ml@kiewel-online.ch>
> > lists the commands that you are allowed to run with sudo
> That is clear to me, but why does this command request the password?
Security?
Maybe they don't want someone passing by to find out what this user can run through sudo...
JD
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
03-10-2010, 06:15 PM
Uwe Kiewel
strange su behavior
-----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/
>>>>>> 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?
Do you have rootpw/runaspw/targetpw set in /etc/sudoers?
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
03-10-2010, 06:51 PM
Uwe Kiewel
strange su behavior
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 10.03.2010 20:23, 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?
>
> Do you have rootpw/runaspw/targetpw set in /etc/sudoers?
No, I don't have. What I want to have is: None-root users shall be
allowed to run some commands as root whithout password. And, on logging
on, the users shall see, what commands they are able to run.
Thanks,
Uwe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/