Migration tool for mapped execute bits to EAs for DOS attributes

Sean E. Millichamp sean at enertronllc.com
Fri Apr 28 14:44:01 GMT 2006

Hi folks,

Having been a long time user of Samba (since v1.x), all of my shares
have been using the map (archive|hidden|system) smb.conf options to
represent the DOS attributes.  Recently, I've wanted to migrate to using
'store dos attributes' but I did not see a migration mechanism.  So, I
wrote one.

In my testing so far it has seemed to work just fine.  I have run it
against all Samba/Windows-only shares on my office file server,
including [profiles].  I intend to run it on the other Samba servers I
manage soon and move them all over to EA-based DOS attribute storage.
However, since it modifies EAs that Samba expects to use and process a
certain way I thought I'd announce it on samba-technical first and give
one of the Samba gurus a chance to say "No!  That's a bad idea!  Don't
do that!" before I announced to the main samba-list and some
unsuspecting Samba user :)

It is written in Perl and has both usage instructions and Perl Pod
documentation in it which you can view with perldoc.  I developed &
tested it on Red Hat Enterprise Linux 4.  YMMV on any other system but
I'd guess it should work alright on any modern Linux distro.

One of my goals was to keep the Perl non-core module dependencies down
so the script can use either File::ExtAttr to modify the file attributes
or the command-line getfattr/setfattr tools depending on what it

You can get it from:

Any feedback is welcomed.


 Sean E. Millichamp, Enertron LLC, 586-757-1200 x102

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20060428/cbb4f795/attachment.bin

More information about the samba-technical mailing list