Bug 2601 - Access denied when running FoxPro from OS/2 &Win98 clients on samba 3.0.15pre2-SVN-build-6319
Summary: Access denied when running FoxPro from OS/2 &Win98 clients on samba 3.0.15pre...
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.13
Hardware: x86 FreeBSD
: P3 major
Target Milestone: none
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-13 02:58 UTC by Alex Masterov
Modified: 2005-08-24 10:15 UTC (History)
0 users

See Also:


Attachments
Sniff of the attempt to run foxprox.exe from OS/2 (1.18 KB, application/octet-stream)
2005-04-13 03:07 UTC, Alex Masterov
no flags Details
Sniff of the attempt to run foxprox.exe from Win'98 (2.46 KB, application/octet-stream)
2005-04-13 03:12 UTC, Alex Masterov
no flags Details
Sniff of the attempt to run foxprox.exe from OS/2 (1.48 KB, application/octet-stream)
2005-04-13 19:00 UTC, Alex Masterov
no flags Details
Sniff of the attempt to run foxprox.exe from Win'98 (3.73 KB, application/octet-stream)
2005-04-13 19:11 UTC, Alex Masterov
no flags Details
Proposed patch. (611 bytes, patch)
2005-04-14 13:57 UTC, Jeremy Allison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Masterov 2005-04-13 02:58:47 UTC
Can not run FoxPro 2.6 for DOS from Samba 3.0.15pre2-SVN-build-6319 shared drive
in Win'98 and OS/2 dosbox. Result of attempt of running foxprox.exe "Access
denied". WinXP can run foxprox.exe normally under the same user.
Xcopy of FoxPro directory from OS/2 and Win'98 to local drive works normally,
i.e. client has access to files on server.
Changing case of files on UNIX side to UPPER and lower has no effect.
Comment 1 Alex Masterov 2005-04-13 03:07:34 UTC
Created attachment 1148 [details]
Sniff of the attempt to run foxprox.exe from OS/2
Comment 2 Alex Masterov 2005-04-13 03:12:26 UTC
Created attachment 1149 [details]
Sniff of the attempt to run foxprox.exe from Win'98
Comment 3 Jeremy Allison 2005-04-13 12:15:20 UTC
Unfortunately these sniffs are not useful as you didn't set the snaplen to
capture the entire packet. The packets are truncated.

Please resubmit with complete traces.

Jeremy.
Comment 4 Alex Masterov 2005-04-13 19:00:41 UTC
Created attachment 1150 [details]
Sniff of the attempt to run foxprox.exe from OS/2

I am terribly sorry!
Here is sniff with correct (I hope) snaplen.
Comment 5 Alex Masterov 2005-04-13 19:11:05 UTC
Created attachment 1151 [details]
Sniff of the attempt to run foxprox.exe from Win'98

I am terribly sorry!
Here is sniff with correct (I hope) snaplen.
Comment 6 Jeremy Allison 2005-04-14 12:02:14 UTC
Ok, I understand the problem. Based on the Samba4 mappings we changed the
meaning of DOS_OPEN_EXEC from open read-only to open read-write. This means the
user needs to have rw access to the .EXE binary. I agree this seems strange to
me, but I'm going to test this on a W2k3 server to see if the same restriction
is in place. If so, I'm not quite sure what to do. To fix this to act the same
way as before we'd need to break W2K3 semantics....
Jeremy.
Comment 7 Jeremy Allison 2005-04-14 13:57:42 UTC
Created attachment 1159 [details]
Proposed patch.
Comment 8 Jeremy Allison 2005-04-14 13:58:15 UTC
Checking on W2K3 it seems that DOS_OPEN_EXEC does indeed seem to open read-only.
Hmmm. I'm obviously missing something here... but for now I'm committing the
proposed patch.
Jeremy.
Comment 9 Alex Masterov 2005-04-14 19:34:42 UTC
On Samba 3.0.15pre2-SVN-build-6348 foxpro 2.6 for dos runned successfully from
Win'98 and OS/2 dosbox.
Thank you!
Comment 10 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:15:55 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.