Solved

Creating a sudo rule and sudoers file

Posted on 2011-02-17
2
693 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
[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 Comments
 
LVL 23

Accepted Solution

by:
Maciej S earned 300 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 200 total points
ID: 34921894
Yes,

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

wmp
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Authenticate using sesu from script 7 160
DB2 9.7 Grant Execute SP 4 61
comm diff cmp unix commands 2 23
need a help to fix one if else shell script issue 6 33
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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 …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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

751 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