Sudo for Non-Admin User


 
Thread Tools Search this Thread
# 1  
Sudo for Non-Admin User

Can a user who is not an admin be added to sudoers to allow them to elevate to root and run administrative tasks only from the command line by using sudo, but not be able to perform administrative tasks in any other capacity?

---------- Post updated at 11:07 AM ---------- Previous update was at 11:00 AM ----------

I think I figured out that the answer is yes. I wonder then, on a Mac, if I give: user ALL ALL will it only allow root tasks to be performed from the command line, or will it allow software installations and other administrative tasks from the GUI?
# 2  
Yes allowing a user to run only certain commands as root can be done by setting up the sudoers file in an appropriate way.
(Just check that you've setup a correctly formatted sudoers file)
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

8 More Discussions You Might Find Interesting

1. AIX

Sudo to other user

Hello All, I am trying to grant sudo privileges to a set of users (say tom and jerry) to sudo to another set of users (jim, harry). This is because we don't want to disclose the password of jim and harry. I did defined the user_alias and runas alias. %wms ALL = (USR) /usr/bin/su -, where wms... (7 Replies)
Discussion started by: ibmtech
7 Replies

2. Solaris

New user question regarding admin rights

I'm trying to install OpenOffice on Solaris 11 but when I click on the setup icon I get an error message telling me that I need to have admin rights. I've tried logging on as SU or ROOT but cannot. I don't see how to grant myself admin rights. How is it done ? I know there are many many... (7 Replies)
Discussion started by: stansaraczewski
7 Replies

3. Shell Programming and Scripting

Admin user command usage restrictions

Hi, I need to work on restricting the Linux commands to the ADMIN user to some extent. It means for example, Admin users should not use passwd command to change the password of "root" or other important accounts like oracle, etc., So, I want to know which commands should be restricted upto which... (5 Replies)
Discussion started by: Dpu
5 Replies

4. UNIX for Dummies Questions & Answers

sudo su - USER ??? How to??

Hi folks, Here is my question of the day 8-) I have to provide the ability to sudo su - orapd2 & sudo su - pd2adm for the following people User A, B, C, D which all of them are part of the group staff. orapd2 and pd2adm are also users. Users A, B, C, D should not type the password for... (2 Replies)
Discussion started by: 300zxmuro
2 Replies

5. Shell Programming and Scripting

Write a scripts to kill idle user for 60 min. & email user list to admin in text file

Folks, I have written one script for following condition by referring some of online post in this forum. Please correct it if I'm missing something in it. (OS: AIX 5.3) List the idle user. (I used whoidle command to list first 15 user and get username, idle time, pid and login time).... (4 Replies)
Discussion started by: sumit30
4 Replies

6. UNIX for Dummies Questions & Answers

sudo user

I am trying to run a command from different user on my server. However when i execute the command it asks for password can you please help. when i use this command to switch user no password is required 1) sudo su - bilbtf42 when i use 2) sudo su - bilbtf42 cp file1 direcotry1/file1 ... (3 Replies)
Discussion started by: blackeyed
3 Replies

7. UNIX for Advanced & Expert Users

Network user admin...

Hi guys... I'm looking for a app that woul permit me to do user accounting over the network, based under HP-UX 11.00. I already thought of using a ksh script with ssh networking, but this doesn't really match what i want. Some freeware GNU or Opensource would be great.... Just for... (8 Replies)
Discussion started by: penguin-friend
8 Replies

8. UNIX for Advanced & Expert Users

IRIX SGI user admin

Hi, I would like to add users to an IRIX system (SGI). Does anyone have any idea of how to add the user? Is there a graphical interface like: admintool(SUN), sam(HPUX), or solstice(SUN) that does the function? Thanks in advance, (1 Reply)
Discussion started by: vtran4270
1 Replies

Featured Tech Videos