- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How-to disable login ID in command line
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
10-09-2001 07:01 PM
10-09-2001 07:01 PM
How-to disable login ID in command line
How to disable and enable a login using command line.
Thanks in advance,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 07:10 PM
10-09-2001 07:10 PM
Re: How-to disable login ID in command line
This will only work if your system is
trusted:
# /usr/lbin/modprpw -k userid (to disable)
Once disabled you run it again to enable
If your system is not trusted do this.
# vipw
Place a '*' mark where the encrypted password
is, like so:
fsdmo:Gn.L7WCuZi3PU:103:202:fsdmo,,,:/home/fsdmo:/usr/bin/ksh
to
fsdmo:*:103:202:fsdmo,,,:/home/fsdmo:/usr/bin/ksh
Save the file.
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 07:16 PM
10-09-2001 07:16 PM
Re: How-to disable login ID in command line
passwd -l user_id
This will lock the account which is like disabling the account.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 07:20 PM
10-09-2001 07:20 PM
Re: How-to disable login ID in command line
I have tried using
#passwd -l
#passwd -d
passwd -d removes the passwd for the user and he has to set the passwd if reqd.
Be sure and careful in giving the username.
Thanks
G Manikandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 07:25 PM
10-09-2001 07:25 PM
Re: How-to disable login ID in command line
/usr/bin/passwd -r files -l userid (to disable)
/usr/bin/passwd -d userid
-Michael