Solved

Ubuntu: To turn off the password authentication

Posted on 2011-09-15
1
441 Views
Last Modified: 2012-05-12
Hi,

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

tjie

0
Comment
Question by:tjie
1 Comment
 
LVL 31

Accepted Solution

by:
Frosty555 earned 500 total points
ID: 36543720
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:

http://www.ubuntugeek.com/how-to-disable-password-prompts-in-ubuntu.html

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:

http://brainstorm.ubuntu.com/idea/14714/
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question