LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-24-2004, 10:18 PM   #1
figadiablo
Member
 
Registered: Feb 2002
Location: Virginia USA
Distribution: Slackware, CentOS, Fedora
Posts: 342

Rep: Reputation: 30
Help with Samba PDC


ok, I am trying to set up this computer as a samba PDC, but so far I have not been able to do so. Im using Slackware 9.1 and Samba 3.0.1. Here is my smb.conf

[global]
workgroup = FIGANET
netbios name = DOMAIN
server string = Samba Server
log file = /var/log/samba.%m
max log size = 50
add user script = /usr/sbin/useradd %u
delete user script = /usr/sbin/userdle %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
delete user from group script = /usr/sbin/deluser %u %g
add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
dns proxy = No

[homes]
comment = Home Directories
read only = No
browseable = No

[netlogon]
comment = Network Logon Service
path = /usr/local/samba/lib/netlogon
guest ok = Yes
share modes = No

[Profiles]
path = /usr/local/samba/profiles
guest ok = Yes
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No




now after reading the documentation from the samba.org site it says to add something like this line

; instead of jay, use the names of all users in the Windows NT/2000/XP
; Administrators group who log on to the domain
domain admin group = root jay


but I guess this does not work for samba 3. Now the smbpasswd -a username is not working either, I get this message:

bash-2.05b# smbpasswd -a user1
New SMB password:
Retype new SMB password:
Failed to initialise SAM_ACCOUNT for user user1.
Failed to modify password entry for user user1


Reading online documentation is just making it worse. Everyone has a different way of configuring a PDC.

Now another thing that I don't understand, when adding a Win2000 machine to the domain, am I supposed to do it the usual way by right ckick on my computer and then adding it to the domain through the network identification tab, or is there a different process to do this?

Now is late, I will try reading everything again tomorow or hitting Borders and getting The Official Samba-3 HOWTO and Reference Guide, but if anyone has any suggestion I will apreciate it so much.

Thanks

-- Figa
 
Old 03-25-2004, 11:31 AM   #2
muah
Member
 
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 32
Re: Help with Samba PDC

1) add 'security = user' to [global] section
2) Samba 3 doesnt use 'domain admin group' setting anymore, u need to map nt group to an existing linux group via 'net' command. Its something like 'net groupmap ...' u ll find it in Samba-Howto-Collection which is on the samba web site.
3) About adding an user using 'smbpasswd -a user1': did u create a linux account for this user before?
4) Adding client machines to a domain. You will need to go to control panels in w2k - system - network identification (or how its called i dont have w2k nearby) and set domain to log in to your desired name. Then it will ask for a username/pw - u need to enter either root/roots_password or username/pw of a member of domain admin group (which u have mapped via 'net' cmd before
 
Old 03-25-2004, 01:36 PM   #3
figadiablo
Member
 
Registered: Feb 2002
Location: Virginia USA
Distribution: Slackware, CentOS, Fedora
Posts: 342

Original Poster
Rep: Reputation: 30
muah thanks,

I did have security = user, but I think swat messed it up. I have never like it.

3) About adding an user using 'smbpasswd -a user1': did u create a linux account for this user before?
Am I suposed to do add the user to Linux and then to samba? I though the the line " add user script = /usr/sbin/useradd %u" would take care of adding both.


-- Figa
 
Old 03-26-2004, 06:03 AM   #4
muah
Member
 
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 32
Ad 3) U need to create that user before adding him via smbpasswd. That userad script is used only when u want to use some NT Domain admin tools (its a product from MS which runs under windows and is used for remote windows domain server administration)
 
  


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
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 11:39 AM
samba PDC ilnli Linux - Software 1 11-21-2005 07:59 AM
samba pdc citrus Linux - Networking 3 05-24-2004 02:19 AM
Samba as a PDC bLaDe Linux - Networking 14 09-18-2003 05:06 PM
samba pdc gauge73 Linux - Networking 0 02-18-2003 07:49 PM


All times are GMT -5. The time now is 10:03 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration