- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mass user migration
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
Discussions
Discussions
Forums
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
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
тАО09-15-2005 08:27 AM
тАО09-15-2005 08:27 AM
Is there an HP-UX equivalent to the MPE/ix BULDACCT process which allows for the mass replication of user-ids and attributes? My company is looking to migrate up to 40,000 user-ids and would like to not have to do a whole lot of data entry...
Thanks in advance,
Chuck Ciesinski
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 08:31 AM
тАО09-15-2005 08:31 AM
Re: Mass user migration
What exactly are you trying to do? I'm sure it can be done with a not very complicated script.
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 08:32 AM
тАО09-15-2005 08:32 AM
Solutioncd /home
tar cf /tmp/home.tar .
then copy /etc/passwd, /etc/group and /tmp/home.tar to the new computer. Then restore the home directories and that should do it.
Unless you are on a trusted systems, then you have to include the other support files.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 09:40 AM
тАО09-15-2005 09:40 AM
Re: Mass user migration
Copy the /etc/passwd file from the old server
to /somedir/userinfo on the new server
created a script like this.
cat /somedir/userinfo |while read line
do
USER=$(echo $line|awk '{FS=":";print $1}')
PASS=$(echo $line|awk '{FS=":";print $2}')
USERID=$(echo $line|awk '{FS=":";print $3}')
GID=$(echo $line|awk '{FS=":";print $4}')
INFO=$(echo $line|awk '{FS=":";print $5}')
HOME=$(echo $line|awk '{FS=":";print $6}')
SHELL=$(echo $line|awk '{FS=":";print $7}')
echo "Adding $USER"
useradd -u $USERID -g $GID -s $SHELL -c "$INFO" -o -m -k /etc/skel -d $HOME $USER
/usr/sam/lbin/usermod.sam -p`echo "$PASS"` $USER
done
Run the script and your done
Home dirs will be the same.
UIDs will be the same.
Shells will be the same.
Groups will be the same.
Passwords will be the same.
Even any comments will be the same.
then restore their home dirs on the new server
Have fun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 09:41 AM
тАО09-15-2005 09:41 AM
Re: Mass user migration
Should be on the same line as the useradd command right after the -d
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 04:44 PM
тАО09-15-2005 04:44 PM
Re: Mass user migration
See the following HP-UX link. It provides tool & instruction also.
http://docs.hp.com/en/J2716-90046/ch04.html?btnPrev=%AB%A0prev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2005 01:37 AM
тАО09-16-2005 01:37 AM