Koozali.org: home of the SME Server

Custom i-bay configuration help please

Offline samohile

  • 3
  • +0/-0
Custom i-bay configuration help please
« on: July 02, 2008, 06:10:08 PM »
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.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Custom i-bay configuration help please
« Reply #1 on: July 02, 2008, 06:30:08 PM »
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?
You can find more details on the template system in the SME Server Developers Guide linked from the wiki: http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline samohile

  • 3
  • +0/-0
Re: Custom i-bay configuration help please
« Reply #2 on: July 03, 2008, 12:52:17 PM »
Well I figured it out - Just added required lines in a file under directory:
/etc/e-smith/templates/etc/smb.conf/ibays/

Thanks for your help.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Custom i-bay configuration help please
« Reply #3 on: July 03, 2008, 12:56:09 PM »
Well I figured it out - Just added required lines in a file under directory:
/etc/e-smith/templates/etc/smb.conf/ibays/

Thanks for your help.
And that is wrong! You should not add your templates to the template tree, you should place custom fragments in the templates-custom tree in the same directory layout as the template tree in order to prevent it from being removed overwritten on updates etc.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)