Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-08-2009, 04:04 AM   #16
LQ Newbie
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0

"passwd -d username" works for command line (I tried on Arch i686 running bash 4.0.033 and kernel

To login with gdm you need to use jonmcc's trick, except on my box the string that worked was "U6aMy0wojraho" (based on http:/ /, this most likely depends on the hash algorithm you use.
Old 03-13-2010, 11:12 PM   #17
LQ Newbie
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
I have to agree with cenzole and rvega. The reason for adding a user without a password is not relevant. Either you know how to do it or don't respond. This post (like others) is entirely too long with opinions about whether it's a good ideal or not and short on answering the question. I used homey method and it works the way I need it to (to setup a linux laptop for a 3 yr. old if that really is important to know to answer the question. I suppose I could teach him how to remember his password right after he learns the alphabet). homey stated that cenzole response was impolite, but is it really impolite to tell people that what they are asking for isn't relevant (when it isn't)? This is way people perceive the Linux community as unfriendly.
Old 02-14-2011, 09:41 AM   #18
Registered: Jan 2010
Location: East Coast, USA.
Distribution: Gentoo, Debian, OpenBSD.
Posts: 70

Rep: Reputation: 25

I have been scouring the Google for days. Has anyone actually used any of the above suggestions with success?

Old 09-02-2011, 09:36 AM   #19
LQ Newbie
Registered: Sep 2011
Posts: 16

Rep: Reputation: Disabled
You can use the chage command.

chage -I -1 -m 0 -M 99999 -E -1 username
that will set the following for your user
Minimum Password Age to 0
Maximum Password Age to 99999
Password Inactive to -1
Account Expiration Date to -1
the following will tell you the settings of your user so you can see what needs to be set or changed:
chage -l username

I guess this doesn't tell you how to create a user without a password, but it will allow you to disable the password on an existing account. I know this is an old thread, but I hope someone can find it useful.
Old 05-02-2013, 08:44 AM   #20
LQ Newbie
Registered: Dec 2000
Location: Colwyn Bay - Wales
Distribution: MDK / Slack / Debian
Posts: 12

Rep: Reputation: 0
Out of date I know, but just for the hell of it...

Mandriva Linux allows the use of no passwords even for root

Thats the single solid reason why I stuck with it for so long.

I only moved off it with that disgusting pile of crud that was on Mandriva 2011

So, its clearly possible.
Old 08-07-2013, 05:26 PM   #21
LQ Newbie
Registered: Apr 2009
Posts: 23

Rep: Reputation: 0
adduser {username} --disabled-password

Do not run passwd to set the password. The user won't be able to use her account until the password is set.

Like --disabled-login, but logins are still possible (for example using SSH RSA keys) but not using password authentication.
Old 08-07-2013, 05:58 PM   #22
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 882

Rep: Reputation: 174Reputation: 174
I believe that adduser command with --disabled-password may be specific to Debian and distros based on it, j0hnsmith. The standard useradd command doesn't have a --disabled-password option. Neither does the adduser script packaged with some other distros, such as Slackware.

Assuming that you don't have an adduser command with --disabled-password option, a more general method is to create an account in the normal way and give it a password, then edit /etc/passwd to remove the first x right after the username.

This is what mop was alluding to in post #15, although I wouldn't use his method.

The easy way is to create the the account in the normal fashion with a password, then use the passwd command to remove it with the -d option.

passwd -d {username}

Last edited by Z038; 08-07-2013 at 06:07 PM.
1 members found this post helpful.
Old 12-25-2017, 06:05 PM   #23
LQ Newbie
Registered: Oct 2017
Posts: 5

Rep: Reputation: Disabled
A user without a password might open a security hole on your computer at the very least, but after you have considered it, there is actually some useful places where you want this.
Places where you might want an open door:
Imagine a computer in an information area. It might crash or there might be a power outage. Situations where you want this very limited user have limited access upon startup, but still login without your password each time. It could just be for browser access with a homepage locked on a certain page.
There is also the situation with wine, where you might wish to share a Windows game between users and not spend 10% of your hard disk for each user (this will run out fast, not to mention any quota you might have set for users). Wine itself doesn't have a lot of options to allow it and it denies direct access to the WINEPREFIX for other users, however the drives are accessible. It might be a good idea with a password-less user for write access though. That is the why I ended up here. Looks like provides some information.

Last edited by k9dog; 12-25-2017 at 06:37 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
add a user with password without prompt grendel-IT Linux - Software 7 09-27-2006 02:07 PM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
add user prompt for password on login redir Linux - Newbie 2 02-28-2005 11:01 AM
Samba 3.0: net user add - problem with password geodo Linux - Networking 1 12-06-2004 11:52 AM
How do I add a host user password to mysql server? cmisip Linux - Networking 3 12-16-2002 09:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration