marmaxade
(usa Suse)
Enviado em 23/08/2007 - 10:50h
Uso o suse 9.3 e o samba como PDC, funciona bem nos XP, mas todos os usuários tinham, acesso a pasta home , desativei o acesso a ela, mas queria que apenas alguns usuários ou grupos acessam todo conteúdo como somente leitura da pasta, nessa pasta estão todas as pasta dos usuários. vejam o meus SMB:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-03-22
[global]
workgroup = PITCKS
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = yes
domain master = yes
os level = 65
preferred master = yes
server string = Pitágoras
case sensitive = no
msdfs proxy = no
restrict anonymous = no
max protocol = NT
ldap ssl = No
server signing = Auto
[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = No
inherit acls = Yes
[home]
comment = usuarios
path = /home
read only = no
guestok = yes
browseable = no
available = no
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[publico]
comment = publico
path = /home/publico
read only = No
guestok = yes
[planilhas]
comment = planilhas
path = /home/planihas/
guest ok = yes
read only = no
guestok = yes
valid users = @coordenacao,@coodenacao
force create mode = 0777
force directory mode = 0777
admin users = @coordenacao,@coodenacao
[users]
comment = All users
path = /home/
inherit acls = yes
veto files = /aquota.user/groups/shares/
max connections = 60
browseable = no
read only = no
available = no
valid users = @coordenacao,@coodenacao,@direção,@gabriel
force create mode = 0777
force directory mode = 0777
admin users = @coordenacao,@coodenacao,@direção,@gabriel
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root
mE AJUDEM POR FAVOR