- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Transfering of users to a newv system
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
11-07-2005 01:07 AM
11-07-2005 01:07 AM
Transfering of users to a newv system
I have 500 users. I need to copy users and their passwords to the new server. How do I do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 01:11 AM
11-07-2005 01:11 AM
Re: Transfering of users to a newv system
Copy /etc/group and /etc/passwd.
Copy the home directories.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 01:19 AM
11-07-2005 01:19 AM
Re: Transfering of users to a newv system
Get the tcb tree, /etc/passwd, & /etc/group.
In a non-trusted system
Get the /etc/passwd & /etc/group
In both cases, get the users home directories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 02:00 AM
11-07-2005 02:00 AM
Re: Transfering of users to a newv system
For non trusted systems just copy /etc/passwd and /etc/group files. Alongwith this copy there home directory structure with same permissions.
HTH
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 02:00 AM
11-07-2005 02:00 AM
Re: Transfering of users to a newv system
Here is something , that will be useful while transfering the users to the new system :
1. # rcp /etc/passwd newserver:/myusers/
2. Here is a script that needs to run on the new server:
###########################################
# script for trasfering users from old server to newserver .
cat /myusers/passwd |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 this script on the newserver.
3. Restore the /home on newserver, to get all $HOME data , into all users home directory.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 02:12 AM
11-07-2005 02:12 AM
Re: Transfering of users to a newv system
If ur system is not in trusted mode, all that u need to do is
1. Copy /etc/passwd and /etc/group of the old server to the new server. Ensure that you have opened few consoles with root login before copying the files, so that if any problem is there you can at least change root password.
2. Replicate the home directires of all users with same permissions.
And if ur system is in trusted mode,
1. first of all you need to convert the new system in to trusted mode, with the same policies of the old server(Like Max password length, password aging etc..)
2.Copy /etc/passwd and /etc/group of the old server to the new server
3.Copy /tcb directory of old server in to the new server.
4. replicate user home directories with same permissions.
Wish you all success !!!
Regards,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 07:17 PM
11-07-2005 07:17 PM