[Samba] ACL and delete files
Ivan Novosad
ivan_novosad at ses.sk
Tue Apr 5 12:22:42 GMT 2005
Hi,
I have samba-3.0.13 on linux machine compiled with these parameters:
--prefix=/usr/local/samba-3.0.13
--enable-cups
--with-ldap
--with-ldapsam
--with-acl-support
--with-quotas
In smb.conf I defined share :
[POBOX]
comment = !
path = /data/disk1/pobox
guest ok = no
writable = yes
directory mask = 0777
force directory mode = 0000
directory security mask = 0000
force directory security mode = 0000
inherit acls = yes
There is directory Drawings in /data/disk1/pobox.
root at natasha:/data/disk1/pobox# ls -pla
total 20
drwxrwxr-x+ 3 root root 4096 2005-04-05 13:45 ./
drwxr-xr-x 6 root root 4096 2005-04-01 11:08 ../
drwxrwxr-x+ 2 sona S44010 4096 2005-04-05 13:44 Drawings/
Permission on this directory are defined with acl:
root at natasha:/data/disk1/pobox# getfacl Drawings/
# file: Drawings
# owner: sona
# group: S44010
user::rwx
user:ivan:rwx
group::r-x
mask::rwx
other::r-x
default:user::rwx
default:user:ivan:rwx
default:group::r-x
default:mask::rwx
default:other::r-x
Problem:
User ivan connected to this folder from Win XP(SP2) machine.
He can create new file, but he can't delete or rename it.
Win generate err message:
----------------------------------------------------------|
|"Cannot delete New Text Document: Access is denied." |
| |
| Make sure the disk is not full or write protected |
| and that the file is not currently in use. |
-----------------------------------------------------------
When I change:
ownership directory to ivan
or
group to ivan's group
or
set permission for other rwx
user ivan can delete (rename) file OK.
It seems that ACL permisions aren't used when samba want to delete or
rename file. (Directories works OK).
In samba-3.0.10 it's work fine.
Is it a bug or do I any mistake?
Ivan
More information about the samba
mailing list