sudo configuration

I have the following entry in /etc/sudoers file.
appuser localhost=/sbin/service vsftpd stop

[appuser@rhel5 ~]$ sudo /sbin/service vsftpd stop
[sudo] password for appuser:
appuser is not allowed to run sudo on rhel5.  This incident will be reported.


whats wrong with the entry here.
ittechlabLinux SupportAsked:
Who is Participating?
 
Seth SimmonsSr. Systems AdministratorCommented:
replace localhost with the actual server name
0
 
ittechlabLinux SupportAuthor Commented:
how do i add the users to group and assign the group to execute few commands.
0
 
ittechlabLinux SupportAuthor Commented:
thanks i was able to get working with individual user name . can you help me with the group how to do
0
 
Seth SimmonsSr. Systems AdministratorCommented:
use % to prefix a group

Sudoers Manual
http://www.sudo.ws/sudoers.man.html

use usermod -G for group membership

usermod(8) - Linux man page
http://linux.die.net/man/8/usermod
0
 
gheistCommented:
You shuould not edit sudoers file
sudo takes database compiled from it

e.g. (and wonder why your changes are not there)
VISUAL=`which nano` visudo
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.