LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-02-2003, 06:26 PM   #1
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Rep: Reputation: 30
Cool Samba PDC on Slack 8.1


Here is another HOWTO I originally posted on LNO, but perhaps will have a more useful home here...

Background: Slackware 8.1 box (dubbed "Slackbox") acting as a Windows 2000 PDC to a Windows XP client through Samba.

Step 1: Install the latest Samba package. As of this writing, you can get Samba 2.2.7 from the Slackware ftp site. Go to the Slackware 8.1 patches folder and download it.

If you already have Samba 2.2.4 installed on your machine, you can upgrade to 2.2.7 by doing as root:

$ upgradepkg samba*.tgz

Step 2: If you haven't done so already, edit your /etc/inetd.conf file and uncomment out the lines:

netbios-ssn
netbios-ns
swat

This will get the Samba service running at boot time, as well as the SWAT service so you can build your config file with your web browser.

Go ahead and give Slackbox a reboot.

Step 3: Build your smb.conf file. You can either do this by hand, or go the easy route and build it with SWAT. It's you choice.

To use SWAT, open-up Mozilla and browse to http://localhost:901

Here are some excerpts of what needs to be included to get Samba to work as a Win2k PDC:

[global]
workgroup = whatever
domain logons = yes
security = user
local master = yes
os level = 65
preferred master = yes
domain master = yes
encrypt passwords = yes
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
logon path = \\%N\profiles\%u
logon drive = H:
logon home = \\homeserver\%u
logon script = logon.cmd

# shares:

[netlogon]
path = /home/netlogon
read only = yes
write list = root

[profiles]
path = /home/ntprofiles
read only = no
create mask = 0600
directory mask = 0700

Step 3: create your shares:

$ cd /home
$ mkdir netlogon
$ mkdir ntprofiles
$ chmod 777 netlogon
$ chmod 777 ntprofiles

(I know this is bad security, but it's just to get things rolling...you can lock down your permissions later on)

Step 4: create users: first, let's make the Linux user account:

$ useradd xpuser
$ passwd xpuser
note: username and password MUST match what is on your client XP machine

now let's add him to the samba password file:
$ smbpasswd -a xpuser

-also, add root, but this time, give him a different password than on your Slackbox (very important!)
$ smbpasswd -a root

Step 5: all done on the Linux side. Go ahead and reboot your SlackBox.

Step 7: on your XP machine, right click on My Computer. >Properties >Computer Name >Change > Domain and enter the domain name you specified in your smb.conf file under "workgroup".
XP will prompt you for a username/passwd. For username, enter root and for the password, enter the password you created for root in Step 4.

At this point, if all goes well, you will be greeted by a "Welcome to <name> domain".

Reboot XP.

Step 8: go into the registry and drill down to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
\Services\netlgon\parameters\"RequireSignorSeal" and change the dword value from "1" to "0".

Reboot XP.

Step 9: create your XP user account/password under the domain you created. Remember that this must match the username/password on your Samba PDC.

Step 10: Login to your Samba PDC.

Your Slackbox will provide many of the same services as a Windows 2000 PDC, including IntelliMirror with full-blown roaming user profiles, but without Active Directory (for now, at least, as the wizards at Samba are allegedly working that into Samba 3.0).
 
  


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
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
samba PDC ilnli Linux - Software 1 11-21-2005 06:59 AM
Samba As A PDC steve007 Linux - Newbie 1 06-13-2005 11:27 AM
samba pdc gauge73 Linux - Networking 0 02-18-2003 06:49 PM
Samba PDC glc Linux - Networking 2 10-30-2001 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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