[Samba] Cannot change File Attributes

Jeremy Allison jra at samba.org
Fri Oct 28 23:36:33 GMT 2005


On Fri, Oct 28, 2005 at 08:41:41AM +0200, Andreas Schlager wrote:
> Hi list,
> 
> i've upgraded Samba 3.0.14a to 3.0.20b (debian package) and ran into 
> following problem:
> 
> I cannot change the file-attribute (read-only, hidden, archive) from a 
> file via the windows explorer as an ordinary user. The error "access 
> denied" occurs.
> 
> The file has following permissions on Unix:
>   -rwxrw----  1 root Massen 0 2005-10-28 08:17 Neu Textdatei.txt
> 
> The user is named "ewlun" and is member of the Group "Massen". The share 
> where the user writes this file has following settings:
>   [Programme]
>         comment = Programme
>         path = /home/samba/Programme
>         read only = No
>         create mask = 0770
>         directory mask = 0750
>         acl group control = Yes
>         inherit owner = Yes
>         inherit permissions = Yes
> 
> If the Administrator-user is trying to change the file-attributes, this 
> works in following way:
> Before set to "read only":
>   -rwxrw----  1 root Massen 0 2005-10-28 08:17 Neu Textdatei.txt
> After set to "read only":
>   -r--r-----  1 root Massen 0 2005-10-28 08:17 Neu Textdatei.txt
> BUT: It is possible to edit the file (f.e. via 'Notepad')! After saving 
> the file has following permissions again:
>   -rwxrw----  1 root Massen 18 2005-10-28 08:27 Neu Textdatei.txt
> 
> This behaviour is new in 3.0.20b, with 3.0.14a this was working as expected.

Try setting the parameter "acl check permissions = False" and see if 
this fixes the problem. This is being chaned for 3.0.21 and a new
default parameter will be used.

Jeremy.


More information about the samba mailing list