- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- passwd -l <username> command equivalent in 10.20
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
Discussions
Discussions
Discussions
Forums
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
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
тАО04-30-2003 01:53 PM
тАО04-30-2003 01:53 PM
Unfortunately passwd command in 10.20 lacks this -l option. I am sure, if not the same, something in the lines of disabling an account can be done by using passwd and pwage commands on 10.20 but for the life of me, I could not figure out an easy way. Is there a cookie cutter recipe to do this somewhere in a script form or sequence of commands ?
All help is greatly appreciated
UNIX because I majored in cryptology...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2003 02:02 PM
тАО04-30-2003 02:02 PM
Re: passwd -l <username> command equivalent in 10.20
I don't think 10.20 has such option. You can alwasy type * or something in his password fild in passwd file.
Or
change shell to /bin/false
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2003 02:06 PM
тАО04-30-2003 02:06 PM
Solution/usr/sam/lbin/usermod.sam -p "*" username
But the problem is there is no -p option for usermod.sam program ... What this did was to place a '*' in the encryption field. You can edit the /etc/passwd file directly and do this anyway. Use 'vipw' program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2003 02:10 PM
тАО04-30-2003 02:10 PM
Re: passwd -l <username> command equivalent in 10.20
/usr/sam/lbin/usermod.sam -p "*"
...which adds '*' into the passwd arguement.
No man pages on usermod.sam commands since it controls trusted system accounts.
'vipw' and manually edit and save /etc/passwd. Again, add in '*' into the password parameter.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B9106-90008/B9106-90008_top.html&con=/hpux/onlinedocs/B9106-90008/00/04/452-con.html&toc=/hpux/onlinedocs/B9106-90008/00/04/452-toc.html&searchterms=vipw&queryid=20030430-160822
usermod -e account and -f will test for inactivity (* -f *) or 'expire' on date (* -e *).
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B9106-90008/B9106-90008_top.html&con=/hpux/onlinedocs/B9106-90008/00/04/424-con.html&toc=/hpux/onlinedocs/B9106-90008/00/04/424-toc.html&searchterms=userdel%7cusermod&queryid=20030430-160405
userdel if not used with the -r option will only remove the account from /etc/passwd but not the user's directory.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B9106-90008/B9106-90008_top.html&con=/hpux/onlinedocs/B9106-90008/00/04/423-con.html&toc=/hpux/onlinedocs/B9106-90008/00/04/423-toc.html&searchterms=userdel%7cusermod&queryid=20030430-160405
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2003 02:28 PM
тАО04-30-2003 02:28 PM
Re: passwd -l <username> command equivalent in 10.20
Thanks for the
/usr/sam/lbin/usermod.sam -p "*"
command. it works like hot knife thru butter for me.
UNIX because I majored in cryptology...