Description: To assign root privileges to another user on centos 7
Procedure:
## find the following content
root ALL=(ALL) ALL
## Add following content
testuser1 ALL=(ALL) ALL
password prompt for testuser1 now testuser1 can run all commands as a root.
Procedure:
- First add user using below command
- Set password to user
- Grant privileges to user using below command
## find the following content
root ALL=(ALL) ALL
## Add following content
testuser1 ALL=(ALL) ALL
- Then save and exit file using :wq command
- To test privileges login with testuser1 and use below command to take previleges
password prompt for testuser1 now testuser1 can run all commands as a root.
No comments:
Post a Comment