[TriLUG] Samba vs Window share issue

Kevin Flanagan flanagannc at gmail.com
Thu Apr 5 19:54:33 EDT 2007


If there's no running windows software on the "server", there isn't a way,
regardless of the OS, for the client to write to $TEMP of the server.

As I read this, you copied the files to the Samba share, connected to it
from the client, and ran the workstation setup.  That doesn't leave a way
for anything to call the server to write to the hard drive.

Have you tried shutting off administrative shares on the Windows server to
see if it breaks the app?  It would reveal that you have a truly crappy app
if it uses those.  Securing a windows server generally means that you
disable admin shares......


Kevin

On 4/5/07, Glenn Hennessee <Glenn_Hennessee at ncsu.edu> wrote:
>
> It sounds as though they hard coded into the program the location of
> their temp directory instead of asking windows where $TEMP (or %TEMP% as
> MS calls it) is. There is GetTempPath windows API call to ask the
> location of temp. It appears they didn't use it. This url,
>
> http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_shelloverview.mspx?mfr=true
> has a list of all the environment variables that windows has as default.
>   set variablename (eg. set temp) will give you the value of temp. There
> is also a tmp variable which usually, and maybe always, points to the
> same place.
>
> glenn
>
> Chris Bullock wrote:
> > We have installed this new payroll software (Paychex) for our Accounting
> > Dept.   All that was needed was a Windows share for the application.
> > Created the samba share with correct permissions, went to the CD , the
> CD
> > asked where to install the file I said P drive = \\$server\%share,
> > installed the software, then I mapped the P drive on other machine and
> > installed the software running the workstation_setup.exe.  Anyway long
> > story short the application does run, the problem is when the
> application
> > need to edit files, I wasn't there I was just told that there were
> errors.
> >  Any way, we called the company, they said oh yea, it *has* to be on a
> > Windows share, "It will not work with Linux/Samba shared"  But the
> kicker
> > is they say it writes to the C:\Temp folder when trying to edit these
> > files on the share.  If I have a share, and that is the only thing my
> > users have access to how can they write to the C:\temp folder of the
> > server?  Or is this guy feeding me a bunch or horse poop.  Anyway, I
> > created a Windows share scp'ed the files over, gave my acct dept access,
> > and the program worked as expected.
> >
> > Any thoughts as to why it would not work on the samba share?
> > Regards,
> > chris
> >
> >
> >
> >
> ____________________________________________________________________________________
> > Bored stiff? Loosen up...
> > Download and play hundreds of games for free on Yahoo! Games.
> > http://games.yahoo.com/games/front
>
>
> --
> Glenn Hennessee
> Department of Chemistry
> NC State University
> Raleigh, NC 27606
> Voice: (919) 515-2947 FAX: (919) 515-8909
> Email: Glenn_Hennessee at ncsu.edu
>
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>



-- 
+---------------------------------------------------+
Fear and hatred clouds our judgment
Free us all from endless night
      John Lennon from "Attica State"



More information about the TriLUG mailing list