HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sorting /etc/passwd file
Operating System - HP-UX
1834207
Members
2618
Online
110066
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-15-2000 07:48 AM
06-15-2000 07:48 AM
Sorting /etc/passwd file
I was wondering if i can sort /etc/passwd file and push maps with /var/yp/ypmake without having any problems? It's because i have about 200 entry in /etc/passwd and it's all mixed up.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2000 09:57 AM
06-15-2000 09:57 AM
Re: Sorting /etc/passwd file
Yes, you can sort and push various parts of the /etc/passwd for your use, I just would not replace the file. Try something like the following:
cat /etc/passwd | tail $(wc -l /etc/passwd)-n | sort | tee some_file_name
You'll need to figure out what the value of n is in order to skip the OS Specific Logins.
Hope that helps.
cat /etc/passwd | tail $(wc -l /etc/passwd)-n | sort | tee some_file_name
You'll need to figure out what the value of n is in order to skip the OS Specific Logins.
Hope that helps.
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2000 11:08 AM
06-15-2000 11:08 AM
Re: Sorting /etc/passwd file
You might also look at modifing the makefile so that UIDs that are lass than 100 are not pushed. These entries are essentially on the local systems (i.e., root) and when you push, you push in the clear. Not a concern if security is not an issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2000 11:40 AM
06-28-2000 11:40 AM
Re: Sorting /etc/passwd file
To avoid problems now and in the future, pay special attention at possible duplicate UID, or mixed up. If you have a local user with the same UID# as a NIS user, the local one take ownership of the files.
If you want to push just part of /etc/passwd file from the server, you can create another password file the will me used by NIS.
Otherwise, I see no problems.
If you want to push just part of /etc/passwd file from the server, you can create another password file the will me used by NIS.
Otherwise, I see no problems.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP