- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User status in non-trusted systems
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-15-2002 05:19 AM
10-15-2002 05:19 AM
User status in non-trusted systems
Does anyone knows if one can determine by command line the state of a user (locked or not) in a non-trusted system? If so, how?
Thanks
SN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 05:23 AM
10-15-2002 05:23 AM
Re: User status in non-trusted systems
I think it's just the format of the passwd entry - in sun, *LK* means locked, HP may be the same in non-trusted mode.
I.e. in answer to your command, grep username /etc/passwd
Cheers!
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 05:28 AM
10-15-2002 05:28 AM
Re: User status in non-trusted systems
On my systems (all non-trusted), I just check for an '*' in the password field of /etc/passwd. I don't know of any commands that will report the status of an account from the command line.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 05:36 AM
10-15-2002 05:36 AM
Re: User status in non-trusted systems
In a non-trusted system all you can go on is whether the password field of /etc/passwd contains an asterisk to show that it's locked. logins(1M) can do this with the -x option, otherwise you could write a simple script that uses awk to parse the file. See also passwd(4) for info on the file structure.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 06:07 AM
10-15-2002 06:07 AM
Re: User status in non-trusted systems
If you run logins -ax -l
Hope This Helps
Michael