Pages

Search This Blog

Friday, May 15, 2020

Different Levels of SUDO Access.

As a root user, visudo and insert the following based on your requirement.

###############################################
# APPLMGRSU users can su to applmgr
User_Alias  APPLMGRSU = user1
APPLMGRSU ALL = NOPASSWD: /bin/su - applmgr


###############################################
# ORACLESU users can su to oracle
User_Alias  ORACLESU = user1
ORACLESU ALL = NOPASSWD: /bin/su - oracle


###############################################
# allow the user to issue commands as root without a password
user1 ALL=(root) NOPASSWD: ALL


###############################################
#Append the following entry to run ALL command without a password for a user named user1:
user1 ALL=(ALL) NOPASSWD:ALL


No comments:

Post a Comment