Solved

Apache username

Posted on 2014-03-03
1
291 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
NTPD Client Port Usage 12 63
Wordpress and Wufoo 1 37
Nee dhelp identifying the OS and how to access 7 37
Delete image(s) associated with record(s) 16 23
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
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 look for a specific file type in a local or remote server directory using PHP.

762 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