NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
traumspiel
Oct 21, 2009Aspirant
Samba v3.3.7 addon as a domain controller
Hello I want Create with the Samba v3.3.7 addon on my NV+ a domain controller, I do not yet know me with samba, unfortunately. I would be happy if you can help me. In my network ar 8 machine w...
jastronomy
Jul 31, 2010Aspirant
I recommend stopping at step 6; and doing the following:
;additional line here to call the next file
Next; from the SSH session; type in the following:
MKDIR /etc/Mods
NEXT;
vi /etc/Mods/domainsmb.conf
paste the following code inside the window:
And next; in the SSH window, hit ESC, then type :wq!
That will effectively save your own DOMAIN config file; and include that in the SAMBA default config file (easier to comment out the include line isn't it?).
I did this about 4 minutes ago; but the changes to the /etc/samba/smb.conf file won't take place if the samba service is running.
so stop it before making any changes.
invoke-rc.d samba stop - do this right at the start
invoke-rc.d samba start - when finished, do this
;additional line here to call the next file
include = /etc/Mods/domainsmb.conf
Next; from the SSH session; type in the following:
MKDIR /etc/Mods
NEXT;
vi /etc/Mods/domainsmb.conf
paste the following code inside the window:
# This file was written to setup the ReadyNAS DUO as a PDC Server.
[global]
netbios name = ReadyNAS
server string = Samba %v on %L
workgroup = ReadyNAS
; domain & local master browser
; coz we're dealing with Win2k
os level = 65
prefered master = yes
domain master = yes
local master = yes
domain logons = yes
; misc options
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
time server = yes
; do not show files starting with dots
hide dot files = yes
; Central European code page support
client code page = 852
character set = ISO8859-2
; do not allow guest access, use only local system accounts
security = user
guest ok = no
invalid users = bin deamon sys man postfix mail ftp
admin users = @Domain.Admins, root
; domain administrators
domain admin group = @Domain.Admins, root
domain admin users = @Domain.Users, root admin
; use encrypted passwords
encrypt passwords = yes
; logging (max log size is in kB)
log level = 2
log file = /var/log/samba/log.%L
max log size = 1000
debug timestamp = yes
syslog = 1
; user roaming profiles path
logon path = \\%N\profiles\%u
; general logon script (in DOS format)
logon script = logon.vbs
; share for storing user profiles
; although it's probably easier to use the "\\%N\%u" share... just not sure how
[profiles]
path = /home/samba/profiles
writeable = yes
create mask = 0700
directory mask = 0700
browsable = no
#share for domain controller
[netlogon]
comment = "Domain Logon Share"
path = /home/samba/netlogon
public = yes
writeable = no
browsable = yes
admin users = root @Domain.Admins
valid users = root @Domain.Users
And next; in the SSH window, hit ESC, then type :wq!
That will effectively save your own DOMAIN config file; and include that in the SAMBA default config file (easier to comment out the include line isn't it?).
I did this about 4 minutes ago; but the changes to the /etc/samba/smb.conf file won't take place if the samba service is running.
so stop it before making any changes.
invoke-rc.d samba stop - do this right at the start
invoke-rc.d samba start - when finished, do this
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!