Solved

sudo configuration

Posted on 2014-02-18
5
256 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
Comment Utility
replace localhost with the actual server name
0
 

Author Comment

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

Author Comment

by:ittechlab
Comment Utility
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
Comment Utility
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 61

Assisted Solution

by:gheist
gheist earned 135 total points
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

762 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

8 Experts available now in Live!

Get 1:1 Help Now