- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Manually edited passwd file. SAM no longer sees a ...
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
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
04-28-2006 08:26 AM
04-28-2006 08:26 AM
Manually edited passwd file. SAM no longer sees a majority of the accounts
Can anything be done so that SAM sees all the accounts?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2006 08:33 AM
04-28-2006 08:33 AM
Re: Manually edited passwd file. SAM no longer sees a majority of the accounts
The copy action may have left the passwd and group caching daemon hopelessly confused so pwgrd may need to be shutdown and restarted.
The far better approach to unifying the passwd files is NIS or LDAP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2006 11:47 AM
04-28-2006 11:47 AM
Re: Manually edited passwd file. SAM no longer sees a majority of the accounts
I would suspect a corrupted /etc/passwd file.
Run the following:
pwck
to check the integrity of the passwd file. And it may also point out problems in the group file & the you should run
grpck
to check it.
You don't state whether you're trusted or not, but if you are then you should also run
authck
to check the tcb.
BTW - I *always* copy passwd, group and /tcb if I'm trusted. They are *all* integral to each other. And I usually throw in /home to boot.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2006 11:54 AM
04-29-2006 11:54 AM
Re: Manually edited passwd file. SAM no longer sees a majority of the accounts
pwck and grpck do not show any issues, other than a few accounts with missing home directories, but that is the same on both servers. I killed and restarted pwgrd and still, the same results. There are fewer than 50 user accounts currently on each of these servers. Neither servers are running in Trusted Mode.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 05:42 AM
05-01-2006 05:42 AM
Re: Manually edited passwd file. SAM no longer sees a majority of the accounts
If you can't view the file yourself, then ask them to repeat the process, and listen in on every step.
It's got to be two lines joined together, or the way they copied the files from one box to the other (maybe didn't use binary mode for the transfer). Maybe the opened editors on both files in a visual environment and copied and pasted using a buffer to get the files in relative sync.
I'd ask them to
1) open up vi on the source password file and using a numeric range write the users needed to be moved to the other server to a temp space.
2) Copy that new temp file (in binary form) to the other server and store in a matching temp space. (make sure to clean up temp spaces later).
3) On the new server, clean up the /etc/password file, and remove all the junk appended to it from the previous attempt, save it, and save a backup copy.
4) Append the temp file from the other server to the current (new) server's /etc/password file.
#cat /tmp/newfile >> /etc/passwd
vi the new /etc/passwd file and carefully assess the record structure at the append point, making sure that two password entries don't exist on the same line. Also make sure that there is no blank line between the top and appended point. It should look pretty smooth and even.
run pwck and resolve each issue
#pwck
Repeat the above process for /etc/group
run grpck and resolve each issue
#grpck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 05:43 AM
05-01-2006 05:43 AM
Re: Manually edited passwd file. SAM no longer sees a majority of the accounts
If you can't view the file yourself, then ask them to repeat the process, and listen in on every step.
It's got to be two lines joined together, or the way they copied the files from one box to the other (maybe didn't use binary mode for the transfer). Maybe the opened editors on both files in a visual environment and copied and pasted using a buffer to get the files in relative sync.
I'd ask them to
1) open up vi on the source password file and using a numeric range write the users needed to be moved to the other server to a temp space.
2) Copy that new temp file (in binary form) to the other server and store in a matching temp space. (make sure to clean up temp spaces later).
3) On the new server, clean up the /etc/password file, and remove all the junk appended to it from the previous attempt, save it, and save a backup copy.
4) Append the temp file from the other server to the current (new) server's /etc/password file.
#cat /tmp/newfile >> /etc/passwd
vi the new /etc/passwd file and carefully assess the record structure at the append point, making sure that two password entries don't exist on the same line. Also make sure that there is no blank line between the top and appended point. It should look pretty smooth and even.
run pwck and resolve each issue
#pwck
Repeat the above process for /etc/group
run grpck and resolve each issue
#grpck
At this point, you should be good!