Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Creating a sudo rule and sudoers file

Posted on 2011-02-17
2
Medium Priority
?
705 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 1200 total points
ID: 34921845
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 800 total points
ID: 34921894
Yes,

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

wmp
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.
Suggested Courses
Course of the Month7 days, 3 hours left to enroll

783 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