LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 02-10-2004, 03:22 PM   #1
dragon
Member
 
Registered: Feb 2002
Posts: 51

Rep: Reputation: 15
Unhappy Warning: your password will expire in 0 days


I got the message:
Warning: your password will expire in 0 days
every time i log in and next day i couldn't log in using the same user. i reset the user password using root. but same thing happens again.
Could anybody tell me the problem is?
Thanks.
 
Old 02-10-2004, 04:18 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,502

Rep: Reputation: 162Reputation: 162
"Could anybody tell me the problem is?"

Read the -n, -x, -w, and -i explanations in:
man passwd

Then issue the passwd command using -S and then you should be able to figure out a passwd command that will cure the problem, whatever the problem might be.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 02-10-2004, 08:03 PM   #3
dragon
Member
 
Registered: Feb 2002
Posts: 51

Original Poster
Rep: Reputation: 15
message from passwd -S:
Password set, MD5 crypt.

I am using RH9, use its 'user and group manager', i saw the dates set to '-n 0 -x 0 -w 7 -i 0'. I think that's default because I never change it. for other users are the same.

it doesn't solve the problem unless i un-check the 'enable password expiration' box.

My question is: what trigered this password expiration? I never had it before. how to solve it instead just uncheck 'enable password expiration' box?

Thx.
 
Old 02-10-2004, 08:55 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,502

Rep: Reputation: 162Reputation: 162
"I am using RH9, use its 'user and group manager',
My question is: what trigered this password expiration? I never had it before. how to solve it instead just uncheck 'enable password expiration' box?"

The Red Hat user and group manager is a GUI front end which converts your input into the format used by the CLI passwd command. Then it issues a passwd command. Rather than figuring out how the GUI works and why it screwed up why don't you just issue your own CLI passwd command which sets thing the way you want them?

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 02-10-2004, 09:12 PM   #5
dragon
Member
 
Registered: Feb 2002
Posts: 51

Original Poster
Rep: Reputation: 15
Thank you for your help. I did try 'passwd -u user', but it didn't solve the problem. By the way, how can the password get expired? too many tries?
is 'passwd -n 0 -x 0 -w 7 -i 0 user' gonna work?

Sorry, i'm just a newbie. Thank you.
 
Old 05-27-2004, 02:53 AM   #6
vlassic
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
solution

dont know if you still need this info, but i had exactly the same problem as you. i tinkered w/ the gui changing stuff with the groups.. more specifically, i took an account that belonged to one group and assigned it to another group, then i went back and assigned it to both its original group and new group, the new group being the primary group. that created all sorts of problems including not being able to ssh into the box, etc.

anyway, i went to this website and found the answer.

http://www.linuxgazette.com/issue70/tag/10.html

(copy/pasting from their site)

ben:ShHh!ItSaSeCrEt!:11504:0:::::

If you do that, "chage -l" reports the following:

ben@Baldur:~$ chage -l ben
Minimum: 0
Maximum: -1
Warning: -1
Inactive: -1
Last Change: Jul 01, 2001
Password Expires: Never
Password Inactive: Never
Account Expires: Never

so what you're suppose to do is run this chage command, try it on a working account and it should look something similar to above. then do the same command (chage -l <username>) and see whats different, then use the different flags to reset the values back.

good luck!
 
  


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
Expire email after 30 days using qmail, vpopmail and couirer imap kg6kvq Linux - Software 3 07-14-2005 05:52 PM
how expire password automatically manudath Linux - Security 2 04-27-2005 12:38 AM
samba password expire Peds222 Linux - Newbie 1 03-12-2005 04:34 PM
Change text of "password will expire in..." Schlabbl Linux - Software 0 08-25-2004 03:48 AM
Samba -> Expire password Tiago Cruz Linux - Networking 6 03-05-2003 07:21 AM


All times are GMT -5. The time now is 01:57 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