$ sudo visudo
Enter the following the end of the file:
<username> ALL=(ALL) NOPASSWD: ALL
Comment:
<username>: a user that exists under /home/
e.g.:
SamplePista ALL=(ALL) NOPASSWD: ALL
With this setting OS won't ask password for 'SamplePista' when execute command via sudo.
No comments:
Post a Comment