How to Run Linux Commands without Typing Sudo Password
ubuntushell.com·18h
Flag this post

Have you ever gotten annoyed when executing a specific command that requires sudo to ask for a password?

If you are a root user, you don’t have to type the password while executing any system-level command. However, regular users with sudo privileges must repeatedly type the same password while running the sudo command per session.

Let’s take an apt command that requires sudo privileges and asks for the password. This can all be avoided using the below-mentioned method.

Run Particular Command without Sudo Password

We must add a new entry in the sudoers file to avoid typing passwords for each command requiring sudo privileges.

For that, execute the below command to open the sudoers file.

  • sudo visudo

In some Linux distributions, the visudo command is not provided. In s…

Similar Posts

Loading similar posts...