LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-18-2005, 01:36 PM   #1
chicofidel
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
Moving Solaris Users and Passwords to Linux


Guys -

I'm moving some FTP accounts from my Solaris 2.8 FTP server to my x86 Linux server and i do not want to have my FTP users set their passwords again. I want this change to be as transparent as possible. Shouldn't i be able to simply copy the /etc/passwd /etc/shadow and /etc/group files to my new box?

Thanks in advance
 
Old 08-18-2005, 01:41 PM   #2
PenguinPwrdBox
Member
 
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
No. Don't do that.
You may wipe some system accounts that are different from Solaris to linux.
I would scp the passwd, group, and shadow files across, and add a .old to the filenames.
Go into the .old files, and remove all the system accounts (nobody, gopher, etc) leaving only your users.

Then:

Code:
cat /etc/passwd.old >> /etc/passwd
cat /etc/shadow.old >> /etc/shadow
cat /etc/group.old >> /etc/group
 
Old 08-18-2005, 01:51 PM   #3
chicofidel
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Yes definately not. Actually i did a copy and paste of the FTP entries and it seems like it's not working. Let me try again ... will reply shortly
 
Old 08-18-2005, 01:59 PM   #4
PenguinPwrdBox
Member
 
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
It is conceivable that you will have to reassign passwords, as the hash that was used to encrypt them is probably different than the one you are using now...
 
Old 08-18-2005, 02:32 PM   #5
chicofidel
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Original Poster
Rep: Reputation: 0
The hash works cuz i can log in to the system. However, i can't connect via FTP. I get the following in /var/log/messages:

- PAM(username): Authentication failure.

But if i su - username as root, i get a shell
 
Old 08-18-2005, 04:01 PM   #6
PenguinPwrdBox
Member
 
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
What FTP server are you using?
 
Old 08-19-2005, 06:55 AM   #7
chicofidel
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Original Poster
Rep: Reputation: 0
actually, everything works fine. I forgot to add the (false) shell i used for the FTP accounts to the /etc/shells file on my Linux box. Thanks for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
moving users with passwords to a new distro nazir Linux - Newbie 5 12-22-2005 12:41 PM
Solaris for Linux users zaphod_es Solaris / OpenSolaris 15 03-18-2005 03:47 AM
Moving encrypted passwords to a new host paulsm4 Linux - Software 1 09-17-2004 01:40 AM
Moving existing users from one Linux server to... xmdms Linux - General 7 03-04-2004 05:41 PM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 10:59 AM


All times are GMT -5. The time now is 06:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration