root

How to reset our forgotten root password on our Linux system

botond published March 2020, 10, Thu - 08:13 time
It is not common to log in as root, so we do not use its password for a long time. We may forget and the sudo command is not available. If this happens, let's look at two ways to recover your forgotten root password on Debian and Ububtu.

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.