Avoid typing sudo on Ubuntu Linux

‮w//:sptth‬ww.lautturi.com
Avoid typing sudo on Ubuntu Linux

To avoid having to type sudo every time you run a command with superuser privileges on Ubuntu Linux, you can add yourself to the sudo group. This will allow you to run commands with superuser privileges without having to enter your password each time.

To add yourself to the sudo group, you can use the usermod command. For example, to add the current user (username) to the sudo group, you would run the following command:

sudo usermod -aG sudo username

After running this command, you will need to log out and log back in for the changes to take effect. Once you have logged back in, you should be able to run commands with superuser privileges without having to type sudo each time.

Keep in mind that using this method to avoid typing sudo can be a security risk, as it allows any user in the sudo group to run commands with superuser privileges without a password. It is generally recommended to only use sudo when necessary, and to be cautious when granting superuser privileges to users.

Created Time:2017-10-16 14:38:37  Author:lautturi