Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 07-23-2005, 12:16 PM   #1
LQ Newbie
Registered: Aug 2003
Location: Queens, New York, U.S.
Distribution: Linux From Scratch
Posts: 25

Rep: Reputation: 15
Login Expired Problem


I have tried to add a normal user with the command useradd -m foo. I set the passwd for the user and then tried to login with foo. The problem is that it keeps telling me "Your login has expired. Contact the system administrator."
Now here is my /etc/defaults/useradd file :


As you can see EXPIRE is not set to anything so I shouldn't have any kind of expiration on the user name. Any suggestions?

Last edited by NCappaZoo; 07-24-2005 at 03:10 AM.
Old 07-24-2005, 03:34 AM   #2
Registered: Jul 2005
Distribution: LFS
Posts: 43

Rep: Reputation: 15
What happens if You use " useradd -me 2007-08-25 " ?

Does " useradd -D " tells You the same things as listed in /etc/defaults/useradd ? I ask this because the man-page is telling that this file is located in the /etc/default and not /etc/defaults directory.
Old 07-24-2005, 12:07 PM   #3
LQ Newbie
Registered: Aug 2003
Location: Queens, New York, U.S.
Distribution: Linux From Scratch
Posts: 25

Original Poster
Rep: Reputation: 15
im sorry, I must have typed defaults. my useradd file is in /etc/default/useradd, that was a typo.

Edit: I must add that I used nALFS from LFS Live CD 6.0-1 to compile LFS and then used BLFS profile 6.0 to setup "#3 After LFS Configuration Issues". After that I added group "users" and then added a user and set their password. Once I try to login is when I get this error - "Your login has expired. Contact the system administrator."

Last edited by NCappaZoo; 07-26-2005 at 03:58 PM.
Old 09-04-2005, 02:25 AM   #4
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
I had the same problem I've found a solution. Do this
useradd -me yyyy-mm-dd foo
as apposed to what the book said. You may have to do userdel foo first if the user exists.

Note: Also when typing the date use the hypens '-' ex: useradd -me 2005-09-04 foo


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
Login expired tulipysc Linux - Software 9 04-25-2007 07:29 PM
proftpd and expired passwords nIMBVS Linux - Software 1 01-17-2005 07:01 PM
My user login session in SUSE Linux 9.1 version gets expired every now and then umesh.tiwari Linux - Software 1 12-06-2004 04:16 AM
password expired rbchhan Fedora 2 08-09-2004 10:39 AM
.... Can More Login - Account Expired (help!) Beuzekom Linux - Newbie 11 10-08-2003 10:45 AM

All times are GMT -5. The time now is 01:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration