[Samba] 'x' bit always set?

Michael B. Trausch mbt at naunetcorp.com
Wed Aug 1 08:25:31 MDT 2012


On 08/01/2012 10:07 AM, Jonathan Buzzard wrote:
> On 01/08/12 14:54, Michael B. Trausch wrote:
>> It might behoove Samba to implement DOS/Windows file attributes in user
>> extended attributes, or in a database file, as opposed to (ab)using the
>> owner execute bit for this purpose.  However, it has been this way for a
>> long time, and I would expect that inertia will overcome the desire for
>> change here.  I could be (and hopefully am) wrong.
> 
> You are wrong, mount your file system with extended attributes enabled
> and then add the following to your smb.conf
> 
> # store DOS attributes in extended attributes
>         ea support = yes
>         store dos attributes = yes
>         map readonly = no
>         map archive = no
>         map system = no
> 

Rarely am I happy to be wrong.  :-)

I assume that (somewhat counter-intuitively) setting "map
{readonly,archive,system} = no" means not to use the classic mapping,
and "store doss attributes = yes" replaces all of those in a form which
can be used in EAs?

Thanks!

	--- Mike

-- 
Michael B. Trausch
President, Naunet Corporation

Web:   https://www.naunetcorp.com/
Phone: +1-(470)-201-5738



More information about the samba mailing list