Solved

Apache username

Posted on 2014-03-03
1
284 Views
Last Modified: 2014-03-29
I'm trying to access a network share via PHP, I understand that Apache runs PHP under the username www-data and from what I understand I can set permissions on the server to allow www-data to access the share, however I dont want to set it without a password.

I know I can mount the share with credentials as a point in ubuntu.

What I would like to do is set apache to run as a different username with a password, is this possible?
0
Comment
Question by:tonelm54
1 Comment
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39901670
The method for doing that is with 'suExec'.  That may work only for local permissions though.  I don't think you can set permissions on www-data to access shares on other computers, with or without a password.  www-data is intentionally very restricted.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now