How can I sudo another user without password?

How can I sudo another user without password?
Answer
How to to run sudo command without a password:
  1. Gain root access: su –
  2. Backup your /etc/sudoers file by typing the following command: …
  3. Edit the /etc/sudoers file by typing the visudo command: …
  4. Append/edit the line as follows in the /etc/sudoers file for user named ‘vivek’ to run ‘/bin/kill’ and ‘systemctl’ commands:
 

Tìm kiếm

Back
Top