LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-22-2007, 07:19 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Replacing a File Server


Guys - we have a Linux RHEL4 server that basically runs 2 things. Samba and Apache. The main job of this machine is to dish out files as a file server via Samba to Windows clients. Its a fairly simple server however it is old and we now have a nice new Dell server ready to do the same task. Now I plan to install RHEL4 on this machine in a similar partition scheme as the current FS however now I have no clue what the correct process is for importing everyones user account that is listed in /etc/passwd and /etc/shadow.

Right now the SMB.conf file authenticates everyone's access from LDAP so nobody really ever needs to know their password as long as they are logged into their machine via the LDAP server. It just uses their local machine authentication on the domain.

How do you guys recommend I copy over all 300 user accounts? I don't know if I copy over the /etc/passwd and /etc/shadow files, will that generate their /home/user directories or is there some magic trick? I know I have seen this done before, I just wish I had taken notes as I don't recall.

Thanks for any info!
 
Old 08-22-2007, 04:33 PM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
The following article is a little dated, but it sounds like it would still apply to your situation.

How do I migrate user accounts from Red Hat Enterprise Linux 2.1 to version 3 or 4?
 
  


Reply



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
replacing string within same file tostay2003 Programming 2 07-06-2007 02:25 AM
replacing data in a file metalx1000 Programming 4 11-15-2006 11:19 AM
Replacing new lines (\n) from a file bkeeper Linux - Software 4 12-15-2005 02:13 AM
replacing text in file kushalkoolwal Programming 17 10-25-2005 05:25 AM
Replacing a particular position in a file sgracelin Linux - Newbie 1 06-20-2005 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration