LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-09-2006, 03:14 PM   #1
mike160
Member
 
Registered: Jan 2006
Location: Connecticut
Distribution: Ubuntu 10.10, Lubuntu 10.10, #!Crunchbang 10 "Statler"
Posts: 84

Rep: Reputation: 15
NEED to replace an NT4 server with Linux...


I do some computer consulting work for a local school system... heres is my dilema...

For cost and security reasons I need to replace a Win NT 4 student server with a Linux server...

The workstations the students use are XP based and they login to the domain by using CTRL, ALT, DEL method.. also when they login to the domain a home folder is automatically created for that user within that domain.

So... My question is .. "Is it possible to implement these same features on a linux server and have it be transparent to the end user ??"

Also .. What would be the "right" distro to use ???

I use Slack at home but I really never delved into the heavy networking side of things, though I here its a good distro to use for such things.

Thanks in advance
 
Old 06-09-2006, 05:02 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Should be no problem. Just setup samba on the linux machine to take the place of the NT server. A quick google shows many links on replacing nt server with linux.
http://citnews.unl.edu/linux/LinuxPresentation.html

Brian1
 
Old 06-09-2006, 06:43 PM   #3
mike160
Member
 
Registered: Jan 2006
Location: Connecticut
Distribution: Ubuntu 10.10, Lubuntu 10.10, #!Crunchbang 10 "Statler"
Posts: 84

Original Poster
Rep: Reputation: 15
Thanks for the quick reply... looks like its time to do some quality reading on setting up a Linux server.


After taking a little time and doing a little googling i have yet to find anything explaining how to tell samba to auto-create home directories for each new user that logs onto the domain... am i just missing something or is it just a security thing ???

Last edited by mike160; 06-09-2006 at 07:01 PM.
 
Old 06-09-2006, 08:33 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
This can be a difficult task in my eyes. It would be easier with scripts to generate the home user directories and other common needed changes. I am not that great at it but I am sure others can help here. Things I think that will be needed to make the change. Kind of the way I would procede with time.

First setup a Linux box.
Second configure Samba server to needed specs.
Thrid the migration.
Gather user names from the Windows Nt box.
You can use a password cracker and get the passwords on the users.
Now generate a text file with username and password seperated by some kind of symbol like a :

With user and password list one can generate a script to do the following.
Take the first name and password and send it to the adduser command to generate their home folder and password.

Next script is using the same user and password file to generate the samba user and password files. The dafault install of samba sets home user directories visible to the user only. Check the [home] section from /etc/samba/smb.conf file.

Next script you can migrate the users data from the Windows NT box to thier user home directory on the linux box. One can either copy all users data to the linux box and then using the user and password list and only use the username to copy from the Windows user directory to the linux home directory. I think this would be easier.

Now to make sure the users have ownership of thier files after the data transfer you can again use a script to pull the user names from the /home like ' ls /home > user.list '. Then take this file and run a script to take the first name and then run the commnads like chown and chgrp command.

Restart the samba server and see what is seen in network neighborhood on the Window client machines.

Again I am not great at scripts. I can do some but takes me a while to figure out how to do it. Commands to help you with the scripts. awk, sed, grep

All the above can be done in one script as well. I would gererate a small sample like 5 user and password list and test to make sure it all works before doing a large group.

If you get this worked out it would be of great help to post your procedure and contents of the scripts to help others in the future. I haven't yet searched here or googled the net to find scripts to do the above. I am sure someone has done this and posted the scripts somewhere. If I get some time this weekend I might put a few searches to see what I can find here or on google. I will look at some of my old scripts and see what if any would help.

Brian1
 
Old 06-09-2006, 09:34 PM   #5
mike160
Member
 
Registered: Jan 2006
Location: Connecticut
Distribution: Ubuntu 10.10, Lubuntu 10.10, #!Crunchbang 10 "Statler"
Posts: 84

Original Poster
Rep: Reputation: 15
awesome info Brian..thank you. I will search around some more as well to see what I can come up with .. so far I've read about a package called PAM that does somthing along those lines. also I'm not sure how much data will acctually have to be transferred to the Linux box,... It would be much easier to just assign users a username and password that are alredy pre-configured in the addusr scripts.

but,.. this could also be a PITA if theres a large, constanley changing group of students logging onto teh server.

How do colleges do it ??? I can't see the move to Linux being cost efective if they have to hire additional IT support to maintain the Linux Servers ...??
 
Old 06-10-2006, 06:31 AM   #6
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
I currently work at a College... we use scripts to automate user creation (and creating home directories on Linux boxes). Linux lends itself *very* well to automation by scripts, and script writing is an essential skill for getting much out of Linux. It's also very simple to learn, much more so than Windows scripting/programming. Colleges without Linux expertise in-house tend to just use Windows.

When I worked at a school most of the students came in at the beginning of the year, so we could run batch account creation once and then add individuals without automation.

Really useful links:

www.webmin.com - free and comprehensive system management tool, you should find that the text of the book "Managing Linux Systems with Webmin" is a free download from the book publisher.

www.linuxcommand.org - gentle and very good introduction to Linux shell scripting.

Also, the Samba site has the text of several books available for free download - you will find looking at that a good investment.
 
Old 06-10-2006, 03:43 PM   #7
mike160
Member
 
Registered: Jan 2006
Location: Connecticut
Distribution: Ubuntu 10.10, Lubuntu 10.10, #!Crunchbang 10 "Statler"
Posts: 84

Original Poster
Rep: Reputation: 15
thank you everyone for your help again this is great stuff !!
If I can think of anything else i'll be sure to ask..

mike
 
  


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
Linux replace Windows Server?? LinuxHawk Linux - Networking 2 11-17-2005 11:14 PM
Linux alternative to replace Outlook running with MS Exchange server sether Linux - Software 2 10-27-2004 02:46 PM
KMail configuration with NT4.0 Mail Server...Possible??? macdudelx Linux - Networking 9 09-12-2002 12:17 PM
replace exchange server with Linux? browny_amiga Linux - Software 1 08-09-2002 12:44 PM
RHLinux 7.1 connectivity to W2K/NT4 Server? repcne Linux - Networking 2 10-02-2001 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:22 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