LinuxQuestions.org
Review your favorite Linux distribution.
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 12-05-2005, 12:02 PM   #1
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Rep: Reputation: 30
DNS Server using samba


Hello there am trying to make a DNS server using SAMBA. I found this configuration in a spanish forun and tried it but i cant log into de domain from windows. Any idea what can io have wrong?

Create machine acct in the machnies group and no asign shell

# /usr/sbin/useradd -g machines -d /dev/null -c "machine nickname" -s /bin/false machine_name$

Block the acct to avoid shell access

# passwd -l machine_name$

Create samba acct, option -m indicates that is a machine acct

#smbpasswd -a -m machine_name


We also havve to create a linux acct and a samba acct for each user we add to the domain

# useradd userid
# passwd -l userid
# smbpasswd -a userid
Enter Password: <pw>

This is may global settins in my smb.conf


[global]
wins support = yes
dns proxy = yes
time server = yes
netbios name = milinux
server string = Linux PDC running %v
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
os level = 64
prefered master = yes
local master = yes
domain master = yes
security = user
encrypt passwords = yes
domain logons = yes
debug level = 2
log file = /var/log/samba/log.%m
log level = 2
max log size = 50
logon home = \\%L\%U\.profile
logon drive = X:
logon path = \\%L\profiles\%U
workgroup = DOMINIO
add user script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u
add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
 
Old 12-05-2005, 05:30 PM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

I don't know what is going wrong with your config... but i'm a bit surprised by the title of the thread... Samba might be used as a DNS server (i don't really see how but one cannot be sure of anything in this open world), but i think you're talking of domain controler (which is not really the same thing).
Anyway, i shall advise having a look at chapter 3 and 4 of http://us3.samba.org/samba/docs/man/Samba-Guide/
The above guide is entitled Samba-3 by Example... very good reading concerning interactions of Samba, printing, DNS, DHCP, Domain controller, logon scripts...
 
  


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
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
Do I leave primary and seconday DNS blank for a DNS Server? imsam Linux - Networking 3 10-25-2004 01:48 PM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM
Small Network -- Linux Web, DNS, SAMBA server -- Help/suggestions please! Bungo2000 Linux - Networking 2 03-30-2002 09:55 AM

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

All times are GMT -5. The time now is 01:36 PM.

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