# tipo de servidor y sesiones
workgroup = CENTRO
netbios name = web
server string = Servidor Samba para la Web
security = user
domain logons = Yes
os level = 99
preferred master = Yes
domain master = Yes
logon script = %U.bat
logon drive = h:
logon home = \\%N\%U
logon path =
add share command=/usr/local/sbin/modify_samba_config.pl
delete share command=/usr/local/sbin/modify_samba_config.pl
# usuarios
passdb backend = smbpasswd tdbsam
username map = /etc/samba/smbusers
password level = 1
username level = 1
encrypt passwords = yes
unix password sync = Yes
min password length=4
passwd program = /usr/bin/passwd %u
passwd chat = *ew\sUNIX\spassword* %n\n *etype* %n\n *all\sauthentication\stokens\supdated\ssuccessfully*
admin users = root, Administrator, pfabrega, Administrador
add user script = /usr/sbin/useradd -d /dev/null -s /bin/false -g samba -M %u
add group script = /usr/sbin/groupadd %g
add user to group script = /usr/sbin/adduser -G %g %u
add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
delete user script = /usr/sbin/userdel -r "%u"
delete group script = /usr/sbin/groupdel "%g"
delete user from group script = /usr/sbin/groupmod -x "%u" "%g"
set primary group script = /usr/sbin/usermod -g "%g" "%u"
add machine script = /usr/sbin/useradd -w "%u"
# parámetros generales
root directory = /
bind interfaces only = Yes
read bmpx = Yes
socket options = TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
time server = Yes
remote announce = 192.168.0.255
hosts allow = 192.168.1., 192.168.0., 127.
wins support = Yes
lock directory = /var/lock/samba
map acl inherit = Yes
#impresión
printcap name = CUPS
printing = cups
show add printer wizard = No
lpq command = lpstat -o %p
lprm command = cancel %p-%j
# registro de incidencias
log level = 1
log file = /var/log/samba/log.%m
max log size = 50
[homes]
comment = Home Directories
read only = No
hide files = /.*.*/
browseable = No
|