Solved

Apache username

Posted on 2014-03-03
1
295 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 83

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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

615 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