Respuesta: Samba, permisos para subdirectorios, se puede? A ver, guienme si voy en buen camino, les paso el codigo del smb.conf para ver si esta bien, estoy asignando usuarios por cada subcarpeta de la carpeta documentos
Código:
#======================= Global Settings =====================================
[global]
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
delete user from group script = /usr/sbin/groupmod -R %u %g
passwd program = /usr/bin/passwd %u
dns proxy = no
netbios name = SERVIDOR
default = netlogon
local master = yes
preferred master = yes
workgroup = her.local
debug level = 1
os level = 34
security = user
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u
delete user script = /usr/sbin/userdel -r %u
max log size = 50
log level = 4
log file = /var/log/samba/%m.log
smb passwd file = /etc/samba/smbpasswd
add group script = /usr/sbin/groupadd %g
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/groupmod -A %u %g
client ntlmv2 auth = yes
logon drive = H:
client use spnego = yes
null passwords = yes
domain master = yes
encrypt passwords = yes
winbind use default domain = no
logon home =
template shell = /bin/false
wins support = true
server string = Servidor Hospital El Rosario
unix password sync = yes
logon path =
client lanman auth = no
add user script = /usr/sbin/useradd -m %u
bind interfaces only = Yes
domain logons = yes
domain admin group = @sysadmin
admin users = @sysadmin
printer admin = @sysadmin
#============================ Share Definitions ==============================
[netlogon]
locking = no
writeable = yes
path = /etc/samba/netlogon
force directory mode = 777
force group = root
force create mode = 777
force user = root
comment = Servicios de Logon de Red
public = no
share modes = yes
browsable = yes
[Documentos]
vfs objects = recycle audit
writable = no
path = /var/docs
recycle:exclude = *.att|*.mai|*.ini|*.ini|*.exe|*.idx|*.tmp|*.mp3|*.jpg|~$*
recycle:keeptree = true
admin users = soporte,gteit,fabsoftw,central,parmmg,reproduccion,jefetaller
comment = Documentos Hospital El Rosario
public = yes
guest ok = yes
read list = contralor,soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,PDVSA,gteadm,contabilidad,tesoreria,cpc,caja,hbermudez,rbermudez,comercializ,fveillas,gtemedico,gteenferm,diremerg,dirhospit,medemerg,medhosp,UCI,cardiocol,histmed,laboratorio,diabecol,quirofano,imagenes,hemodinamia,terapia,videoendoscopia,ule,postgrado,psicosalud,bancosangre,imagenes,nutricion,atmedprimaria,laboratorio,epidemiologia,hematooncologia,hemodialisis,quirofano,emergencia,cardiocol,postgrado,corazonsano,fisiocol,videoendoscopia,histmed,gteadm,contabilidad,tesoreria,cpc,PDVSA,caja,gtecompras,ancompras,farmacia,operaciones,saneamiento,gtech,coth,annomina,anreclut,anadiestam,annomina,seguridad,gtesac,cosac,admision,hoteleria,atcliente,emergencia,facturacion,admision,dipromedic,mercadeo,sha,restaurant,clinicaojos,consultorios,solumed,cmer,rbermudez,calidad,comcientifico
valid users = contralor,soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,PDVSA,gteadm,contabilidad,tesoreria,cpc,caja,hbermudez,rbermudez,comercializ,fveillas,gtemedico,gteenferm,diremerg,dirhospit,medemerg,medhosp,UCI,cardiocol,histmed,laboratorio,diabecol,quirofano,imagenes,hemodinamia,terapia,videoendoscopia,ule,postgrado,psicosalud,bancosangre,imagenes,nutricion,atmedprimaria,laboratorio,epidemiologia,hematooncologia,hemodialisis,quirofano,emergencia,cardiocol,postgrado,corazonsano,fisiocol,videoendoscopia,histmed,gteadm,contabilidad,tesoreria,cpc,PDVSA,caja,gtecompras,ancompras,farmacia,operaciones,saneamiento,gtech,coth,annomina,anreclut,anadiestam,annomina,seguridad,gtesac,cosac,admision,hoteleria,atcliente,emergencia,facturacion,admision,dipromedic,mercadeo,sha,restaurant,clinicaojos,consultorios,solumed,cmer,rbermudez,calidad,comcientifico
[Administracion y Finanzas]
vfs objects = recycle audit
writable = yes
path = /var/docs/ADMINISTRACION\ Y\ FINANZAS
recycle:exclude = *.att|*.mai|*.ini|*.ini|*.exe|*.idx|*.tmp|*.mp3|*.jpg|~$*
recycle:keeptree = true
admin users = soporte,gteit,fabsoftw,central,parmmg,reproduccion,jefetaller
comment = Administracion y Finanzas
public = yes
read list = soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,PDVSA,gteadm,contabilidad,tesoreria,cpc,caja,contralor,hbermudez,rbermudez,comercializ,fveillas,gtemedico
write list = soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,PDVSA,gteadm,contabilidad,tesoreria,cpc,caja,contralor,hbermudez,rbermudez,comercializ,fveillas,gtemedico
valid users = soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,PDVSA,gteadm,contabilidad,tesoreria,cpc,caja,contralor,hbermudez,rbermudez,comercializ,fveillas,gtemedico
[Baremos Varios]
vfs objects = recycle audit
writable = yes
path = /var/docs/Baremos\ varios/
recycle:exclude = *.att|*.mai|*.ini|*.ini|*.exe|*.idx|*.tmp|*.mp3|*.jpg|~$*
recycle:keeptree = true
admin users = soporte,gteit,fabsoftw,central,parmmg,reproduccion,jefetaller
comment = Baremos Varios
public = yes
read list = soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,hbermudez,rbermudez,comercializ,fveillas,gtemedico,PDVSA,gteadm,contabilidad,tesoreria,cpc,caja,contralor,gtesac,cosac,admision,hoteleria,atcliente,emergencia,facturacion,admision
write list = soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,hbermudez,rbermudez,comercializ,fveillas,gtemedico,PDVSA,gteadm,contabilidad,tesoreria,cpc,caja,contralor,gtesac,cosac,admision,hoteleria,atcliente,emergencia,facturacion,admision
valid users = soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,hbermudez,rbermudez,comercializ,fveillas,gtemedico,PDVSA,gteadm,contabilidad,tesoreria,cpc,caja,contralor,gtesac,cosac,admision,hoteleria,atcliente,emergencia,facturacion,admision
[Calidad]
vfs objects = recycle audit
writable = yes
path = /var/docs/CALIDAD
recycle:exclude = *.att|*.mai|*.ini|*.ini|*.exe|*.idx|*.tmp|*.mp3|*.jpg|~$*
recycle:keeptree = true
admin users = soporte,gteit,fabsoftw,central,parmmg,reproduccion,jefetaller
comment = Calidad
public = yes
read list = soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,hbermudez,rbermudez,comercializ,fveillas,gtemedico,rbermudez,calidad
write list = soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,hbermudez,rbermudez,comercializ,fveillas,gtemedico,rbermudez,calidad
valid users = soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,hbermudez,rbermudez,comercializ,fveillas,gtemedico,rbermudez,calidad
[Capital Humano]
vfs objects = recycle audit
writable = yes
path = /var/docs/CAPITAL\ HUMANO
recycle:exclude = *.att|*.mai|*.ini|*.ini|*.exe|*.idx|*.tmp|*.mp3|*.jpg|~$*
recycle:keeptree = true
admin users = soporte,gteit,fabsoftw,central,parmmg,reproduccion,jefetaller
comment = Capital Humano
public = yes
read list = soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,hbermudez,rbermudez,comercializ,fveillas,gtemedico,gtech,coch,annomina,anreclut,anadiestram,annomina
write list = soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,hbermudez,rbermudez,comercializ,fveillas,gtemedico,gtech,coch,annomina,anreclut,anadiestram,annomina
valid users = soporte,parmmg,gteit,fabsoftw,reproduccion,jefetaller,hbermudez,rbermudez,comercializ,fveillas,gtemedico,gtech,coch,annomina,anreclut,anadiestram,annomina
|