Migration Tools

From SambaWiki

Comment: The download link is dead. If someone knows the current URL, please update this page.

DOS Attribute Mapping Conversion Tool

Current version: 0.4 By: Sean E. Millichamp <sean _at_ enertronllc _dot_ com>

This tool was designed to assist Samba administrators who have been using one or more of the 'map archive', 'map system', or 'map hidden' smb.conf options to store DOS attributes in converting to using the new Extended Attribute based DOS attribute storage mechanism used by the 'store dos attributes' smb.conf option.

It looks at the execute bits on a given file and it builds the corresponding user.DOSATTRIB EA that Samba expects when using 'store dos attributes = yes'. Using command line switches you can instruct it to look at only the execute bits you were using to represent DOS attributes. It will also clear the execute bit after it sets the EA, if you would like. Additionally, you can have it set the DOS Directory attribute for any directories that it finds.

Please be sure to read the full documentation before using it. It is written in Perl and contains Perl Pod documentation which you can view with 'perldoc migrate-samba-dosattrs.pl'.

The latest version is available for download here: http://people.epmis.net/sean/software/migrate-samba-dosattrs.pl

It was written and tested on Linux with ext3 EAs. It is a "one time use" tool and I don't intend to do any significant further development on it but I will fix any reported bugs and if anyone wants to submit patches to let it work on other platforms I will consider applying them.