- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need to findout how many users currently enabl...
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
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
тАО10-02-2007 06:15 PM
тАО10-02-2007 06:15 PM
I have to find out list of currently enabled users and all disabled users.
Is there any way find out the same.
Please help me on this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 06:37 PM
тАО10-02-2007 06:37 PM
SolutionPlease do
#logins -x
PS for valid password, LK for locked and NP for no password.
example:-
#logins -x
test 107 users 20
/home/test
/sbin/sh
LK 000000 -1 -1 -1
test1 108 users 20
/home/test1
/sbin/sh
PS 000000 -1 -1 -1
test2 109 users 20
/home/test2
/sbin/sh
NP 000000 -1 -1 -1
test is a locked account
test1 is a active account
test2 is a account without password
Thanks,
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 06:38 PM
тАО10-02-2007 06:38 PM
Re: Need to findout how many users currently enabled in hp-ux
You can view the status (disbled/enabled) of all users on your system via "sam"
1. Start sam
2. choose Accounts for Users and Groups menu
3. choose Local Users: View or Configure Local Users and then a list with all local users apear (there is a status field in this list)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 07:01 PM
тАО10-02-2007 07:01 PM
Re: Need to findout how many users currently enabled in hp-ux
rest are enabled, accounts with false shell in /etc/passwd file cannot get shell.
Thanks to Aneesh for a great command to know user's status.
Regards,
Awadhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 07:06 PM
тАО10-02-2007 07:06 PM
Re: Need to findout how many users currently enabled in hp-ux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 07:18 PM
тАО10-02-2007 07:18 PM
Re: Need to findout how many users currently enabled in hp-ux
In my passwd file all users has * entry , it means shadow is enabled , I did nt find shadow file in /etc . where exactly this file locates?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 07:19 PM
тАО10-02-2007 07:19 PM
Re: Need to findout how many users currently enabled in hp-ux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 07:29 PM
тАО10-02-2007 07:29 PM
Re: Need to findout how many users currently enabled in hp-ux
I can guess you are using a trusted system.
visit links below to get more info.
When a system is converted to a Trusted System, the encrypted password, normally held in the second field of /etc/passwd, is moved to the protected password database, and an asterisk holds its place in the /etc/passwd file.
Protected password database files are stored in the /tcb/files/auth/ hierarchy. User authentication profiles are stored in these directories based on the first letter of the user account name. For example, the authentication profile for user david is stored in the file /tcb/files/auth/d/david.
http://docs.hp.com/en/B2355-90950/ch08s10.html#bghcgchf
http://docs.hp.com/en/B2355-60105/passwd.4.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 07:40 PM
тАО10-02-2007 07:40 PM
Re: Need to findout how many users currently enabled in hp-ux
I am using " modprpw -k " command to enable the user , same way what is the command to disable the user ?
So Is there any way to find out all disabled users in a trusted system.
Please help me on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 07:55 PM
тАО10-02-2007 07:55 PM
Re: Need to findout how many users currently enabled in hp-ux
http://docs.hp.com/en/B2355-90121/B2355-90121.pdf