Sudo permission issue

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Sudo permission issue
# 1  
Old 12-31-2007
Power Sudo permission issue

How can i give a group a sudo permission to execute only some command "like start/stop Apache", so every user in that group can sudo to use this as himself, i mean when he tries to sudo, he will be asked for a password (and make it so he must use his own NT password not a generic one) then he can run the command like:

sudo /PATH_TO/Apachectl start/stop

Help on this please
# 2  
Old 01-03-2008
Sud Configuration

Hi Katkota - you can use the following set up via sudo (just copy and paste into sudoers).

# User Alias Specification

User_Alias (group name) = (group list)

(group name) ALL = (ALL) (command list)


# 3  
Old 01-03-2008
Thanks Kev;

From your answer, i'm assuming that every one in the specified group will have a sudo access for the specified command.

But How can i make sure that this sudo permission will force them to use their own NT login credential?
# 4  
Old 01-03-2008
If you are setting this up on an AIX system then by default sudo will only accept the passwd of the UID stated in "sudoers".

So for instance:-

# User Alias Specification

User_Alias IBM = katkota, kevin

IBM ALL = (ALL) /usr/bin/su - mqm

whenever kevin runs #sudo su - mqm it will only accept kevins UID passwd and likewise whenever katkota runs #sudo su - mqm it will only accept katkotas UID passwd.


# 5  
Old 01-03-2008
I'm running this on Solaris 10
# 6  
Old 01-03-2008
Should work exactly the same on both although i don't have a solaris box to test this on.


# 7  
Old 01-03-2008
Thanks a lot Kev
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Executing bash file with sudo for the second time, leads to permission denied, for some commands

I have a script that checks if the script has been ran with sudo. If the script is not ran as sudo, the current script is being executed with exec sudo bash. You are asked for a password, you type in the password, success. Everything is perfect - the commands inside the script are ran as sudo.... (1 Reply)
Discussion started by: boqsc
1 Replies

2. AIX

Sudo issue

Hello! I have this weird issue that started lately. I'm login as normal user lets call it "guy" and I type the command:sudo cat /etc/passwd what happens next is this reply in the command line: I'm not getting any prompt to enter password. (I don't have the "nopasswd" see the attachment image... (25 Replies)
Discussion started by: guy3145
25 Replies

3. Solaris

Adding user with Sudo permission in solaris 9

How can I add user with Sudo permission in solaris 9 ? I'm new in Solaris (2 Replies)
Discussion started by: ahmednoaman
2 Replies

4. HP-UX

Sudo entry required to set permission similar to ROOT without using password (PASSWD) change optio

Hi All I had installed sudo in HP UX 11.3 and it is working fine but not able to make entry required to set permission similar to ROOT without using password (PASSWD) change option for define user in /etc/sudoers file Please help if some know the syntex? :confused::wall: (2 Replies)
Discussion started by: deviltech
2 Replies

5. Linux

Sudo issue

Dear All, I wanted to execute sqlplus using another user instead of oracle user. I have given user AA sudo permissions in such a way that it can execute all oracle related files. when i try the below command from user AA ,it is not working. sudo -u oracle sh -c sqlplus Error 6... (1 Reply)
Discussion started by: jegaraman
1 Replies

6. AIX

issue with cd command on sudo

Hi admins, I have installed sudo in aix 5.3 and configured sudoers file.Every command is working fine with sudo except cd . If i give sudo cd /etc/security it returns nothing.There is no pwd change and no any error messages. sudo -l command returns all executables including cd. sudo ls... (8 Replies)
Discussion started by: newaix
8 Replies

7. UNIX for Dummies Questions & Answers

grant sudo permission

Hi all, I have to grant sudo permission to a user. I have searched online and find that /etc/sudoers file needs to be changed with visudo command. As i am new to linux, this is not clear to me. Can anybody take an example and show me how exactly this done. Thanks in advance! (2 Replies)
Discussion started by: lramsb4u
2 Replies

8. Solaris

Can't sudo Using Group Permission

All: I'm having a problem with sudo on Solaris 5.10 that is giving me fits (and BTW, I'm a Linux admin by trade...). The issue is that I have a number of users (myself included) that cannot sudo to root to complete user admin tasks. Assuming the user is jdoe, and the group with the elevated... (3 Replies)
Discussion started by: rjlohman
3 Replies

9. Solaris

sudo for permission kill -HUP

Hi, I'm trying to provide "/usr/bin/kill -HUP" command to one of the user using sudo file. I have configured sudo as following: $cat /etc/sudoers User_Alias AA=conadmin Cmnd_Alias KILL1=/usr/bin/kill -HUPAA ALL=NOPASSWD:KILL1 When I login as the user and execute 'sudo -l' command, it... (2 Replies)
Discussion started by: mohzub
2 Replies

10. Solaris

sudo permission

HI friends can i know how to assign sudo permission to normal user in solaris, and if not i want to assign few commands like format,user creation to normal user, i want to share few permission to normal user towork like a root in $ prompt. (2 Replies)
Discussion started by: kurva
2 Replies
Login or Register to Ask a Question