Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Writing a file in a network

3 views
Skip to first unread message

chris

unread,
Mar 9, 2004, 3:16:56 PM3/9/04
to
Help!

I use cache 5.0.2 on a windows2000 server and want to read or write a
file on another windows-server! Outside cache it's no problem, but
it's impossible to read or write (with open) a file inside cache on
the other windows-server! Is there anybody who can help me?

John Murray

unread,
Mar 9, 2004, 4:02:24 PM3/9/04
to
"chris" <christia...@westnet-kabel.at> wrote in message
news:210088df.04030...@posting.google.com...

On Windows, Cache runs as a service. By default this service runs as the
Local System account, which never has rights to access remote printers or
directories over the Windows network.

Most Cache sessions on the server will run under the service account. The
exception is a local terminal session launched from the Cache cube on the
server's console itself. In that case, the Cache session runs under the
credentials that the server desktop was logged into on.

There are two places where you can set a username and password that will be
used by all the rest of the cache sessions (telnet, CSP, Studio, Explorer
etc etc) instead of Local System. The secure way is to use the Log On As tab
of the Cache service properties in Windows. The less secure way is in Cache
Config Manager, on the Advanced tab, under Input/Output, where you can enter
a Networ User Name and Password. For a domain account, enter
domain\username. This is less secure because it's filed in cache.cpf in a
form from which the password can easily be recovered.

This must be the most frequently asked question about Cache on Windows. I
wish InterSystems would add a step to the install sequence that tells folk
about the issue and lets them specify a suitable account.

HTH

John Murray
George James Software
www.georgejames.com

chris

unread,
Mar 10, 2004, 2:53:20 AM3/10/04
to
"John Murray" <john@murray.-SPAMtele2.co.uk> wrote in message news:<404e2627$1...@news.userve.net>...

Thanks John,

but that's not the problem. A User is entered (i tried both ways you
wrote) with all rights on the network, but I have still the same
problem. On a terminal session it is ok!

My example is very easy!

S f="n:\filename"
o f:("NW)

Have you another idea?

Andy Simpson

unread,
Mar 10, 2004, 4:20:22 AM3/10/04
to
Hi Chris

Try the following structure:

"\\servername\shareddiskname\directory(ies)\filename"
You need to define the external path in the way the cache server sees
it.

(And you need to ensure that the Cache session does see it in the first
place!)


>My example is very easy!
>
>S f="n:\filename"
>o f:("NW)
>
>Have you another idea?

Regards,
--
Andy Simpson

Denver Braughler

unread,
Mar 10, 2004, 11:23:43 AM3/10/04
to
chris wrote:
> > > it's impossible to read or write (with open) a file inside cache on
> > > the other windows-server!
Is Cache' running on your machine?

I guess not.

So what you said is true.
Cache' can't even write a file to your local machine.

> On a terminal session it is ok!

I think you need to be really specific about exactly what you are doing.

> o f:("NW)

That has a syntax error - so I know that you didn't copy and paste precisely what you did.

Even so, drive N: has to be visible from the system where Cache' (not
merely a terminal session) is running.

And did you check the file permissions too?

0 new messages