Access Samba Shares Tru wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
pinoy_steal
Level 1
Level 1
Posts: 5
Joined: Wed Mar 03, 2010 4:54 am

Access Samba Shares Tru wine

Post by pinoy_steal »

Hi Sir,

I have program in our network that needs database access tru network. I successfully Run this program. But the program need access to samba shares drive. Please help me how i can do this in wine.

Thanks
User avatar
dimesio
Moderator
Moderator
Posts: 13216
Joined: Tue Mar 25, 2008 10:30 pm

Re: Access Samba Shares Tru wine

Post by dimesio »

pinoy_steal wrote:I have program in our network that needs database access tru network. I successfully Run this program. But the program need access to samba shares drive. Please help me how i can do this in wine.
http://www.winehq.org/docs/wineusr-guid ... ure#AEN415
pinoy_steal
Level 1
Level 1
Posts: 5
Joined: Wed Mar 03, 2010 4:54 am

Post by pinoy_steal »

Hi Sir,
I successfully add network shares. Thanks for the info. But my problem are When I run the windows application. Then this application access database tru network shares. The application promt this error.

Run-time error '3051':

The Microsoft Jet database engine cannot open the file '\\myserver\bom$\Materials and Labor Pricelist\BOM_Log.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

Please guide me how to solve this issue.

Thanks
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

pinoy_steal wrote:The Microsoft Jet database engine cannot open the file '\\myserver\bom$\Materials and Labor Pricelist\BOM_Log.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
Mount that share with SAMBA, point Wine to mount point with winecfg (add a drive and point to mount). Tell your program to use local disk instead of remote share.
pinoy_steal
Level 1
Level 1
Posts: 5
Joined: Wed Mar 03, 2010 4:54 am

Post by pinoy_steal »

hi sir, Thanks for all your input. Now it works. My problem also are folder permission. So i set chmod 777 to my mount folder to enable read write our application on samba share.

thanks
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

pinoy_steal wrote:hi sir, Thanks for all your input. Now it works. My problem also are folder permission.
You can control that with Samba as well. Who is the owner of that directory and what are the default permission masks.
pinoy_steal
Level 1
Level 1
Posts: 5
Joined: Wed Mar 03, 2010 4:54 am

Post by pinoy_steal »

Hi Sir,

Thanks for all reply. I am the owner of that directory. the default mask are 022. But I change the directory permission with "777" thanks for the help sir. This question are solve.
Martin Gregorie

Access Samba Shares Tru wine

Post by Martin Gregorie »

On Mon, 2010-03-08 at 18:30 -0600, pinoy_steal wrote:
Thanks for all reply. I am the owner of that directory. the default
mask are 022. But I change the directory permission with "777" thanks
for the help sir. This question are solve.
Leaving anything that wide open is a thoroughly bad idea.

Setting a directory (and its default mask) to 0755 would be better (user
has read/write/execute access, group and world have read/execute) and
use 0664 for files and their default (user and group have read/write
access and world has read).

Using world write permission for anything is extremely unwise: its a
good way to open the way for a virus or trojan to do real damage to your
system.


Martin
aryalan
Newbie
Newbie
Posts: 1
Joined: Mon Sep 26, 2011 4:16 am

Post by aryalan »

I 've tried this on Ubuntu 8.04. It works, but not the way it 's supposed to work. Sometimes directories dissappear or the system can't write to the remote disk.
marilyn099
Newbie
Newbie
Posts: 2
Joined: Tue Oct 04, 2011 5:28 am

Post by marilyn099 »

No matter how I set up permissions on the file or directory, I'm
completely unable to execute a windows binary. Via WINE I'm able to do
so on the Windows server, but not vice versa.
Locked