Nguyễn Ngọc Huỳnh
New member
How can I sudo another user without password?
Answer
How to to run sudo command without a password:
Answer
How to to run sudo command without a password:
- Gain root access: su –
- Backup your /etc/sudoers file by typing the following command: …
- Edit the /etc/sudoers file by typing the visudo command: …
- Append/edit the line as follows in the /etc/sudoers file for user named ‘vivek’ to run ‘/bin/kill’ and ‘systemctl’ commands: