construidor
(usa Arch Linux)
Enviado em 22/01/2010 - 19:19h
Posso te passar o meu smb.conf, esse é um PDC com suporte a netlogon e profiles remotos, é só salvar o arquivo em /etc/samba/smb.conf.
[global]
#indentificassao
netbios name = construidor-pc
workgroup = construidor
server string = Servidor Samba %v
#organizassao de usuarios
admin users = sambadmin
guest account = nobody
username map = /etc/samba/smbusers
#tipo de servidor
preferred master = yes
domain logons = yes
local master = yes
domain master = yes
wins support = yes
time server = yes
security = user
os level = 100
;interfaces = 192.168.56.0/24
#opssoes de logon
logon script = conf.bat
logon drive = U:
logon path = \\%L\profiles\%u
#defissoes de senhas e usuarios
encrypt passwords = yes
unix password sync = yes
# Scripts para automação de tarefas
passwd program = /usr/bin/passwd %u
passwd chat = *Entre\scom\snova\ssenha:* %n\n*Repita\snova\ssenha:* %n\n
;smb passwd file = /etc/samba/smb/passwd
add machine script = useradd -g pdc -c "Maquinas do PDC" -s /bin/false -d /dev/null %u
add group script = /usr/sbin/groupadd '%g'
add user script = /usr/sbin/useradd -m '%u'
add user to group script = /usr/bin/gpasswd -a '%u' '%g'
delete group script = /usr/sbin/groupdel '%g'
delete user from group script = /usr/bin/gpasswd -d '%u' '%g'
delete user script = /usr/sbin/userdel -r '%u'
rename user script = /usr/sbin/usermod -l '%unew' '%uold'
set primary group script = /usr/sbin/usermod -g '%g' '%u'
#caracteres
preserve case = no
display charset = cp850
short preserve case = yes
default case = lower
case sensitive = no
unix charset = iso8859-1
#log
max log size = 100
log level = 1
log file = /var/log/samba/log.%m
#desempenho
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
[homes]
comment = Network Logon Sevice
writable = yes
valid users = %S
browseable = no
[publico]
comment = arquivos publico
path = /home/samba/publico
public = yes
writable = no
browseable = yes
guest ok = yes
[netlogon]
comment = Logon
path = /home/samba/netlogon
guest ok = yes
browseable = no
available = yes
[profiles]
path = /home/samba/profiles
browseable = no
guest ok = no
writable = yes