Whenever I try to install a program I get a password authentication prompt asking me to punch in my password. I would like to know how to disable this.
I tried to google it and most of the stuff I find related to the login password, which isn't an issue for me as I disabled it at startup.
What I need to get rid of is the password prompt for installing and uninstalling stuff.
(and enter your password one last time). Then use the editor to change the line that says:
into:
or even:
(to allow assuming any group as well as any user).
Type
sudo visudo
and this screen appears:The first command
Defaults env_reset, timestamp_timeout=120
has been modified with a timeout of 120 minutes between having to entersudo
password. The normal default is 5 minutes. Although you can change this to a very large number you will still have to enter it once per boot.add
NOPASSWD
entry for your user:The password is required because it's using sudo to run the actual installation as root. You may be able to address this by modifying /etc/sudoers to allow it to run apt-get and dpkg without a password (see https://help.ubuntu.com/community/Sudoers or this post Run apt-get without sudo).
By default ubuntu logs you in as a non root user for the O/S safety. It's there for a reason so that anybody who is new cannot mess up with the O/S itself accidently. In case you don't want to be prompted for password there is another way
now you are root. But be very careful in terms of anything you are doing.