LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-08-2009, 05:04 AM   #16
tamir
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 2.6.30.6)

To login with gdm you need to use jonmcc's trick, except on my box the string that worked was "U6aMy0wojraho" (based on http:/ /ubuntuforums.org/archive/index.php/t-1003549.html), this most likely depends on the hash algorithm you use.
 
Old 03-14-2010, 12:12 AM   #17
johnsry
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, 10:41 AM   #18
bluesword1969
Member
 
Registered: Jan 2010
Location: East Coast, USA.
Distribution: Gentoo, Debian, OpenBSD.
Posts: 70

Rep: Reputation: 25
Question

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

Thanks!
 
Old 09-02-2011, 10:36 AM   #19
Gener@l
LQ Newbie
 
Registered: Sep 2011
Posts: 11

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

Code:
chage -I -1 -m 0 -M 99999 -E -1 username
that will set the following for your user
Quote:
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:
Code:
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, 09:44 AM   #20
fatrakoon
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, 06:26 PM   #21
j0hnsmith
LQ Newbie
 
Registered: Apr 2009
Posts: 23

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

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

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

Rep: Reputation: 165Reputation: 165
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.

Code:
passwd -d {username}

Last edited by Z038; 08-07-2013 at 07:07 PM.
 
1 members found this post helpful.
  


Reply


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 03:07 PM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 10:59 AM
add user prompt for password on login redir Linux - Newbie 2 02-28-2005 12:01 PM
Samba 3.0: net user add - problem with password geodo Linux - Networking 1 12-06-2004 12:52 PM
How do I add a host user password to mysql server? cmisip Linux - Networking 3 12-16-2002 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 PM.

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