Koozali.org: home of the SME Server

Enabling store DOS attributes

Offline dotcol

  • *
  • 9
  • +0/-0
Enabling store DOS attributes
« on: October 16, 2008, 09:14:41 PM »
I've been looking for a way to Enable store DOS attributes in on of my ibays, in order to run a legacy MS DOS based accounting program. The program requires me to assign DOS attributes to a file IODOS.SYS in order for it to run, therefore I need Samba to first read DOS attributes (SYSTEM, HIDDEN, ARCHIVE, or READ-ONLY) from a filesystem extended attribute, before mapping DOS attributes to UNIX permission bits in order for it to work.

Does anyone have any insight? I would really appreciate it. I can't seem to find anything on the forum.

Thanks in advance for your help,

David

Offline dotcol

  • *
  • 9
  • +0/-0
Re: Enabling store DOS attributes
« Reply #1 on: October 23, 2008, 11:12:38 PM »
Help, please?

I've been reading through some docs, and found that samba in sme server has by default disabled dos attributes. According to the documentation, you can enable this by adding the following to the smb.conf.

Code: [Select]
store dos attributes = yes
I attempted to do so directly with no results in the ./etc/samba/smb.conf to no avail, as the file explicitly states:
Code: [Select]
#------------------------------------------------------------
#        !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
                                                             

I looked through the forum and followed the following post: http://forums.contribs.org/index.php?topic=35872.0 which sugested the following to append to the [profiles] under smb.conf

Code: [Select]

mkdir -p /etc/e-smith/templates-custom/etc/smb.conf/
cp /etc/e-smith/templates/etc/smb.conf/61Profilesshare  /etc/e-smith/templates-custom/etc/smb.conf

My question is:


How do I add the line
Code: [Select]
store dos attributes = yes
under one of my ibays?

Code: [Select]
[contable]
comment = Contabilidad


path = /home/e-smith/files/ibays/contable/files
read only = no
writable = yes
printable = no
inherit permissions = yes
create mode = 0664   

I've also read through the documentation on templates, but have been unable to figure it out. If anyone can help I'd be infinitely grateful.

Thanks Again,

David