Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 09-08-2006, 09:19 AM   #1
Registered: Sep 2001
Location: New York
Distribution: Slackware 8
Posts: 100

Rep: Reputation: 16
Password Aging

I wanted to set my box to do the following automatically:
expire password after x days, warn user of expiring passwd after x days,
disable accounts after x days, etc.

I found the following url which showed everything i've already tried:

However i did notice that it says this is only effective for console
users, and does nothing for ssh users. That sounds like a microsoft idea.

How can I do this properly? (Without recommending ldap, that is a future
Old 09-08-2006, 12:13 PM   #2
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
you probably misunderstood a statment there. If you use chage, it will be effective to that user, regardless of where he tries to login from.
Old 09-15-2006, 05:27 AM   #3
LQ Newbie
Registered: Jul 2006
Location: Gothenburg
Posts: 21

Rep: Reputation: 0
Originally Posted by w3bd3vil
you probably misunderstood a statment there. If you use chage, it will be effective to that user, regardless of where he tries to login from.
It's easy to be confused by their statement.

If the password has expired (chage -d 0 <user>) then loging in with SSH fails. It prompts for a password change, but I haven't been able to successfully provide a new one. So, using that particular procedure to force a user to change password on first login doesn't work if the user uses SSH to log in. he will simply not have access to his account until he logs in at a terminal.

Last edited by magnus.therning; 09-15-2006 at 05:32 AM.


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
password aging tariq_ned General 1 06-21-2006 10:23 AM
Photo Aging Software laceupboots Linux - Software 1 03-04-2006 07:59 AM
Password aging help szahri Linux - Newbie 5 03-23-2005 08:02 PM
Disable password aging check in MSEC Seube Mandriva 1 12-15-2004 09:39 PM
How do you implement password aging in samba? colpaarm Linux - Software 1 07-30-2003 10:37 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:58 AM.

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