[Samba] Re: Users can delete a file they don't have permition in
the public share
Igor Belyi
sambauser at katehok.ac93.org
Fri Oct 8 20:31:16 GMT 2004
To prevent deletion you should remove write access on the directory
containing the file: chmod a-w /home/samba/public
Igor
Bruno Gimenes Pereti wrote:
> Hi!
>
> I'll try to explain all the situation to help you understand the
> problem. I have a Samba 3.0.4 + LDAP + ACL PDC and I use poledit to
> define the background image of the users to \\PDC\public\background.bmp,
> this file:
>
> -rw-r--r-- 1 Administrator root 787510 09-23 17:34 background.bmp
>
> Yes, the acl is not used in this file. This is the public share in
> smb.conf:
>
> [public]
> comment = Compartilhamento Público
> path = /home/samba/public
> # public = yes
> # guest ok = yes
> writable = yes
> create mask = 0666
> directory mask = 777
> printable = no
> invalid users = prova
>
> yesterday one of the users (students) deleted this file and I thought
> they shouldn't have permission to do this because they don't have write
> permission in the file.
>
> I tried every thing I know about permition (that's not much) and
> couldn't find a solution. What can I do to prevent the students to
> delete this file?
>
> Thanks,
> Bruno Pereti.
More information about the samba
mailing list