Solved

sudo configuration

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

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

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,…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now