[sudo-users] script runs using sudo but not as root
Mike Gallamore
mike at mpi-cbg.de
Tue Jan 20 07:31:54 EST 2009
I have a strange problem were a script that is owned by root, gives
an error when run as root but not when run using sudo. Anyone seen
this before? Know of a way to fix it?
Info:
sudo version 1.6.7p5
system running CentOS 4.3
sudo file:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers
file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# User privilege specification
root ALL=(ALL) ALL
mike ALL=(ALL) ALL
matt ALL=(ALL) ALL
joegema ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
PATH info:
[root at node-master cfengine]# sudo echo $PATH
/opt/sge/bin/lx24-x86:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/
sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/
bin
[root at node-master cfengine]# echo $PATH
/opt/sge/bin/lx24-x86:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/
sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/
bin
More information about the sudo-users
mailing list