public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* cifs 1.50 and dosemu 1.4 great combination
@ 2007-10-11 14:30 kemas
       [not found] ` <470E52D1.5040406@pobox.com>
  0 siblings, 1 reply; 8+ messages in thread
From: kemas @ 2007-10-11 14:30 UTC (permalink / raw)
  To: linux-cifs-client, linux-msdos

hi all,

just wanted to share some story..

we use samba as file server, application mainly use dos clipper, foxpro
base and some windows application.

we try to change the client to use linux so we can easily maintain the
os remotely.
at first it was running quite well but slow, but later the client start
complaining about how they loose their data and how they blame it
because of using linux.

at that time we use 
	- centos 4.3 
	- cifs 1.34
	- dosemu 1.2
	- wine

try upgrading cifs from 1.34 to 1.40 doesn't resolve the problem, smbfs
really not a solution for us because we need locking capabilies.
ask for help from anyone (thanks akemi), become a headbanger because
that problem still exist.

now we try to at one site to use
	- centos 5
	- upgraded to cifs 1.50
	- dosemu 1.4
	- wine

since then I get zero..zip complain from the user at that site regarding
data losses, phew.

I just want to say a big thank you for such a great software, 

thank you

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: cifs 1.50 and dosemu 1.4 great combination
@ 2007-11-14 14:39 Tarquin Adams
  2007-11-14 16:03 ` Claudia Neumann
  0 siblings, 1 reply; 8+ messages in thread
From: Tarquin Adams @ 2007-11-14 14:39 UTC (permalink / raw)
  To: linux-msdos

All,

I am hoping someone can help with the following scenario:

- Dosemu 1.4
- Ubuntu 7.10
- TightVNC with java webserver
- DOS based accounting package using Btrieve 5 database

I wish to run a DOS based accounting package on dosemu with client access to it using VNC.  I have had encouraging successes but the file locking issue still comes up sometimes.

The accounting package uses a Btrieve 5 database.  When I start several dosemu sessions using the same user all running the same accounting software, I get good perfomance with only an occasional crash due to file locking/sharing clashes.

If I share the directory containing the software using SMB then mount it using CIFS:

sudo mount -t cifs //server/share /other_location -o username=xxxxxxx,password=xxxxxxx

then I also get the software to run properly although I have not been able to test whether this eliminates the occasional crashes I get without this method.

I want to start different VNC sessions using different usernames and have them access the software.  All these users are members of a group which has read/write access to the directory which contains the accounting software and which is lredir'd in the autoexec.bat.

I have a script that starts VNC sessions like:

su -c "vncserver :x" - user1
su -c "vncserver :y" - user2

However, when I run sessions with these different usernames accessing the CIFS mounted directory lredir'd in dosemu I get Btrieve error 14 (pre-image open error)  when the software tries to access the data files.  This is related to the .pre files that Btrieve creates and it appears a .pre file created by one user cannot be accessed by another, which is essential!

Does anyone have any advice or recommended settings for enabling whatever oplock or  other locking mechanism is required for this to work correctly?  I notice several  posts which say they have got record locking working using CIFS with SAMBA but  no-one gives specifc smb.conf or CIFS settings for this.

Any suggestions would be much appreciated.

Regards,
Tarquin Adams

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.15.31/1129 - Release Date: 13/11/2007 21:22
 

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: Re: cifs 1.50 and dosemu 1.4 great combination
@ 2007-11-15 10:26 Tarquin Adams
  2007-11-21  4:04 ` kemas
  0 siblings, 1 reply; 8+ messages in thread
From: Tarquin Adams @ 2007-11-15 10:26 UTC (permalink / raw)
  To: linux-msdos

Claudia, thank you for your response.

I think I have now identified the cause of my problem.  When a user creates a file in dosemu, the permissions are set as 'read and write' for that user but 'read only' for their group and all other users.  Hence when my software tries to access a .pre file to append data to, it finds it is 'read only' for any user other than the first one to have run the software.

How can I force all files created in dosemu to be 'read and write' for all users?

Regards,
Tarquin Adams

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.15.32/1131 - Release Date: 14/11/2007 16:54
 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-11-21  4:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-11 14:30 cifs 1.50 and dosemu 1.4 great combination kemas
     [not found] ` <470E52D1.5040406@pobox.com>
     [not found]   ` <1192159242.2490.10.camel@localhost>
2007-10-12  5:31     ` Alain M.
2007-10-12  6:19       ` Bart Oldeman
2007-10-12 11:58       ` Claudia Neumann
2007-10-15  3:23       ` kemas
  -- strict thread matches above, loose matches on Subject: below --
2007-11-14 14:39 Tarquin Adams
2007-11-14 16:03 ` Claudia Neumann
2007-11-15 10:26 Tarquin Adams
2007-11-21  4:04 ` kemas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox