FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 03-09-2010, 03:32 PM
John Doe
 
Default strange su behavior

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
 
Old 03-09-2010, 06:53 PM
Uwe Kiewel
 
Default 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/

iQEcBAEBAgAGBQJLlqcxAAoJENs3frmum9sw9uYH/Ru8jR0zIApspV4W+1TzYo3H
HU6bAAU7p+Gee7rDWPCt4u+o+3woejV1MFFOF3jmAgv5qfZh2/nFAjRCF1Ml/OiW
La9xmCv5OZb1fJfHmcL7c/JoTtvfTKXkVbyb0tBec2YCqUATRvOVbLHCMYEI9OQJ
A+NeYlfOfQZ8Gnd9g435RoDEVNvYI+FhwOK0bwNRhDRC1ql5GY AcaNoqCtVLapj9
WN+IoxdIu5pm2aSMse/gyHV42JCb7AaVU7kfvoJh+nDQ3SgyOUKqDP+8Uq82mz3i
CGz5fp/bcS4BCMasQRI1F5tpuQQJPECG7HWho4pHSrEPNn+yKJ0iCjiZF Y85oYs=
=F/Hf
-----END PGP SIGNATURE-----
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 03-09-2010, 07:37 PM
Bowie Bailey
 
Default strange su behavior

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
 
Old 03-09-2010, 08:22 PM
Tom H
 
Default 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
 
Old 03-10-2010, 04:12 PM
Uwe Kiewel
 
Default 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/

iQEcBAEBAgAGBQJLl9LqAAoJENs3frmum9swKfUIAKa5XH0t4s aKu1MuNezprOGW
sBs4D+7bgvhQyp4YwAW6ZHkOsDKi8OQTQkpi/rTMiiJ2CshewkTFLj8F02I7j/on
Dm8Hckkj/+9W7GXvTNvOT3LWaDfXblIFJgXel4VrmWh4gTXEyieIAf2k4mb CIySA
F7rM/K0SswYvLJOPtqxS7CdsXVC7TR0NhyLWp2kCZQTaiQPMSsrg5Lx DWeI4iQt3
d6+4iZAJg379bTdO2Wt9OO3uXvvFwHKnBgwwArlrJOv+mdeH1g N2l73XN6nhzwpF
IFS+vK6bRIMFwmsRr5kgg5Hfj5yDT+o0YDTYcb8XKOFa4dB2kz uXz1WLj5+uxaI=
=KoX6
-----END PGP SIGNATURE-----
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 03-10-2010, 04:26 PM
Tony Schreiner
 
Default strange su behavior

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

Tony Schreiner
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 03-10-2010, 04:30 PM
John Doe
 
Default 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
 
Old 03-10-2010, 06:15 PM
Uwe Kiewel
 
Default 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/

iQEcBAEBAgAGBQJLl+/AAAoJENs3frmum9swifQH/jGXojOi65cIEA20gKInEMRe
3Jhnztx2lPDFq2K6am0Wc4qVvcyTkIM5MpgigoJgBI2f0LgLOQ Nei0/+bDoKsei3
fD5LFcpxepJKd2fukGcjYoIfg1hcHF5fA6+jw6qR/gBdjk67Jx2cZZrfSXaL+uN3
0Mme87EnYKRrJAuAKIlX5yHAB7GQdtuiJrWh6RPbdXSwoggYpp jJnFZoCRAnOinp
A66jjGa0POAplYs9DHwW/K3mNwA5YggW5KLFyeNfiW16zdaNwQ8a6Q14AeTUy1AO
yjQzBZ0UXNkrASpGWKSSDySs3XKIHbtdHhCAY1TxKhOTEeSLO5 xROB2UEpsZ9ys=
=o7+2
-----END PGP SIGNATURE-----
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 03-10-2010, 06:23 PM
Tom H
 
Default 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

> 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
 
Old 03-10-2010, 06:51 PM
Uwe Kiewel
 
Default 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/

iQEcBAEBAgAGBQJLl/hNAAoJENs3frmum9swxEMIAJgDWhu63h1pYKgG5nmxnUkH
hqGPt1W709j4AawHbzyiNqdYfMH3p/9YLY9VwcPS7DHFa0w/X6Vq8I4YcSsPCQc8
FMov96sKZckMTpKBc+qlK0sWXXcJcEDJLdg997WW50BTaxrUob 5uy0zoAuzm3pU/
5X9rq1XXqseU1PLBconNH3lpY1e7A1K4ueY6bXX4EWTqF4sMEE kfVP1sFwHmqVW/
K4wmERfljlLjCrCiLT51/H6LyoAYkmR4qfDxucPC1rEGcOnj3hHZk4mEnu64j7NG
nE9MQ3P1SvZff+NG9spRSALJprc1fBKPkndiJFHR9Xm5Ghugvs Gj7DP7zXRqY2U=
=Ea0A
-----END PGP SIGNATURE-----
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 10:13 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org