I am running sme server as a domain controller and have several i-bays that are used by various users to save data. Admin has full control over all the i-bays.
I also run a windows software on one of the machine that backs-up the data on-line (over internet) from the sme server to a remote server. I login to this windows machine as admin so that I can access all the i-bays on sme server.
I can access all the files and modify them, however, there is one area where I need a little customization done. This backup software uses "Archive bit" on windows files to determine whether a file needs to be backed up or not (similar concept as windows nt backup utility). It uploads all the files with "Archive bit" set, and clears the bit. Next time the file is changed by a Windows program, it gets uploaded right away.
Initially I had trouble setting or clearing Archive bit from the windows machines. I figured that I can manipulate the archive bit from Windows machine if I put lines under my i-bay part in /etc/samba/smb.conf file and restart samba:
map archive = yes
create mask = 777
directory mask = 777
(last two lines may be a security concern but it does not matter much at this point).
I understand that to make this permanent, I must create a template fragment for smb.conf file, otherwise the customization will be lost next time the template is expanded.
Will someone help me customize this? Or point me to the right place on this forum/wiki?
Thank you so much in advance.