[sudo-users] sudo doubt

Valdemir Santos valdemirs at gmail.com
Mon May 19 13:01:52 EDT 2008


Hi:

Can you tell me why  user valdemir can run a command like root user ?


# User privilege specification
#root   ALL=(ALL) ALL
valdemir        ALL=(ALL) NOPASSWD: /usr/bin/w,/usr/bin/date
# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL) ALL



solaris   / > sudo -u root w
  1:57pm  up 235 day(s), 23:12,  2 users,  load average: 0.04, 0.03, 0.05
User     tty           login@  idle   JCPU   PCPU  what
root     pts/1        10:28am     4   5:46         ksh
root     pts/9        Thu 9am         2:09         -ksh
solaris   / >

solaris   / > id
uid=2142(valdemir) gid=10(staff)
solaris   / >



More information about the sudo-users mailing list