Solved

sudo configuration

Posted on 2014-02-18
5
260 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

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…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 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