Bug 171

Summary: sudo kill unable to execute
Product: Sudo Reporter: Nigel Trivass <trivass>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED INVALID    
Severity: normal    
Priority: normal    
Version: 1.6.8   
Hardware: Sun   
OS: All   

Description Nigel Trivass 2005-03-10 10:47:55 MST
Hi Todd,
Recently downloaded the pre-compiled sudo package from sunfreeware, Sudo 
version 1.6.8p1.

Successfully installed on two solaris servers, identical sudoers file also 
configured for each. 

When I run a sudo kill -9 <pid> 

I receive following error 

Password:
sudo: unable to execute /bin/kill: No such file or directory

Permissions on kill are correct:

[ntrivass@snmepjmp01 ntrivass]$ which kill
/bin/kill
[ntrivass@snmepjmp01 ntrivass]$ ls -la /bin/kill
-r-xr-xr-x  17 root     bin          131 Jan  9 17:03 /bin/kill

Using kill without sudo is fine, i.e. either su to root and kill, or running 
kill as ntrivass.


Relevant bits from sudoers file:
# Cmnd alias specification


Cmnd_Alias      SHELLS          =       /usr/bin/sh,/usr/bin/csh,\
                                        /usr/bin/ksh,/usr/bin/bash,\
                                        /bin/sh,/bin/bash,\
                                        /bin/ksh,/bin/csh

# Defaults specification
Defaults        syslog=auth
Defaults:ADMIN  timestamp_timeout=3
Defaults:ADMIN  passwd_tries=3
Defaults:ADMIN  logfile=/var/log/sudolog
Defaults:ADMIN  set_home

# Runas alias specification

# User privilege specification
root    ALL=(ALL)ALL
ADMIN   ALL=(ALL)SYSTEM,!/bin/su -,!/usr/bin/su -


Thanks in advance for any assistance you can offer.

Nigel Trivass
Comment 1 Nigel Trivass 2005-03-10 10:57:07 MST
No errors reported in the logfile:

Mar 10 17:49:20 : ntrivass : TTY=pts/3 ; PWD=/export/home/ntrivass ; USER=root ;
    COMMAND=/bin/kill -9 11579 11593
Comment 2 Todd C. Miller 2005-03-14 10:03:06 MST
Does running /bin/kill (not just "kill") work without sudo?  On Solaris, /bin/kill is just a ksh script
so if ksh has a problem that might explain what you are seeing.
Comment 3 Nigel Trivass 2005-03-15 09:19:26 MST
thanks Todd, ksh had been removed from the server.