Problem with sudo

IT Consultant

Problem with sudo

a few days ago I got an obstacle about using sudo on linux, where every time using sudo on a bash script I always get a password request and this is very troublesome for me, after trying to googling and asking my community friends finally my problem can be solved, by just change the sudoers file a bit to no passwd mode so that the user I use doesn’t need a password anymore and this really solves my problem in creating a script that contains the sudo command

Please open /etc/sudoers and search script

 root ALL=(ALL) ALL
user1 ALL=(ALL) ALL
 user       ALL=NOPASSWD: ALL 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *