[Samba-it] pdc samba e file server samba
ivan re
re.ivan at gmail.com
Tue Mar 24 11:29:29 MDT 2009
Nella mia rete voglio creare un PDC con samba 3 ed un File Server sempre con
samba 3. Tutti i client della rete sono workstation win2k o xp aggiornate a
sp3.
Ho installato ubuntu server sul pdc ed ho configurato smb.conf come segue:
[global]
workgroup = MYDOM
server string = %h server
interfaces = 127.0.0.0/8, eth0
bind interfaces only = Yes
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n
*Enter* new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd:
*all* authentication*tokens*updated*successfully*
unix password sync = Yes
log level = 3
syslog = 0
log file = /var/log/samba/%m.log
max log size = 1500
name resolve order = lmhosts host bcast
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192
SO_SNDBUF=8192
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
add machine script = /usr/sbin/useradd -d /dev/null -g machines -s
/bin/false %u
logon script = %U.bat
logon path =
logon drive = G:
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
invalid users = bin, deamon, sys, man, postfix, mail, ftp
admin users = root
hosts allow = 127.0.0.1, 192.168.1.0/24
case sensitive = No
[homes]
comment = Home Directories
path = /home/user/%U
valid users = %S
read only = No
create mask = 0700
directory mask = 0700
browseable = No
[netlogon]
comment = Network Logon Service
path = /home/netlogon
valid users = %U
browseable = No
Non voglio usare una gestione dei profili remota per cui non ho inserito le
parti riguardanti profiles.
Adesso voglio configurare un secondo server con funzioni esclusive di file
server. Ho quindi creato un smb.conf come segue:
#======================= Global Settings =======================
[global]
workgroup = MYDOM
netbios name = MYFILESERVER
password server = MYPDC
server string = %h - File Server - (Samba, Ubuntu)
wins support = no
; wins server = w.x.y.z
dns proxy = no
name resolve order = lmhosts host bcast
#### Networking ####
interfaces = 127.0.0.0/8 eth0
bind interfaces only = true
#### Debugging/Accounting ####
log file = /var/log/samba/%m.log
max log size = 1500
log level = 3
syslog = 0
####### Authentication #######
security = domain
invalid users = bin deamon sys man postfix mail ftp
admin users = root
########## Domains ###########
domain logons = no
preferred master = no
local master = yes
os level = 33
logon path =
############ Misc ############
hosts allow = 127.0.0.1 192.168.1.0/24
domain master = no
usershare allow guests = yes
case sensitive = no
#======================= Share Definitions =======================
# --------------- Directory temporanea accessibile a tutti
[temp]
comment = Cartella temporanea
path = /home/temp/%U
public = yes
printable = no
guest ok = yes
writable = yes
[dati]
comment =Cartella dati
path = /home
public = yes
printable = no
guest ok = yes
writable = yes
ecc....
Alcuni particolari però non mi sono ancora ben chiari, ovvero:
Il file server lo devo impostare a local master = yes in modo che partecipi
all'elezione per il master browser ma con livello inferiore al PDC. E'
corretto?
Non ho configurato il wins server e nemmeno il dns proxy. E' corretta questa
gestione? Mi lascia perplesso. E' bene che ne configuri uno dei due? Quali
sono le differenze?
Per il file server devo configurare anche winbind? Credevo che servisse solo
per permettere a client linux di autenticarsi su sistemi windows. Su
Samba.org ho perà visto che propongono di usare winbind per un domain member
server?? Perchè???
grazie IK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/samba-it/attachments/20090324/3d51d072/attachment.html>
More information about the samba-it
mailing list