Ubuntu: To turn off the password authentication


1) I have setup the Ubuntu workstation (version 10.04.3) in the production environment

2) When installing the Ubuntu, I specify the followings:
- User is "jwhite"
- password is "Boba"

3) I gave the computer to Jwhite
- jwhite was annoyed .....many times he has to "key in" the password

4) I believe that we can select something like "prompting the password" or "no prompting the password" during the installation
- Now, it is late (the installation has been completed)
- But, i believe we still be able to select "No prompting the password"

5) My question: Would somebody show me how to select "Not prompting the password at all" per GUI and per Command line?

6) Thanks


Who is Participating?
Frosty555Connect With a Mentor Commented:
The feature you are looking for is built into the "sudo" functionality of Ubuntu. JWhite is not a root user, so whenever he wants to do anything that requires administrator access he must first authenticate himself and then request root privileges. This process is done by a utility called "sudo".

When you are at the command line, you put "sudo" infront of the command you need to run with root permissions, e.g.
    sudo apt-get update

When you are in a GUI (the desktop environment), Ubuntu will prompt the user graphically for this information using a utility called "gksudo" - this is the white administrator password prompt you are seeing that is annoying jwhite.

"Sudo" is dangerous, that's why jwhite has to authenticate himself whenever he requests sudo permissions.

You can make jwhite a password-less sudoer - make it so he does not need to enter his password to use sudo. If you do this, the password prompts will go away on Ubuntu. This is not recommended - it opens the computer up to attack because administrator privileges can be granted to any program that requests it without confirming it with jwhite.

Realistically, JSmith should just "suck it up" and type his password when prompted.

If you really want to disable sudo password prompting, you need to edit the "/etc/sudoers" file and configure it to allow sudo without password prompting. You do this by using the "visudo" command line utility from a terminal.

Here's some documentation on how to do this:


You cannot do this from a GUI, because this is NOT a good idea to do and Ubuntu does not want to provide such dangerous and unrecommended functionality to the end user. It goes against the security guidelines and design of the linux operating system. If a user REALLY wants to do this, they should at least have enough technical saavy to be able to use a terminal.

Here's a somewhat heated debate as to why this will never become a GUI option:

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.