Solved

sudo configuration

Posted on 2014-02-18
5
262 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 35

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 35

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

707 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