Sudo: NOPASSWD when doing useradd ask me for password
When I put these in the /etc/sudoers
opv ALL = NOPASSWD: /usr/sbin/useradd, /usr/sbin/userdel, /usr/sbin/groupadd, /usr/sbin/groupdel, /usr/sbin/groupmod, /usr/sbin/usermod, /usr/bin/chsh, /usr/bin/passwd
, /usr/bin/last, /bin/awk, /bin/cat, /bin/chmod, /bin/cp, /bin/chown, /bin/cut, /bin/diff, /bin/echo, /bin/grep, /bin/ln, /bin/ls, /bin/mv, /bin/ps, /bin/rm, /bin/sed,
/bin/sort, /usr/bin/tail, /bin/touch, /bin/chgrp, /bin/mkdir
opv user has to input the root password (when doing the useradd command) even though I put NOPASSWD how is this possible? I don't want any password prompt.
BR
Jo
Last edited by joaquin386; 01-21-2011 at 10:23 AM.
|