- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I expire the user in /etc/passwd
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
02-04-2008 06:21 AM
02-04-2008 06:21 AM
How can I expire the user in /etc/passwd
Shoud I just add "#" at the beginning of the entry.
#ll test.log
-rw-rw-rw- 1 #ff users 202 Sep 21 00:22 test.log
Or #passwd -l ff
Could you give me some advice?
Regards,Louis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2008 06:26 AM
02-04-2008 06:26 AM
Re: How can I expire the user in /etc/passwd
Is your password file trusted or untrusted?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2008 06:26 AM
02-04-2008 06:26 AM
Re: How can I expire the user in /etc/passwd
If you want to edit the passwd file, then use:
vipw
Also - you could just delete them with userdel
Rgds...Geofff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2008 06:27 AM
02-04-2008 06:27 AM
Re: How can I expire the user in /etc/passwd
If you want to keep their UID, you should just add a "*" at the start of their password.
You can also add a "_" to the name to indicate to you that that name is expired, when you list a file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2008 06:27 AM
02-04-2008 06:27 AM
Re: How can I expire the user in /etc/passwd
From the man passwd.
-l Lock user account. In untrusted mode this replaces the encrypted password with *.
# passwd -l user
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2008 06:29 AM
02-04-2008 06:29 AM
Re: How can I expire the user in /etc/passwd
The manpages for 'passwd' would help you. If you want to lock the user, use 'passwd -l'. If you want to simply force the user to change his/her password at the next login, use 'passwd -f'.
Regards!
...JRF...