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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help