[sudo-users] Sudo user cannot execute commands

Valdemir Santos valdemirs at gmail.com
Mon May 19 11:28:22 EDT 2008


Can you tell me why user valdemir cannot run "w" command using sudo ?

# User privilege specification
root    ALL=(ALL) ALL
valdemir        ALL=/usr/bin/w
# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL) ALL
"/usr/local/etc/sudoers.tmp" 31 lines, 738 characters

solaris   / > id
uid=2142(valdemir) gid=10(staff)
solaris   / > sudo -u valdemir w
Sorry, user valdemir is not allowed to execute '/usr/bin/w' as valdemir on
May 19 12:24:22 ugmtzsux007 sudo: [ID 702911 local2.alert] valdemir :
command not allowed ; TTY=pts/9 ; PWD=/ ; USER=valdemir ; COMMAND=/usr/bin/w
solaris   / >
solaris   / > which w
I´m using sudo 1.6.9 pre-compiled version from sunfreeware.


More information about the sudo-users mailing list