>> 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.
Hi all.

Thanks for the help. The problem and resolution looked like this....

I had set it up as group=sybiz, set the permissions on the file structure and 
let it loose.

It would run well until the indexing happened. 

The indexer turned out to be the problem. It seemed to thing that even though 
it was logged in as user Bob, as soon as it created a temp file (as bob), no 
matter what group it belonged too it changed the permissions to allow bob to be 
the only person to have access (rwx- - - - - -, wiped out the group and then 
packed a sad because a user (bob) had some files open that it wanted to use (ie 
the file it just created). It is a Sybiz ...eeerrrr ... feature ;-}

Took Daniels advice, set Force User = abauser, Force Group = sybiz chmoded 
(0770) and chownd(abauser:sybiz)  the file structure yet again and set it 
running. It now works. Have also forced permissions in samba to be the same as 
above. >   create mode = 0770 , directory mode = 0770. 

Unfortunately it means all files are now shown as being used by the same user 
and group so the file ownership no longer changes to reflect the user who 
created or modified it as it should. That is a problem for another day. All 
files also need the execute permissions turned on for the indexer as well.

Thanks for the help and reminding me about the force command. My brain was too 
fried to think by then. 

Shane



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.15 - Release Date: 16/04/2005

Reply via email to