Remove password prompts

In the name of Allah, The Extremely Merciful, The Especially Merciful
Hello all :relaxed: ,
I would like to know how to remove prompts for passwords every time i do something (like install a software, uninstall, e.t.c)
Any help will be much appreciated!

to be honest i would never think of it. I don’t say it is not possible but i will definitely never remove password prompts. It is a layer of security implemented on your system that don’t allow any installation without your absolute agreement (by entering password you agree with the installation) it is not just a miss click that you don’t read the popup and just click to get rid of it. This way no malicious SW can harm your PC without getting root access. If you remove password prompts you open your PC to attacks.

before you do it think of it. it doesn’t consume time to enter you pwd.
we share the PC at home even my children can access it to play games… if they could install something just to click on some link I would never let them touch the PC, they cant read and write now so I’m save for now cos they cant enter the pwd but when they learn they will have their user access without root privileges,

that is why I moved to Linux at first plays, it is safe even with the basic installation, much more secure then a clean Windows.

The following steps show how to disable the sudo password prompt, thus rendering you no longer required to enter it,

Be warned, though. Disabling your sudo password requires that you edit a very important file called the “sudoer” file and if you screw up while you are editing it, you can knacker your entire system and you will have to re-write it. I know this because I have done precisely that myself on a previous occasion. Furthermore, disabling your sudo passsword prompt is viewed by some as leaving your system less secure. However, I am less personally concerned about this than others and so I have no problem with disabling it. It’s a matter of taste and risk-tolerance I guess. In any event, you still have to enter your password at boot-up.

  1. Open up a terminal. Type “sudo visudo” and press the “Enter” key. After typing in your password at the prompt, press “Enter”. You will be taken into something called the “sudoer” file.

  2. Hold the down arrow key and you will see the cursor move to the bottom of the file. Paste the following line below all other lines (in order to paste using only the keyboard in a terminal, you need to press the CTRL/SHIFT/V keys simultaneously):

yourusername ALL=NOPASSWD: ALL

where “yourusername” should be replaced with your actual user-name (mine, for example, is “stephen”)

  1. You now need to save and close the file. To do this you need to:

a) press CTRL and X

b) You will be prompted to type Y or N in order to save or discard the modifications. You must type Type Y

c) You will be given another prompt for the name that is given. Simply press the “Enter” key.

You should now find you have dropped out of the sudoer file and are back at the normal terminal prompt. That’s it, you can close the terminal at that point. From now on, any time you would normally be asked for your password in a terminal, you now won’t be.

I have noticed that the above procedure seems to have the effect of requiring you to enter fewer passwords on the main GUI desktop as well. But you are still asked for them sometimes when doing things like system management stuff (installing certain software in the software centre or opening synaptic, etc)

1 Like

Thanks for the replies. I guess for now I will stick with the way it is, until I learn how to use linux like a pro! :smile: