- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- transfer user
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
04-22-2003 05:35 AM
04-22-2003 05:35 AM
transfer user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 06:27 AM
04-22-2003 06:27 AM
Re: transfer user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 06:33 AM
04-22-2003 06:33 AM
Re: transfer user
You can extract from /etc/passwd the users you need to create, and apply a script to create those users automatically (try with useradd command), the only thing i don't know how can you make it automatically is to assign the old passwords to the new users in linux.
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 06:34 AM
04-22-2003 06:34 AM
Re: transfer user
ls /home > home.list
and on the new linux box do:
for i in $(cat home.list)
do
mkdir -p $i
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 04:51 PM
04-22-2003 04:51 PM
Re: transfer user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 03:15 AM
04-23-2003 03:15 AM
Re: transfer user
just open an ftp session to your new Linux server and put the /etc/passwd file in your home directory. telnet to the linux box and then just quickly vi (the prefered unix text editor) the file and remove all but the user accounts. save the file and then
su to root and
cat passwd >> /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 07:30 AM
04-23-2003 07:30 AM
Re: transfer user
1.- In the HP-UX,:
cut -d: -f1,2 /etc/passwd > /tmp/users.txt
2.- Edit /tmp/users.txt file and keep only the lines which user names you want to transfer to linux.
3.- Copy this modified file to the linux box.
4.- Create the following script:
# Begin 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)
}' /path_to_users.txt
# End script
Be careful with the quotation marks.
5.- Execute the script.
You create the HP-UX users into linux box with the same passwords.
Cheers
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2003 12:48 AM
04-25-2003 12:48 AM
Re: transfer user
i tried the script but it seems it created the user but not the password for the user , is there a way to maintain the password of the users ?
if not is there a way to assign the same password to all the imported uses
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2003 02:05 AM
04-25-2003 02:05 AM
Re: transfer user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2003 03:38 AM
04-25-2003 03:38 AM
Re: transfer user
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 11:02 PM
04-28-2003 11:02 PM
Re: transfer user
so the password field is there but cant add it to the new system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2003 11:48 PM
04-28-2003 11:48 PM
Re: transfer user
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 12:05 AM
04-29-2003 12:05 AM
Re: transfer user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 06:25 PM
04-29-2003 06:25 PM
Re: transfer user
You'll need to check and see if the same number of columns.
You will need to eliminate them.
I have gotten away with this linux to linux but not hp-ux to linux.
You may need to reset the passwords on those users after the transfer.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com