Switch one user with other user without password (sudoers entry)
You need to allow one user to run switch user & work as other user
Add below entry in sudoers file
user1 ALL= NOPASSWD: /bin/su user2
Now user1 can switch as user2 with below command
sudo su user2
You need to allow one user to run switch user & work as other user
Add below entry in sudoers file
user1 ALL= NOPASSWD: /bin/su user2
Now user1 can switch as user2 with below command
sudo su user2
No comments:
Post a Comment