How to disable password prompts?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

How to disable password prompts?

Postby kaitlynh1988 on Sat Apr 30, 2011 10:04 pm

Hi,

I am using Linux for the first time today and I don't know any advanced functions. I was wondering if there was a way to stop being asked to enter my password? I'm asked when I turn on the computer, after a screen saver, and before installing a program. Since my computer is old and I don't have it in a public place I'm not worried about password protection. I will probably need step by step instructions since I've never used anything other then windows before now, I hope that is ok?

Thank you,

Kate
kaitlynh1988
Level 1
Level 1
 
Posts: 5
Joined: Sat Apr 30, 2011 8:41 pm

Linux Mint is funded by ads and donations.
 

Re: How to disable password prompts?

Postby colyn on Sat Apr 30, 2011 10:16 pm

If the computer will be connected to the net you need password protection. Otherwise your information can be stolen since no password protection is in place. In addition rootkits will be easy to install by an outside source..
User avatar
colyn
Level 6
Level 6
 
Posts: 1027
Joined: Sat Aug 14, 2010 1:37 pm
Location: I'm right here..Can't ya see me?

Re: How to disable password prompts?

Postby Roken on Sat Apr 30, 2011 10:16 pm

You can enable auto login so that you don't need a password to log in. Go to the Administration menu/Login screen and you can set up an auto login for a user.

As for passwords when performing administrative tasks, you can't disable those, though most of the time you won't be doing this (only when installing programs and updates for now). You do very quickly get used to entering your password for such things, and it's one of the reasons that Linux is more secure than Windows and considerably less vulnerable to malware.
Kernel Linux Tex 3.2.2-1 (64 bit) xfce , burg
Arch
ATI Radeon HD 4670, 1GB
OSS4
AMD Phenom II X4 (965BE) @ 3.6 Ghz (Overclocked)
8Gb RAM
Image
User avatar
Roken
Level 5
Level 5
 
Posts: 747
Joined: Fri Nov 19, 2010 4:55 pm
Location: Oldham, UK

Re: How to disable password prompts?

Postby dagon on Sat Apr 30, 2011 10:26 pm

kaitlynh1988 wrote:...I'm asked when I turn on the computer

menu > control center > ( System ) login screen:
check "log in as ... automatically"
after a screen saver

menu > control center > screensaver:
uncheck "Lock screen when screensaver is active"



Oskar
Image
User avatar
dagon
Level 7
Level 7
 
Posts: 1509
Joined: Mon Dec 06, 2010 4:33 am
Location: Kungälv, Sweden

Re: How to disable password prompts?

Postby odo5435 on Sat Apr 30, 2011 10:27 pm

Once you have your system set up the way you want it, you'll find you rarely need to use the password. The only times you'll need to is for updates and for the occasional new app that you'll want to try out. I also found it irksome at the start but I quickly (like in a few days) got over it and now I reckon I spend much less time entering the password than I used to spend running virus checkers, malware checkers and Spybot under Windows; and thats gotta be a bonus.
LinuxMint 13 (Maya) 32-bit dual boot with Win' XP Home :::<<>>::: Linux Registered User No. 545697
Kernel: Linux 3.2.0-23-generic (i686) >< Xfce 4.10
User avatar
odo5435
Level 4
Level 4
 
Posts: 371
Joined: Thu Mar 31, 2011 1:21 am
Location: Perth, Westerm Australia

Re: How to disable password prompts?

Postby kaitlynh1988 on Sat Apr 30, 2011 11:42 pm

Thanks everyone :)
kaitlynh1988
Level 1
Level 1
 
Posts: 5
Joined: Sat Apr 30, 2011 8:41 pm

Re: How to disable password prompts?

Postby nicci on Fri Apr 19, 2013 1:03 pm

Disabling password authentication every time is an iffy thing. For novice users I highly discourage such things. Also it is a very bad thing to run as root. Most linux desktop distributions make this difficult to do, but, its not impossible.

For most desktop users once a system is set up and tuned the need to disable these prompt is fairly minimal. Maybe a prompt daily for a password when doing updates. If you're a developer this becomes more of issue where different packages are loaded, etc. This becomes very dependent on user preferences and skill.

With Windows UAC may be disabled (Vista maked a lot of gripes, Windows 7 is pretty cool about it, Windows 8 makes it much harder). Windows is inherently much less secure because of the fact that most users run as administrative users in the first place, and, there are some architectural differences that make linux a little more secure out of the box.

All of this said, however, you may want to disable password prompting. Please be careful. If you break something, remember that you own (and are responsible for) all the pieces left over.

Disabling sudo and gksudo prompting, is a matter of adding this line:
Code: Select all
Defaults   !authenticate
to the sudoers file. This should be done, at a terminal prompt, with "sudo visudo".

For more information on the /etc/sudoers file please read Marius Ducea's nice article: http://www.ducea.com/2006/06/18/linux-tips-password-usage-in-sudo-passwd-nopasswd/

And for more information on PAM (of which sudo is part) IBM has a good article: http://www.ibm.com/developerworks/linux/library/l-pam/index.html?ca=dgr-lnxw9d&S_TACT=105AGX59&S_CMP=grsitelnxw9d
Linux Mint Nadia Kernel 3.8.8/Fedora 18 Spherical Cow Kernel 3.8.8/Windows 7 - Linux User/Hacker since 1992. Unix User/Hacker since 1984.
User avatar
nicci
Level 1
Level 1
 
Posts: 3
Joined: Sat Apr 13, 2013 12:01 pm
Location: Seattle, WA

Re: How to disable password prompts?

Postby humb on Fri Apr 19, 2013 3:23 pm

Thanks for the web page about disabling passwords. However, I firmly believe developers should make the use of passwords optional instead of mandatory. Here's why:

1) In my case only I touch my computer. I see no need to keep entering passwords for every little thing such as [for example] making a configuration change or installing/uninstalling software. Under absolutely no circumstances will I ever have multiple accounts on any computer I own, not even with reduced priveleges. Multiple accounts = multiple configurations -- too much hassle.

2) Could my system be hacked from outside my home? Possibly. Then again, I could also be hit by a meteor when I venture outside. Of course it's possible! I've been using Windows forever with all "protection" disabled, and so far no boggie man has shown his face. In fact, I've had far worse problems with security measures than with whatever it is they're trying to protect me from. Naturally this isn't just with any Linux-based OS.

3) How does entering a password protect me from a mistake I make that wrecks my configuration? Since Linux asks for a password for just about everything, I for one will enter the password prompt as soon as I see it without even caring why it's asking. After all, as I see it, the only reason it's there is because some developers are simply too set in their ways and somehow believe that making paswwords mandatory will make the OS impervious to just about anything.

4) The worst of all: Linux does not require passwords where it should, nor is there any way to impose password protection on some very important things. Just the other day I went to open a file and the first thing I saw was a long list of files I opened before, including some that are extremely private. For this there is no protection of any kind, anyone can sit here and see all I've done and read my private stuff, and I can't protect it. All it allowed me to do is delete a file called 'recently-used.xbel', but the problem is that every time you do something you have to stop and deep deleting it. You can't tell the OS not to write to it.

Bottom line: make passwords optional not mandatory! As it stands right now they don't protect me at all - I see it, I enter it, no exceptions - end of discussion!
User avatar
humb
Level 1
Level 1
 
Posts: 16
Joined: Mon Jul 30, 2012 11:19 pm

Re: How to disable password prompts?

Postby humb on Thu May 02, 2013 12:23 am

After researching the topic a little, I found out how to eliminate this password scourge by simply running the whole thing as root. For those of you who are interested in doing it too, these are the steps I followed:

Open terminal and type "sudo passwd root". It will prompt you for a password for the root account. Enter one. After that, simply go to "Preferences" and "Login Windows" and there, simply click where it says to premit admininstrator login (this is disabled by default). Then log out and log back in as "root" with the root password you chose. It's NEVER bother you for a password again unless you reboot or log off. This reduces the frequency of entering the password from 100,000 times to just once. I might add that, unless I'm mistaken, you'll have to type "sudo" again. I've typed that word trillions of times.

Despite the dire warnings of something horrible that will happen to my system, no problem so far. If it happens, so what? Reformat and start again, or make a full backup and restore. These warnings remind me of Bigfoot or the Loch Ness monster - plenty of hype but in the end, nothing.

Just one question. For some reason when running as root, the OS doesn't see my sound setup. Any ideas why not or how to fix it? Everything else works.
User avatar
humb
Level 1
Level 1
 
Posts: 16
Joined: Mon Jul 30, 2012 11:19 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], dagon, FireSoul, J_Linux_user55, Recusant, rlucas and 26 guests