- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Copying /etc/passwd from old system to new sys...
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
04-01-2004 11:47 AM
04-01-2004 11:47 AM
My main concern is the generation of a new users' user-id: Where does the system get the next number to use? Does it validate that it doesn't already exist in passwd when assigning a new one?
TIA,
Brad
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 11:53 AM
04-01-2004 11:53 AM
Re: Copying /etc/passwd from old system to new system
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 12:30 PM
04-01-2004 12:30 PM
Re: Copying /etc/passwd from old system to new system
After you have copied the /etc/passwd file across to the new system, create a new password file for your old system, so no one logs in except those that need to. You can always run a 'diff' between the two files. The allocation of uid numbers can be done manually, if you use 'useradd' from the command line or SAM will pick the next available number. If using 'useradd' you will get an error message that that uid has been used. Just make sure that you don't have your system set up as trusted. (slightly different procedure)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 01:41 PM
04-01-2004 01:41 PM
Re: Copying /etc/passwd from old system to new system
Do you know where SAM gets the next available number?
Just curious.
Thanks to both of you for your help.
Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 02:37 PM
04-01-2004 02:37 PM
Re: Copying /etc/passwd from old system to new system
Sometime before SAM was programmed such a way that it will used a unused uid above 100.
I am not sure whether any changes have been done recently on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 02:39 PM
04-01-2004 02:39 PM
Solutionwhen you copy the /etc/passwd & /etc/group file make sure you have a session opened by root.
Once you copy it,change the password of root immediately and try logging into root opening a new session.
"keep one session of root open until things work successfully"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 02:41 PM
04-01-2004 02:41 PM
Re: Copying /etc/passwd from old system to new system
SAM-->users-->actions-->user templates--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 04:23 PM
04-01-2004 04:23 PM
Re: Copying /etc/passwd from old system to new system
- nonexisting shells
- nonexisting homedirs
- change in encryption method
So, after copying your passwd and group file, run the pwck and grpck utilities and replace the root-line from the old passwd file back to the new one, to make sure root still can login. Check that one too. And take a look at differences between the two files for pseudo users defined on the new machine before copying the passwd file. It might be the new installation has some extra pseudo users defined you didn't have. It might even be you get into trouble with old users having user id's that have extra rights now, for instance a normal user that has the same uid as the http users on the new system....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 04:38 PM
04-01-2004 04:38 PM
Re: Copying /etc/passwd from old system to new system
It should be OK. but also u need to copy /etc/group and home directory of all users
Thanx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 04:56 PM
04-01-2004 04:56 PM
Re: Copying /etc/passwd from old system to new system
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 05:03 PM
04-01-2004 05:03 PM
Re: Copying /etc/passwd from old system to new system
2 links to threads that might give some extra info:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=399487
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=370167
HTH,
Peter