In one of the facebook groups of the community of Linux Mintthey asked How could they install apps without being asked for sudo password? (since it annoyed him having to constantly enter the password when he needed to install, update or search for a package).
Although this is something that is not recommended, we are going to teach how to use sudo without putting password, They must assume the risk that this entails, for example, any script or user can install / modify packages without their consent, delete files, among others.
If despite these threats, you want to be able to use sudo without the password, follow the simple procedure below.
Use sudo without entering password
- With any text editor and with superuser permissions, edit the file / etc / sudoers.
- Add after the line
%sudo ALL=(ALL:ALL) ALL
the nextUSUARIO ALL=NOPASSWD: ALL
where USER corresponds to the name of the user who does not need a password to run as superuser. - Save the file and your user will have access sudo no need to enter the password (NOT RECOMMENDED)
Conclusion
This is a fairly quick procedure, but not recommended, make sure to use it at your own risk and in a production environment try to have some kind of backup in case something goes wrong.
As always, if this article was useful to you or you have any comments, do not hesitate to write to us.
They want Linux to work for them as window $… XD
I think that's really their goal.
I can't quite understand how someone pretends such a barbarity. At the risk of being wrong, I think the use of Windows has something to do with all that. But even so, it is no excuse. GNU / linux has its quirks and if you are not willing to learn, I would recommend Windows. That would have been my answer.
Greetings.
For that, it is better to directly access your, and install the packages, make an attempt to do so and avoid how ugly it is to give power to any account.
I use this command on the users' computers where I work and I will tell them why
echo »ALL ALL = NOPASSWD: / sbin / init» >> / etc / sudoers
The reason does not turn off the pc therefore I give the users init 6 and init 0 as a menu access they just click and the pcs turn off it is a failure of old pc with intel boards using ubuntu 12 .04 I do not update by that does not give more capacity to pcs.
In new PCs we installed mint which is going very well.
in total there are 90 pc and users with basic knowledge.
In the same way you must be careful, indeed I have listened and the one that applies is an inelegant but effective solution
I don't know anyone within a 3 kilometer radius who is going to get into the pc specifically to open the console and execute superuser commands. In any case, it is advisable to create a guest account. It should be remembered that the sudo password is not necessarily the root password as configured in some distros such as ubuntu and derivative files; But let's imagine that we install linux for someone who comes from windows and when installing software uses softwarecenter or synaptic, they have to be entering the password every time they open it, this process avoids it but it is always advisable to remember the root password.
I was going to write something but they already said everything I was going to say ... hehe. Particularity of Linux is, precisely, security that it does not do anything without asking the user for permission, like another Private OS that I know but will not mention (Not to mention Windows, you know ...) Then what for? If you don't like to enter password? Stay with Windows… Or set a strong, strong but short password…. (And they sure end up writing 123456)
What if you run a "safe" script or program and suddenly you want to do something with "sudo" without thinking you were doing that? It is the beginning of Viruses in Window $