Logon Scripts para cada usuario
Nelson Castro
necastro en gmail.com
Vie Ene 4 17:08:42 CLST 2008
Estimados, en nuestro servicio samba funcionando como PDC, tenemos
configurado actualmente un mismo logon scripts para todos los usuarios, sin
embargo, hoy es necesario que cada usuario tenga su logon script en
particular para poder aplicar diversos /condimentos/ en las estaciones de
los usuarios. Es ahí nuestro problema no logramos acertar con la
configuración correcta, nuestro smb.conf que obtuvimos de algun how to de
internet y que comentamos con lo que necesitabamos en aquel entonces. Quedo
atento a vuestras sugerencias (siempre que no pasen por instalar AD).
# Defining domain name, hostname
####################################################
[global]
workgroup = ccaf_dom
netbios name = DomLinux
wins support = yes
time server = yes
#dns proxy = yes
name resolve order = host wins dns bcast
dns proxy = yes
# Specifying ldapsam backend database
####################################################
passdb backend = ldapsam:ldap://127.0.0.1
username map = /etc/samba/smbusers
# Specifying printing subsystem
####################################################
printcap name = cups
printing = cups
####################################################
add user script = /usr/sbin/smbldap-useradd -m %u
delete user script = /usr/sbin/smbldap-userdel %u
add group script = /usr/sbin/smbldap-groupadd -p %g
delete group script = /usr/sbin/smbldap-groupdel %g
add user to group script = /usr/sbin/smbldap-groupmod -m %g %u
delete user from group script = /usr/sbin/smbldap-groupmod -x %g %u
set primary group script = /usr/sbin/smbldap-usermod -g %g %u
#add machine script = /usr/sbin/smbldap-useradd -w %u
obey pam restrictions = Yes
logon script = %U.bat
logon path =
#logon drive = H:
#logon home = \\%L\%U
domain logons = Yes
os level = 256
preferred master = Yes
domain master = Yes
local master = yes
dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
show add printer wizard = yes
# OpenLDAP stuff is defined here
###################################################
ldap suffix = dc=midominio,dc=cl
ldap machine suffix = ou=Computers
ldap user suffix = ou=Users
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Users
ldap admin dn = cn=admin,dc=midominio,dc=cl
ldap ssl = no
ldap passwd sync = Yes
idmap uid = 15000-20000
idmap gid = 15000-20000
# Defining logging facility
####################################################
log level = 256
log file = /var/log/samba/%m.log
# Defining logging facility
####################################################
log level = 256
log file = /var/log/samba/%m.log
# Virus Scanning Definition
####################################################
#vfs object = vscan-clamav
#vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
# Defining user home directories
####################################################
#[homes]
#comment = Home Directories
#valid users = %S
#read only = No
#browseable = No
# Defining network logon service
####################################################
[netlogon]
comment = NLService
path = /var/lib/samba/
guest ok = Yes
browseable = Yes
# Defining profile share ( for roaming profiles )
####################################################
[profiles]
#comment = Roaming Profiles
#path = /var/lib/samba/profiles
#create mask = 0600
#directory mask = 0700
#browseable = Yes
#guest ok = Yes
#force user = %U
#valid users = %U "Domain Admins"
#read only = No
#profile acls = Yes
[1]: http://www.oreilly.com/catalog/samba/chapter/book/ch06_06.html
--
User #424909 counter.li.org
Santiago - Chile
Más información sobre la lista de distribución Linux