Solved

sudo configuration

Posted on 2014-02-18
5
258 Views
Last Modified: 2014-03-15
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.
0
Comment
Question by:ittechlab
  • 2
  • 2
5 Comments
 
LVL 34

Accepted Solution

by:
Seth Simmons earned 270 total points
ID: 39868563
replace localhost with the actual server name
0
 

Author Comment

by:ittechlab
ID: 39868588
how do i add the users to group and assign the group to execute few commands.
0
 

Author Comment

by:ittechlab
ID: 39868592
thanks i was able to get working with individual user name . can you help me with the group how to do
0
 
LVL 34

Assisted Solution

by:Seth Simmons
Seth Simmons earned 270 total points
ID: 39868639
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
 
LVL 62

Assisted Solution

by:gheist
gheist earned 135 total points
ID: 39868804
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

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question