Apache username

tonelm54
tonelm54 used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fixer of Problems
Most Valuable Expert 2014
Commented:
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial