> They use an accounting package which bases its files on > the Linux server. When a user uses the system it works > fine. when they try to re-index the system it changes the > user permissions on the files. As an example. > > /Local/SybizDrive - drwxrwxrwx root:root > datafile.dbf -rwxrwxrwx root:root > > Smb.conf > [sybiz] > read only = no > browseable = yes > guest = no > writeable = yes > > if Bob goes to reindex the files (using a Client on a > windows PC accessing the files via samba) then the > datafile.dbf ends up looking like the following > datafile.dbf -rwxr- -r- - bob:bob > > The sybiz client then says bob is locked out from > accessing that file .. tough luck try again later son. > > I have tried making bob a member of the sybiz group and > making the files set the permissions like > datafile.dbf -rwxrwxrwx root:sybiz > > I have added in lines to smb.conf such as > group = sybiz > user = root (or any othoer user) > > but the file always ends up as datafile.dbf -rwxr- -r- > - bob:bob > > I know there is a way to get all newly created files given > a set permission or standard permission , group and user > but for the life of me my brain is too fried to remember > how.
Try setting (depending on what you want) some/all of the always ugly options: force user = dummyuser force group = somegroup (remembering to chown files on the hdd after) create mode = 0664 directory mode = 0770 (remembering to chmod files on the hdd after) It all depends on how much access from the local machine you want to allow. something like: force group = sybiz create mode = 0660 directory mode = 0770 will probably be enough for what you want. Just remember, don't access this directly from the local directory anymore as the force user/group & create modes won't be applied. If you have to you will probably have to map up a samba share to itself on the local machine and access via that. All commands listed under man smb.conf Regards Daniel
