LinuxQuestions.org
Register a domain and help support LQ
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 08-03-2004, 11:34 AM   #1
dazzyboi
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Rep: Reputation: 0
Still cant get Suse 9.1 pro (Samba) as a PDC


After reading numerous guides on how to set-up this "easy" to set-up PDC i still dont know what im supposed to be doing. I cant tell if my Samba.conf file is correct as i dont know how to test it, and i can't for the love of god add any users or create an active directory.

I also cant access the windows xp machines from the Suse machine..
 
Old 08-03-2004, 12:44 PM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
For the initial PDC setup, use YAST and select the PDC radio button. That will get you started,

You say you want to create an Active Directory. For that, you'd be a member server in 200X, not a PDC for NT emulation. I'm not an expert on samba, but it makes me wonder what you are really trying to do since you've used those words in your post.

Last edited by musicman_ace; 08-03-2004 at 12:47 PM.
 
Old 08-03-2004, 02:03 PM   #3
dazzyboi
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Im trying to set-up a PDC on samba, i cannot do it using Samba or YaST. Iv edited the samba.conf file to what the guides tell me to and i can't add users..

Lets start at the first thing im trying to do, let Win xp machines log-on to the server so they are members of the domain and have access rights/Shared media/home directories etc...


This is my smb.conf file...

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
# Date: 2004-04-06
[global]
workgroup = morandad.local
interfaces = 127.0.0.1 eth0
bind interfaces only = true
printing = cups
printcap name = cups
printer admin = @ntadmin, root, administrator
map to guest = Bad User
security = user
encrypt passwords = yes
server string = Samba Server
hosts allow = 192.168.1.1/255.255.255.0 d-link (Is this ip of linux box?)
netbios name = morandad.local
useradd -d /dev/null -c dazroomt10 account -s /bin/false dazroomt10$
passwd -l dazroomt10$
smbpasswd -a -m dazroomt10
smbpasswd root
domain master = yes
domain logons = yes
preferred master = yes
logon path = \\%n\profiles\%u (Is this correct)
logon drive = q: (Is this correct)
logon home = \\saturn\%u (This was an e.g. would mine be c:?)
local master = yes
preferred master = yes
os level = 65
ldap suffix = dc=example,dc=com
ldap admin dn = ou=ldapconfig,dc=example,dc=com


[net logon]
comment = the domain logon service
path = /var/lib/samba/netlogon
guest ok = yes
writable = no
share modes = no

[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = No
guest ok = no
printable = no
[users]
comment = All users
path = /home
writeable = Yes
inherit permissions = Yes
veto files = /aquota.user/groups/shares/
browseable = yes
guest ok = no
printable = no
[groups]
comment = All groups
path = /home/groups
writeable = Yes
inherit permissions = Yes
browseable = yes
guest ok = no
printable = no
[pdf]
comment = PDF creator
path = /var/tmp
printable = yes
print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
create mask = 0600
browseable = yes
guest ok = no
[printers]
comment = All Printers
path = /var/tmp
printable = yes
create mask = 0600
browseable = no
guest ok = no
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
browseable = yes
guest ok = no
printable = no



I have tried following guides that are not much help. At this rate im concidering sticking with windows as linux is far too much work even if you do take the time to read the guides (Which are not very straight)
 
Old 08-03-2004, 04:16 PM   #4
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Well, I copied mine but inserted your machines name. At worst, backup the one you have, insert this one, type SMBD RESTART, and see what happens.

You still have to add machine accounts and users if you haven't

If you are online, you can try messaging me.
MSN - musicman_ace@msn.com
AIM - musicmanace

# Doc Title: smb.conf
# Location: /etc/samba/smb.conf
# Date: 2004-05-21
# Creator: Carnahan
# Version: Samba 3.0.2

[global]
workgroup = morandad.local
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
map to guest = Bad User
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
security = user
encrypt passwords = yes
server string = Samba 3 PDC
netbios name = morandad.local
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain master = yes
domain logons = yes
local master = yes
preferred master = yes
os level = 65
ldap suffix = dc=example,dc=com
[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = No
inherit permissions = Yes
guest ok = no
printable = no
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
browseable = yes
guest ok = no
printable = no
[users]
comment = All users
path = /home
read only = No
inherit permissions = Yes
veto files = /aquota.user/groups/shares/
browseable = yes
guest ok = no
printable = no
[groups]
comment = All groups
path = /home/groups
read only = No
inherit permissions = Yes
browseable = yes
guest ok = no
printable = no
 
Old 08-03-2004, 04:58 PM   #5
HenchmenResourc
Member
 
Registered: Mar 2004
Location: SLC, Utah
Distribution: OpenSUSE 12.2
Posts: 246

Rep: Reputation: 30
You may try Webmin this is the program I use to configure most of my servers, it has a great straight forward interface and has a plugin that converts your systems users to Samba users, as well as assign them passwords. Webmin is by no means a substitute for a good thourough knowlage about samba but for someone new to samba it offers a good way to get up and running fast.
 
Old 08-04-2004, 06:37 AM   #6
dazzyboi
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Ok ill try that, but what about the adding of the machines using the Root console? everytime i try it keeps saying "cannot find home directory" or "cannot find /bin/false"
 
Old 08-04-2004, 08:19 AM   #7
dazzyboi
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Original Poster
Rep: Reputation: 0
global]
workgroup = morandad.local
interfaces = 127.0.0.1 eth0
bind interfaces only = true
printing = cups
printcap name = cups
printer admin = @ntadmin, root, administrator
map to guest = Bad User
security = server
encrypt passwords = yes
server string = Samba Server
hosts allow = 192.168.1.0/255.255.255.0
netbios name = morandad.local
useradd -d /dev/null -c dazroomt10 account -s /bin/false dazroomt10$
passwd -l dazroomt10$
smbpasswd -a -m dazroomt10
smbpasswd root
domain master = yes
domain logons = yes
preferred master = yes
logon path = \\%n\profiles\%u
logon drive = q:
logon home = \\saturn\%u
local master = yes
preferred master = yes
os level = 65
ldap suffix = dc=example,dc=com
ldap admin dn = ou=ldapconfig,dc=example,dc=com


[net logon]
comment = the domain logon service
path = /var/lib/samba/netlogon
guest ok = yes
writable = no
share modes = no

[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = No
guest ok = no
printable = no
[users]
comment = All users
path = /home
writeable = Yes
inherit permissions = Yes
veto files = /aquota.user/groups/shares/
browseable = yes
guest ok = no
printable = no
[groups]
comment = All groups
path = /home/groups
writeable = Yes
inherit permissions = Yes
browseable = yes
guest ok = no
printable = no
[pdf]
comment = PDF creator
path = /var/tmp
printable = yes
print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
create mask = 0600
browseable = yes
guest ok = no
[printers]
comment = All Printers
path = /var/tmp
printable = yes
create mask = 0600
browseable = no
guest ok = no
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
browseable = yes
guest ok = no
printable = no
 
  


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
Joining XP Pro SP2 to Samba domain PDC Les62 Linux - Networking 13 10-09-2005 09:00 AM
xp pro can not logon samba PDC brianlee Linux - Networking 2 07-15-2005 03:53 AM
XP Pro SP2 client won't logon to SAMBA PDC AZ_Rider Linux - Networking 9 03-02-2005 01:19 AM
WinXp Pro slow to logon to samba PDC seanfitz *BSD 2 03-10-2003 08:15 AM
Win xp pro on samba PDC???? gritts Linux - Networking 13 11-26-2002 10:40 AM


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