security & suid/sudo plugins

Hari Sekhon hpsekhon at googlemail.com
Mon Sep 4 13:11:20 CEST 2006


Thomas Sluyter wrote:
> On 4 Sep, 2006, at 12:09, Hari Sekhon wrote:
>
>   
>> Alexander Harvey wrote:
>>     
>>> Note to Hari: my understanding is that sudo won't work for account
>>> that doesn't have a valid shell. Certainly all my testing led me to
>>> that conclusion.
>>>       
>> So it would seem that this is not correct. A valid shell is not  
>> required.
>>     
>
> Actually, to nitpick a little :)
>
> I'd think it's entirely possible that sudo requires a valid shell,  
> just like FTP and such. But in that case "valid" would mean "listed  
> in /etc/shells" and not "working like a normal shell"... I'd have to  
> check the man-page to be sure though..
>
> Cheers!
>
>   


/bin/false isn't listed as a valid shell on my nagios box and this still 
works. hmm.

Also, you could use sudo -s /bin/bash check_command so that you get the 
shell for that one command. The man page says you can use this to 
override the system set shell.

If you find anything written anywhere about this then let me know. It's 
entirely possible that different versions have different quirks, this is 
not unknown in unixland...

fyi my sudo -V gives me the version as "Sudo version 1.6.8p9" (lots of 
extras output omitted)


-h

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060904/846694d3/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list