1825987 Members
3640 Online
109690 Solutions
New Discussion

Re: Sudo help

 
SOLVED
Go to solution
Abhijeet_3
Frequent Advisor

Sudo help

I need to assign full system access to 2 users , eg. user1 and user2.

How to edit sudoers file to do it.
Is it ok if make file like below.

User_Alias SYSADM=user1,user2
Host_Alias HP=myhp
SYSADM HP=/sbin/ , /usr/sbin/

Regards

Abhijeet
3 REPLIES 3
Sunil Sharma_1
Honored Contributor
Solution

Re: Sudo help

do like this

User_Alias SYSADM=user1,user2
SYSADM ALL=NOPASSWD:ALL


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Sergejs Svitnevs
Honored Contributor

Re: Sudo help

User_Alias SYSADM = user1, user2
Host_Alias HP = myhp
SYSADM HP = NOPASSWD: ALL

Regards,
Sergejs
Abhijeet_3
Frequent Advisor

Re: Sudo help

Thanks