- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- copy users to another machine
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
01-16-2003 12:01 PM
01-16-2003 12:01 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 12:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 12:06 PM
01-16-2003 12:06 PM
Re: copy users to another machine
Is either a trusted machine?
How are you going to move the applications, crons, databases, ...???
The use of "sam" will depend upon what you need to do.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 12:13 PM
01-16-2003 12:13 PM
Re: copy users to another machine
The Home directory for the users is the 2nd to last string in /etc/passwd.
Use the directory and make tar files of users home directories and then extract them on the other system.
If the reason you are doing this is to have common usernames and passwords on multiple systems, I'd recommend that you install/configure NIS.
You can achieve the server setup and client connections with SAM very easily. SAM -> Networking and Communications -> NIS
Configure the seat with all the user data as the NIS Master server, use the same utility on clients and configure them as NIS clients.
Add to this using SAM -> Networking and Communications -> NFS (Networking File System).
Export the Home directory location from the server, use the same panels to Mount the remote file system in the exact same spot on each client.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 12:19 PM
01-16-2003 12:19 PM
Re: copy users to another machine
i will not recommend you to copy just the /etc/passwd and the /etc/group files and /home because of the issue of the user id's and primission on files .
i will recommend to use a script to add the user .
if you home dir is a nfs system you will need to add on both system the same userid on both computer .
here is a replt that my help you on this issue :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xb31157bd90a9d611abdb0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 12:19 PM
01-16-2003 12:19 PM
Re: copy users to another machine
Follow these steps.
1) Copy the /etc/passwd & /etc/group on the other system. Diff on the original and add the new ones only
2) I have my home directories for all users under /home/systemname. If you have something like that, you can run this command from the 1st system assuming that you have NIS working. Create a default home directory location and place all users under that on the 2nd system.
cd /home/systemname(where all home directories are placed)
tar -cf - * | remsh destinationserver "cd /home/systemname; tar -xf -"
3) Make sure, that the directory permissions are fine. Normally, there should not be any issue for you as the directory permissions are retained with their current ownerships.
-Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 12:24 PM
01-16-2003 12:24 PM
Re: copy users to another machine
As you can tell from the variety of answers you're getting - it depends on the situation and what you're trying to accomplish. If you're setting up a brand new machine and want to migrate to it, then the simple approach of just copying passwd, groups and home directories would suffice. If you're merging machines, it becomes more complicated.
More info would probably help immensely.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 01:26 PM
01-16-2003 01:26 PM