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
ittechlabLinux SupportAuthor Commented:
how do i add the users to group and assign the group to execute few commands.
ittechlabLinux SupportAuthor Commented:
thanks i was able to get working with individual user name . can you help me with the group how to do
Seth SimmonsSr. Systems AdministratorCommented:
use % to prefix a group

Sudoers Manual

use usermod -G for group membership

usermod(8) - Linux man page
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
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.