- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to lock and unlock a user account in batch...
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
03-02-2005 04:16 AM
03-02-2005 04:16 AM
how to lock and unlock a user account in batch mode
I want to lock one user ID during night time and unlock it on a request basis during daytime. I want to do this via cron. Can someone give me some tips how I can acheive this?
Thanks in Advance
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 04:22 AM
03-02-2005 04:22 AM
Re: how to lock and unlock a user account in batch mode
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 04:25 AM
03-02-2005 04:25 AM
Re: how to lock and unlock a user account in batch mode
You then can issue an explicat command to unlock the account via modprpw -k user.
Since you didn't bother to identify the OS, Trusted/Nontrusted NIS/NIS+/LDAP, it's hard to answer specifically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 04:27 AM
03-02-2005 04:27 AM
Re: how to lock and unlock a user account in batch mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 04:50 AM
03-02-2005 04:50 AM
Re: how to lock and unlock a user account in batch mode
O.S LEVEL IS 11.0 AND THIS IS UNTRUSTED SYSTEM.
I see in MAN pages a way to lock the account.
How do I unlock the account in a way the user can use the same passoword to login again?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 04:54 AM
03-02-2005 04:54 AM
Re: how to lock and unlock a user account in batch mode
All the "passwd -l" command does is replace the password with an asterisk, thus locking the account. In order to unlock it, I think you would have to reset the passwd with the "passwd USERNAME" command.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 04:59 AM
03-02-2005 04:59 AM
Re: how to lock and unlock a user account in batch mode
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 06:13 AM
03-02-2005 06:13 AM