Solved

Ubuntu: To turn off the password authentication

Posted on 2011-09-15
1
429 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now