rights

How to run sudo commands without using a password

botond published 2020/10/06, k - 23:37 time
When you often need to run other commands as root using sudo, you may need to type the password every time. Although the session "remembers" the previously entered password for a while, we don't have to retype it for a while, but we need to re-identify ourselves after a while. Also, if you work with multiple users, you will need our passwords more often. And if you also want to use commands running with root privileges in Shell scripts, you definitely need to avoid typing passwords so that our programs can run automatically. In this short description, we will look at how to persistently avoid asking for a password when using sudo.