- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- migrating user accounts
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
03-31-2006 06:14 AM
03-31-2006 06:14 AM
i am trying to migrate 500 user accounts from the main HPUX 11.00 box to a backup solaris 9 box which needs /etc/passwd /etc/shadow and /etc/group.
on the HPUX i have only /etc/passwd and /etc/group...
what can i dow for /etc/shadow?
thanks,
abhimanyu.
p.s. something to do with trusted system?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2006 06:25 AM
03-31-2006 06:25 AM
Solutioncat out the passwd file and get specific fields such as the acct name, the UID, the GID, etc. (You want to keep the same UID/GID?)
cat /etc/passwd | awk -F: {print $1, $2, $3, $4, $5, $6, $7}' > /tmp/addusers This file will now have 6 fields separated by white space.
You can use this output to feed into the useradd command on the SUN.
Put this file on the SUN box.
cat /tmp/addusers | while read line
do
useradd -u $3 -g $4 -d $6 -s $7 -c "$5" $1
done
This will create the /etc/shadow file for you on the SUN.
Double check the syntax for a SUN box.
You can add more options to the SUN command such as -m, -k /etc/skel, etc
This is not transferring the passwds. You can take the encrypted passwds from HP and use on SUN.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2006 06:37 AM
03-31-2006 06:37 AM
Re: migrating user accounts
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2006 06:56 AM
03-31-2006 06:56 AM
Re: migrating user accounts
Take it to Solaris box, update password file.. and run pwconv..
Thx
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2006 07:03 AM
03-31-2006 07:03 AM