LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices

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

Rep: Reputation: 15
Login Expired Problem


Hey,

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 :

GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel

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
[|RoA|]RoadRunner
Member
 
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
NCappaZoo
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
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
I had the same problem I've found a solution. Do this
Code:
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
 
  


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
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 05:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration