logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: *RESOLVED* Apache user permissions
Author
FrancisC



Joined: 12 Feb 2009
Posts: 2

PostPosted: Thu 12 Feb '09 20:51    Post subject: *RESOLVED* Apache user permissions Reply with quote

I believe this belongs to the Apache board, but I am not sure.

I am trying to program a php application to write a file to a shared drive on a remote machine on the network.

The web server is running Apache 2.2.8 and php 5.2.5 on a Windows 2000 server. The remote machines are all Windows as well, most are Win 2k, others are Win XP.

Manually, I can copy a file to the shared drive, so I know the user logged on to the workstation has sufficient rights. When I do 'fopen' on the file in the remote directory, I get "permission denied".

Looking at the services on the server, I see that Apache is logged on as LocalSystem, so I'm assuming it should mean that it has the same rights as the user logged into the workstation.

I also try to play with the httpd.conf file, but I can't quite figure it out...

What am I missing? That should be feasible, right?

Thanks!

FC.


Last edited by FrancisC on Thu 12 Feb '09 23:45; edited 1 time in total
Back to top
FrancisC



Joined: 12 Feb 2009
Posts: 2

PostPosted: Thu 12 Feb '09 23:45    Post subject: Reply with quote

Ah... found it!

When the Apache service is showing running as LocalSystem, I am not sure what that user actually IS, but it does not have the same rights as the user logged in to the workstation.

I have to either
1. open the share to 'Everyone' (or figure out which user reaslly works, but I can't be bothered)
2. create a user dedicated to running the Apache service that will also have rights to the shares I want.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 13 Feb '09 0:10    Post subject: Reply with quote

The Answer -> #2

Limited user is fine as long as share permissions allow read(/write if wanted) to that user. ... and yes, computer with the share has to have an account for said user.
Back to top


Reply to topic   Topic: *RESOLVED* Apache user permissions View previous topic :: View next topic
Post new topic   Forum Index -> Apache