Solved

Creating a sudo rule and sudoers file

Posted on 2011-02-17
2
680 Views
Last Modified: 2012-05-11
The 2 human users: user01 and user02
The application id and group: ihsadmin

I want the users to be able to sudo anything from /opt/ihs/bin/*
and
The rule be run as ihsadmin

Can someone please help with the syntax and switches needed? I have never setup a sudo rule or sudoers file. Thanks!
0
Comment
Question by:AIX25
2 Comments
 
LVL 23

Accepted Solution

by:
Maciej S earned 300 total points
Comment Utility
Your users should run commands like this:
sudo -u ihsadmin /opt/ihs/bin/some_command
User_Alias   USERS = user01, user02
USERS        ALL = (ihsadmin) /opt/ihs/bin/

Open in new window

0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 200 total points
Comment Utility
Yes,

and use "visudo" to edit/create your sudoers file

wmp
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.

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

7 Experts available now in Live!

Get 1:1 Help Now