Disk access permissions in a WORKGROUP

K

kihoshk

Hi,

I have a C# app that needs to copy files from the local machine to
another on a WORGROUP network (not a domain). The app is running as a
service under the SYSTEM account. When an attempt is made to copy the
file from one machine to the other, a User Name and Password error is
thrown. This also occurs when I run the service under my account on
both machines (though it's not a domain, both machines have the same
user-names and passwords).

How do I negotiate a connection under these circumstances?

Thank you!
 
W

Willy Denoyette [MVP]

| Hi,
|
| I have a C# app that needs to copy files from the local machine to
| another on a WORGROUP network (not a domain). The app is running as a
| service under the SYSTEM account. When an attempt is made to copy the
| file from one machine to the other, a User Name and Password error is
| thrown. This also occurs when I run the service under my account on
| both machines (though it's not a domain, both machines have the same
| user-names and passwords).
|
| How do I negotiate a connection under these circumstances?
|
| Thank you!
|

Can't work with SYSTEM, but should work when the service runs as a local
user account which has a shadow account on the remote system, are you sure
both accounts have the same credentials?.
Are you able to copy to the remote system from the command line or explorer
using the same account?


Willy.
 
K

kihoshk

Hi Willy,

Thanks for your prompt response.

Oddly enough, when I attempt to access a newtwork share on the remote
machine in the command-line, it prompts me for a username and password
on only one machine, the other connects back without authentication.
Both accounts have the same exact username and password.

To clarify, there are no persistently mapped drives. Server A attempts
to browse shares on Server B, a login dialog box appears. When this
same procedure is executed on Server B to browse Server A's shares,
there is no prompt, and shares are displayed and accessible as
expected. Both servers are Windows Server 2003 machines, and I've
already run into unexpected security issues while getting used to
2003's defaults.

I should add that this network is a client's and I have nothing to do
with the (poorly designed and managed) configuration.

Is it possible that I will need to change some default security
settings on either machine?

-John
 
W

Willy Denoyette [MVP]

| Hi Willy,
|
| Thanks for your prompt response.
|
| Oddly enough, when I attempt to access a newtwork share on the remote
| machine in the command-line, it prompts me for a username and password
| on only one machine, the other connects back without authentication.
| Both accounts have the same exact username and password.
|

That means that on one of the machines the authentication works, while it
fails on the other (the one that re-prompts).
I suggest you check network connectivity, try to telnet on port 445, check
your Firewall settings etc...

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top