removido
(usa Nenhuma)
Enviado em 25/03/2011 - 13:02h
Com o comando:
#service smbd status
Você verifica se o samba está rodando. Para configurar o controlador de domínio e os compartilhamentos, você deve editar o arquivo /etc/samba/smb.conf
Aqui mesmo no VOL você acha configurações para o compartilhamento e controle de domínio. Vou deixar um exemplo de smb.conf que uso. Porém é bem antigo, nas para efeito de exemplo você pode tirar como base:
# Global parameters
[global]
workgroup = rpmnews01
netbios name = mnews02
server string = Servidor
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
unix password sync = no
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
domain logons = Yes
prefered master = Yes
domain master = Yes
dns proxy = No
comment = Servidor de Arquivos/Aplicacoes
security = user
logon script = %U.bat
logon path =
[netlogon]
comment = Network Logon Service
path = /home/netlogon
guest ok = no
writable = yes
share modes = no
public = no
valid users = @gpublico
admin users = alex,infoshare
read list = @gpublico
write list = alex,infoshare
create mask = 0777
force create mode = 0777
security mask = 0777
#[homes]
# comment = Home Directories
# path = /home/%u
# read only = No
# browseable = No
[publico]
comment = Arquivos
path = /arquivos/publico
valid users = @gpublico
admin users = @gpublico
read list = @gpublico
write list = @gpublico
read only = No
create mask = 0777
force create mode = 0777
security mask = 0777
inherit permissions = Yes
[adm]
comment = Arquivos ADM
path = /rede/adm
valid users = @gadm
admin users = @gadm
read list = @gadm
write list = @gadm
read only = No
create mask = 0770
force create mode = 0770
security mask = 0770
inherit permissions = Yes
[arte]
comment = Arquivos Arte
path = /rede/arte
valid users = @garte
admin users = @garte
read list = @garte
write list = @garte
read only = No
create mask = 0770
force create mode = 0770
security mask = 0770
inherit permissions = Yes
[assinatura]
comment = Arquivos Assinatura
path = /rede/assinatura
valid users = @gassinatura
admin users = @gassinatura
read list = @gassinatura
write list = @gassinatura
read only = No
create mask = 0770
force create mode = 0770
security mask = 0770
inherit permissions = Yes
[arquivo]
comment = Arquivo Alex
path = /rede/arquivo
valid users = alex,infoshare,@gpublico
admin users = alex,infoshare
read list = alex,infoshare,@gpublico
write list = alex,infoshare
read only = No
create mask = 0750
force create mode = 0750
security mask = 0750
inherit permissions = Yes
[bkp]
comment = Bkp HD usb
path = /media/usbdisk
valid users = alex,infoshare,@gpublico
admin users = alex,infoshare
read list = alex,infoshare,@gpublico
write list = alex,infoshare
read only = No
create mask = 0750
force create mode = 0750
security mask = 0750
inherit permissions = Yes
[editoracao]
comment = Arquivos Editoracao
path = /rede/editoracao
valid users = @geditoracao
admin users = @geditoracao
read list = @geditoracao
write list = @geditoracao
read only = No
create mask = 0770
force create mode = 0770
security mask = 0770
inherit permissions = Yes
[fotografia]
comment = Arquivos Foto
path = /rede/fotografia
valid users = @gfotografia
admin users = @gfotografia
read list = @gfotografia
write list = @gfotografia
read only = No
create mask = 0770
force create mode = 0770
security mask = 0770
inherit permissions = Yes
[internet]
comment = Arquivos Internet
path = /rede/internet
valid users = @ginternet
admin users = @ginternet
read list = @ginternet
write list = @ginternet
read only = No
create mask = 0770
force create mode = 0770
security mask = 0770
inherit permissions = Yes
[mkt]
comment = Arquivos MKT
path = /rede/mkt
valid users = @gmkt
admin users = @gmkt
read list = @gmkt
write list = @gmkt
read only = No
create mask = 0770
force create mode = 0770
security mask = 0770
inherit permissions = Yes
[redacao]
comment = Arquivos Redacao
path = /rede/redacao
valid users = @gredacao
admin users = @gredacao
read list = @gredacao
write list = @gredacao
read only = No
create mask = 0770
force create mode = 0770
security mask = 0770
inherit permissions = Yes
[dp]
comment = Arquivos DP
path = /rede/dp
valid users = @dp, alex
admin users = @dp, alex
read list = @dp, alex
write list = @dp, alex
read only = No
create mask = 0777
force create mode = 0777
security mask = 0777
inherit permissions = Yes
[gredacao]
comment = Arquivos Redacao
path = /rede/gredacao
valid users = @gpublico
admin users = @gpublico
read list = @gpublico
write list = @gpublico
read only = No
create mask = 0777
force create mode = 0777
security mask = 0777
inherit permissions = Yes
[troca]
comment = Pasta de troca de domino
path = /rede/troca
valid users = alex,@geditoracao
admin users = alex
read list = @editoracao
write list = alex
read only = Yes
create mask = 0750
force create mask = 0750
security mask = 0750
[SGI]
comment = Sistema SGI
path = /usr/local/psql/data/sistemas
force user = psql
force group = pvsw
writeable = yes
create mask = 0664
directory mask = 0775
[PVPIPE$]
comment = Pervasive pipes
path = /usr/local/psql/etc/pipe
# only members of group pvsw will have access
valid users = @pvsw
# Absolutely necessary - prevents caching
oplocks = no