[Samba] MSDOS "System" Attriubute for Folders

Jeremy Allison jra at samba.org
Tue Jan 13 10:12:42 MST 2015


On Tue, Jan 13, 2015 at 09:04:29AM -0500, Matthew Heyse wrote:
> I'm having trouble setting the DOS/Windows attribute flag "System" on
> Samba shared folders.
> 
> The [Share] level setting "map system = yes" makes the Unix group
> execute bit be the "System" flag works fine on regular files, but not
> on directories.
> 
> There is several ways to make files get the "hidden" attribute, but
> only way that I've found to set the "System" attribute and it doesn't
> fully work.
> 
> Directories in a share need to have the "System" attribute set,
> whenever you need Windows (XP/7) to process the folder's internal
> desktop.ini file for that directory.
> see:http://msdn.microsoft.com/en-us/library/windows/desktop/cc144102%28v=vs.85%29.aspx
> 
> I'm running Samba 3.5, on OpenBSD 5.6

Set all the "map XXX" parameters to "no", and
just store the DOS attributes in an EA with
"store dos attributes = yes".

We really should change that to be the default
for 4.3.x and above, it's time. I don't think
we ship on any platforms that dont' support EA's
anymore.


More information about the samba mailing list