I'm not looking for adding/ creating user. I need to give sudo access to user1 to sudo su - user2 without having root previlage
Your mistake is wanting to use sudo yet not allow root privileges. Forget sudo. The su command is all you need to allow user1 to have access as user2.... but user1 MUST know user2's password, or else this would be an unacceptable security risk to user2. You may want to use " su - " or " su -l ".... see usage details and examples of the su command below:I need to give sudo access to user1 to sudo su - user2 without having root previlage
I'm not looking for adding/ creating user. I need to give sudo access to user1 to sudo su - user2 without having root previlage