Sudo without password on Fedora

Question: How to use sudo without password on Fedora?




Open terminal and enter the following command :

sudo vi  /etc/sudoers

Add this line at the end (change “pirat9” to your username):


Ctrl-X to leave, save your changes, and you’re done!

This  method  worked fine in  my  Fedora.

4 Comments on this Post

  1. Hello everybody,

    You can use too this trick on Ubuntu :D
    Another possibility is to modify the file /etc/sudoers :
    [code]sudo vi /etc/sudoers[/code]

  2. Ps : visudo is better, safer to use because : [quote]visudo edits the sudoers file in a safe fashion, analogous to vipw(8). visudo locks the sudoers file against multiple simultaneous edits,
    provides basic sanity checks, and checks for parse errors.[/quote]

  3. What if I were to download a malicious script that asked for sudo…I would never know, right?

    If I never did this "trick" I may have seen the password prompt and thought twice about it.

    I think if a user is "smart" enough to know what is a potential threat to security on a unix / linux system, then they are "smart" enough to know how to do this "trick" already. This how-to is geared toward newer users then who wouldn’t know any better.

    But hey, I guess if you use the package manager and official repos only then whats the difference?

  4. I agree with you that for security reasons is not advised to disable sudo password. [b]SO, MY ADVICE FOR EVERYBODY IS: IF SECURITY CONCERN YOU, DON`T DO IT :)[/b]

Leave a Comment