0

I have an Apache Webserver service running on Machine A.

It serves some files from machine B, by having an

Alias /foo \machineB\someshare

MachineB\someshare is read-accessible to "Everyone". Apache runs as LocalService.

When I boot the machine, it isn't able to serve files from /foo, but If i log onto the machine, and just touch the \machineB\someshare it looks like access is granted, and it correctly serves files from /foo.

How do I automate this, so I don't need to log in and touch the network share?

serverhorror
  • 6,478
  • 2
  • 25
  • 42
Soraz
  • 225
  • 1
  • 4
  • 11

3 Answers3

0

Try running Apache as a domain user service account, with necessary privileges of course, and see where that gets you.

SpacemanSpiff
  • 8,753
  • 1
  • 24
  • 35
0

one possibility - have the web server mount the remote share via cifs in the fstab? You'll have to supply credentials, but they can be guest creds I believe. Alternately a startup script that mounts and unmounts might have the same effect.

uSlackr
  • 6,412
  • 21
  • 37
0

If I remember correctly, starting with Windows Vista, the security group "Everyone" does not include "anonymous" logins. When accessing a remote share using a service that is running as "LocalService" it accesses using a NULL user, or anonymous, so it won't be able to access the remote share.

As SpacemanSpiff recommended, change apache to run as a domain user, or try using "NetworkService" instead of "LocalService".

Jon Angliss
  • 1,782
  • 10
  • 8