- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Move user profile
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
07-13-2003 05:48 PM
07-13-2003 05:48 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2003 05:59 PM
07-13-2003 05:59 PM
Solution# /usr/lbin/tsconvert -r (to un-trust a system)
Don't forget to backup user home directories as well if needed. You will find that the ~users/.profile will have different definitions on linux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2003 06:03 PM
07-13-2003 06:03 PM
Re: Move user profile
It is a file called .profile
In Linux the file is called
.bash_profile
You can copy the .profile file, rename it and then run tests to make sure everything works as expected.
There are a few other files which I've not seen in HP-UX.
.bash_logout
These are the commands you want to run when the user logs out. The standard Linux profile has one command, clear
This of course can be enhanced to clean up user processes.
The equivalent of the .sh_history file is .bash_history. Don't migrate it, it won't be of much help.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2003 06:08 PM
07-13-2003 06:08 PM
Re: Move user profile
One way is to extract the fields from /etc/passwd file in HPUX and create those users in linux server. Or alternatevely as Michel said, copy the /etc/passwd /tmp/passwd.dev
vi /tmp/passwd.dev and cut the top few lines reserved for system i guess till "www" and append this file to the /etc/passwd in linux
Also make sure before you do this the HPUX server should be untrusted otherwise you'll have * in passwd fileds.
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2003 06:43 PM
07-13-2003 06:43 PM
Re: Move user profile
1. In the HP-UX(if the hpux is not truested):
cut -d: -f1,2 /etc/passwd > /tmp/hpuxuser.lst
2. Copy hpuxuser.lst to the linux box's /tmp.
3. Create a script:
#!/bin/sh
awk -F: '{
c=sprintf("echo \"/usr/sbin/useradd -p %s %s\"",$2,$1)
system(c)
c=sprintf("/usr/sbin/useradd -p %s %s",$2,$1)
system(c)
}' /tmp/hpuxuser.lst
4. run the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2003 08:01 PM
07-13-2003 08:01 PM
Re: Move user profile
I want to further to ask Tully's method, when run tsconvert , it pop up the error, what is wrong in my system ? thx
# /usr/lbin/tsconvert -r
System is not Trusted System.
Deleting at and crontab audit ID files...
Can't open directory: /var/spool/cron/.ataids
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2003 08:26 PM
07-13-2003 08:26 PM
Re: Move user profile
run "tsconvert -r" which removes trusted system
You should remove asterisk in password field of /etc/passwd, that will reactivate passwords.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2003 10:00 PM
07-13-2003 10:00 PM
Re: Move user profile
It is HP UX non-trusted system now , Is there any tools that can directly mv the user profile from UX to linux ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2003 10:36 PM
07-13-2003 10:36 PM
Re: Move user profile
No tool exist to move users from hp-ux to linux,
either you have to use twang's method to move or create the users on linux.
i prefer creating the users insteading of moving
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 01:33 AM
07-14-2003 01:33 AM
Re: Move user profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:51 PM
07-14-2003 05:51 PM
Re: Move user profile
Is it no such utility in unix system ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:42 PM
07-14-2003 06:42 PM
Re: Move user profile
I have tested r method, but how can i preserve the group , user's home directory ?
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:48 PM
07-14-2003 06:48 PM
Re: Move user profile
It is HP UX non-trusted system now , Is there any tools that can directly mv the user profile from UX to linux ?
Answer
ftp
scp
rcp
Any will do.
As far as preserving groups and such here is a method.
Check what the users group entries were on HP-UX.
Make sure the same group entries are now in /etc/group
Manually change the user id in /etc/passwd to match the user id from the HP-UX system.
Unix users start with user id 500
If this becomes complex. merely tar up the user files, or scp them across and use this command to change ownerhip and group after the fact.
cd /home/username
chown -R sag:users *
The process can be partially automated, but some eyeball time is required.
SEP
Call me anything you want, but don't forget the points.
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 12:56 AM
07-15-2003 12:56 AM
Re: Move user profile
if you have not many user just use useradd to recreate users. And replace only password.
Or you can force your users to change password next time they log in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 02:47 AM
07-15-2003 02:47 AM
Re: Move user profile
I have tried twang's method , it is work fine , but still have problem , eg , if the user is no password , then the system will not create the login id , secondly , the script will create the user path to /home , it will not preserve the original user path , it make use some time to maintain totally 500 users in our system.
Although this is a good method , is there any other method to convert the user profile ( including password , user group , path ) to new system ? thx in advance.