Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Permanently Map a drive on a server? 1

Status
Not open for further replies.

gruvn

Programmer
Oct 15, 2004
24
CA
Hi,

I'm trying to link 2 of our servers. One processes data, and the other is a dedicated web server. I have an application on the data server that outputs images that need to be served by the webserver.

I figured I could just map a drive one the data server such that while it thinks it's outputting to the "x:", it's actually throwing them onto the web server.

The short of it is that it's not working. While I can map the drive myself and put files into it from the dataserver (and then see them via the webserver), the program doesn't seem to be able to do the same. I have tried the extreme of giving "everyone" "full access", but I'm still not getting any output. I have admin privs, so I thought that maybe I have some privs that the program doesn't. Is there a way I can assign "full access" to an application?

Secondly (and related), to my knowledge, mapped drives are only mapped when a particular user is logged on. Is there a way to make this connection between the 2 servers permanent? If I ever get the mapping to work, I don't want to have to be logged on all the time so that the drives stays mapped....

Can this work, or is there a better way to go about this?

Thanks!
Mike

I'm getting some errors related to permissions (I have admin privs).
 
check the permissions on the share of the folder instead of the security of the files, the default security on shares is read-only
 
You can use a bat file or a vb script to map a drive at station startup then the drive should be mapped all the time regardless of who is logged on.

You can put this in the local computer settings using gpedit.msc

Computer configuration - Windows settings - Scripts

 
gruvn,

You can also have your program use the UNC path name (\\computer\folder) instead of a mapped drive. The permissions on the shared folder must allow data to be written to it.

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top