HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- move user
Operating System - HP-UX
1836581
Members
1557
Online
110102
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
04-21-2003 07:26 PM
04-21-2003 07:26 PM
move user
We will change my HP UX 10.2 to linux , how can I move the UX users to linux instead of re-creating all the users again ? thx
Juno
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 07:34 PM
04-21-2003 07:34 PM
Re: move user
If the system is NOT trusted, then you could try just copying the users you want from the /etc/passwd and the appropriate groups from the /etc/group file. I wouldn't overwrite the passwd and group files already on the machine though since you would mess up your root account and possibly other system accounts.
If your system IS trusted, then you can try un-trusting it (tsconvert -r, I think) and then doing the above.
Good luck.
If your system IS trusted, then you can try un-trusting it (tsconvert -r, I think) and then doing the above.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 07:48 PM
04-21-2003 07:48 PM
Re: move user
If all the users home directories are say under /home, then you could backup the directories and move them across to your linux system.
Make sure that you have enough space for the archive:
# cd /home
# tar cvf /tmp/myusers.tar .
Copy file across using ftp
On linux box
# cd /home (or new directory)
# tar xvf /tmp/myusers.tar
If the system is not trusted then you can copy the entries from the existing /etc/passwd file. Beware not to include entries for root or other system accounts.
# cp /etc/passwd /tmp/passwd
ftp the file to linux box
# cp /etc/passwd /etc/passwd.save
# vi /etc/passwd
copy in the new file
:r /tmp/passwd
Remove the entries not required. Save the file.
COpy the /etc/group file as well
Make sure that you have enough space for the archive:
# cd /home
# tar cvf /tmp/myusers.tar .
Copy file across using ftp
On linux box
# cd /home (or new directory)
# tar xvf /tmp/myusers.tar
If the system is not trusted then you can copy the entries from the existing /etc/passwd file. Beware not to include entries for root or other system accounts.
# cp /etc/passwd /tmp/passwd
ftp the file to linux box
# cp /etc/passwd /etc/passwd.save
# vi /etc/passwd
copy in the new file
:r /tmp/passwd
Remove the entries not required. Save the file.
COpy the /etc/group file as well
Anyone for a Mutiny ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 07:55 PM
04-21-2003 07:55 PM
Re: move user
The part of copying the entries in the /etc/passwd and /etc/group to your Linux box should be relatively easy. Keep in mind Linux uses bash shell (/bin/bash) and in fact /bin/sh is a sym link to bash as well. The Korn shell path can be either /bin/ksh or /usr/bin/ksh. So depending on what shell is in the passwd file, you may/may-not need to change it's path. The users who wanted a option of running bash shell in Linux might need to have to create .bashrc file and it can simply be any entry in there that sources the global /etc/bashrc like so ..
..
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
..
For physically copying the users home dir, you can use tar to create a tar ball and later extract it on the Linux side.
..
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
..
For physically copying the users home dir, you can use tar to create a tar ball and later extract it on the Linux side.
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