- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SMH is too slow when /etc/passwd is large
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
тАО08-09-2010 01:32 PM
тАО08-09-2010 01:32 PM
I am interested in any tools or ideas that would allow for user account maintenance. SMH is far too slow. /etc/passwd has about 1000 lines. One example what we want to do is be able to determine expiration data and be able to update it quickly.
Any help would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2010 03:43 PM
тАО08-09-2010 03:43 PM
SolutionTrivial size...for command line utilities. SMH is the new kid on the block (so new that parts of it were never completed so they use old SAM pieces). I think you'll find command line tools like logins, passwd, getprpw and modprpw very fast. And you could script your own account manager where the entire passwd file is just a simple variable:
PWFILE=$(cat /etc/passwd)
SAM, oops, SMH is ideally suited for the small workstation user and despite two decades of improvements, is still very, very slow and buggy. You have a specialized system so a few hours of scripting can change maintenance into a trivial, virtually instantaneous task.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 11:49 AM
тАО08-10-2010 11:49 AM
Re: SMH is too slow when /etc/passwd is large
I kind of expected 1000 lines should be easily handled as this is not a problem I experienced firsthand. However, I wondered if anyone like you had already written scripts to manipulate /etc/passwd. As a matter of fact I looked at the scripts you handed out several years ago when I took your Sys Admin pre-symposium seminar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 04:26 PM
тАО08-10-2010 04:26 PM
Re: SMH is too slow when /etc/passwd is large
Just some thoughts for manipulating passwd from command line: a simple locking mechanism should be implemented, and some version control might be good for keeping the older revisions, or at least a backup mechanism. Maybe you could incorporate the pwck command at the end of the script just for sanity-checking.
Regards,
Viktor
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 06:17 PM
тАО08-10-2010 06:17 PM
Re: SMH is too slow when /etc/passwd is large
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 08:04 AM
тАО08-11-2010 08:04 AM
Re: SMH is too slow when /etc/passwd is large
Here is how the user put it "what is the best way to manage local user account expirations as well as password expirations on the command line? I know for passwords I could just reset the password, but what if I want to look at the date?"
Thanks for your input!
BTW - Since getprpw and modprpw show as OBSOLETE on 11.31, do you know what/if there is something that replaces them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 11:46 AM
тАО08-11-2010 11:46 AM
Re: SMH is too slow when /etc/passwd is large
See my replies in these threads:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1400096
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1282383
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 12:34 PM
тАО08-11-2010 12:34 PM
Re: SMH is too slow when /etc/passwd is large
man getprpw ... TO BE OBSOLETED
Not yet obsolete. 11.31 is the last rev for Trusted. But since you are using standard security, logins and passwd will work just fine. Use Dennis Handley's program as a fast report writer and logins and passwd to make the changes.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2010 11:09 AM
тАО08-12-2010 11:09 AM
Re: SMH is too slow when /etc/passwd is large
Bill - right "TO BE OBSOLETED" - I was not as specific as I should have been.
I think the tools you have provided and pointed out should be adequate.