Discussion:
[Samba] Unix Extensions and "force create mode"?
(too old to reply)
Fabio Muzzi
2009-04-05 17:50:06 UTC
Permalink
It seems that when the clients (and the server) use Unix extensions, the
"force create mode" (and maybe "force directory mode"?) setting is
completely ignored.

I have a Samba 3.2.5 server that is accessed from Windows and Linux.

One share is configured as follows:


[foto]
comment = Galleria fotografica
path = /ud0/foto
create mask = 0775
read only = No
directory mask = 0775
force directory mode = 0775
force create mode = 0664
map system = Yes
map hidden = Yes
dos filemode = Yes

When a Windows client writes a file to this share, the file gets the
correct permissions (664). When a Linux client writes to this share, the
permissions are set from the client (in my case the default is 660).

This is wrong because I need 664 on this share.

If I disable Unix Extensions on the server, the "force" settings are
enforced correctly.


Is this a bug or is it the intended behaviuor? Is there a way to force
permissions even when files are accessed from a Linux client that uses
Unix extensions?


Thanks
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
simo
2009-04-05 18:00:15 UTC
Permalink
Post by Fabio Muzzi
Is this a bug or is it the intended behaviuor? Is there a way to force
permissions even when files are accessed from a Linux client that uses
Unix extensions?
It's been fixed in latest cifs.ko code,
I think it may have made kernel 2.6.29

Simo.
--
Simo Sorce
Samba Team GPL Compliance Officer <***@samba.org>
Principal Software Engineer at Red Hat, Inc. <***@redhat.com>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Continue reading on narkive:
Loading...