Migration tool for mapped execute bits to EAs for DOS attributes

simo idra at samba.org
Sat Apr 29 19:31:43 GMT 2006


Sean,

what about adding an entry to our wiki with a brief explanation on how
the tool works?

http://wiki.samba.org


Simo.

On Fri, 2006-04-28 at 10:44 -0400, Sean E. Millichamp wrote:
> 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
> detects.
> 
> You can get it from:
> http://people.epmis.net/sean/software/migrate-samba-dosattrs-0.3.pl
> 
> Any feedback is welcomed.
> 
> Regards,
> Sean
> 
-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org



More information about the samba-technical mailing list