ferinha
(usa Ubuntu)
Enviado em 16/04/2010 - 17:30h
Opa, galera!
Quanto ao gerenciamento de usuários, consegui criar os usuários e autenticá-los no windows, mas não consegui criar a unidade mapeada pra todos eles, só é criada para o último usuário configurado no "smb.conf". Está abaixo o script desse arquivo, podem me ajudar e me dizerem o que estou fazendo de errado???
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
workgroup = ServDados
server string = Servidor de Dados
hosts allow = 192.168.15.6
# security = erik
log file = /var/log/samba/log.%m
max log size = 1000
logon script = logon.cmd
domain logons = yes
os level = 100
encrypt passwords = true
smb passwd file = /etc/samba/smbpasswd
preferred master = true
domain master = true
local master = true
# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = yes
wins support = yes
####### Authentication #######
# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
passdb backend = tdbsam
obey pam restrictions = yes
# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
unix password sync = yes
# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
pam password change = yes
# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
map to guest = bad user
#======================= Share Definitions =======================
# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
[homes]
comment = Home Marildo
path = /home/samba/marildo
browseable = no
read only = no
create mask = 0770
directory mask = 0770
valid users = marildo
comment = Home Wel
path = /home/samba/wel
browseable = no
read only = no
create mask = 0770
directory mask = 0770
valid users = wel
comment = Home Fabio
path = /home/samba/fabio
browseable = no
read only = no
create mask = 0770
directory mask = 0770
valid users = fabio
# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
[profiles]
comment = Pasta Global
path = /home/samba/Global
guest ok = no
browseable = no
create mask = 0770
directory mask = 0770
valid users = teste
write list = @everyone
read only = no
#*****************************************************************************************
# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
[netlogon]
comment = Logon de Serviço de Rede
path = /home/samba/NetLogon
guest ok = yes
read only = yes
share modes = no
[printers]
comment = Impressoras
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
write list = root, @administrador
# A sample share for sharing your CD-ROM with others.
[cdrom]
comment = CD-ROM Global
read only = yes
locking = no
path = /cdrom
guest ok = yes
preexec = /bin/mount /cdrom
postexec = /bin/umount /cdrom
Ficarei muito grato com qualquer tipo de ajuda, desde já agradeço!!