- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Pre-expired passwords on new user accounts
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 05:58 AM
11-02-2004 05:58 AM
(For RHEL and Fedora Core 2)
Is there a way to create an account with pre-expired password so that when a user logs in for the first time they are forced to change their password? Other *IXs does this with no problem.
SSH is the only accepted login method for my systems. Telnet is verboten.
When I do "chage -d 0
Is there a way with "chage" or with PAM modules to create accounts with pre-expired passwords?
TNA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 07:20 AM
11-02-2004 07:20 AM
Re: Pre-expired passwords on new user accounts
Seems it doesn't work the same on Linux.
passwd -l locks the account.
My Red Hat boxes don't have a change command at all.
The passwd man page might provide you an actual solution to this question.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 07:25 AM
11-02-2004 07:25 AM
Re: Pre-expired passwords on new user accounts
Yeah, it's pretty strange that I can't find anything on this when it's a pretty simple thing I want to do. The command to change the age of passwords is "chage", minus the the "n". But this torments SSH when you "chage -d 0" with SSH, so I figured there would be a PAM option for this.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 09:36 AM
11-02-2004 09:36 AM
Re: Pre-expired passwords on new user accounts
You might want to look at the '/etc/default/useradd' settings, and the '-e' flag to 'useradd'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 05:43 PM
11-02-2004 05:43 PM
SolutionWith privilege separation turned on the following error appears in /var/log/secure (this is on FC2 system).
Nov 3 17:29:26 csspc sshd[32077]: fatal: Password changing is currently unsupported with privilege separation
Please note that disabling privilege separation has some security implications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 12:52 AM
11-04-2004 12:52 AM
Re: Pre-expired passwords on new user accounts
Thanks, I'll look into this.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 05:23 AM
11-04-2004 05:23 AM
Re: Pre-expired passwords on new user accounts
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 05:24 AM
11-04-2004 05:24 AM