Solved

Need assistance running PHP EXEC as local user on Ubuntu

Posted on 2013-12-05
5
491 Views
Last Modified: 2013-12-11
I know there are a number of ways to do this, but looking for something very simple to do.

I need to launch the following vlc script via PHP & EXEC, as a local user. I currently can run it as www-data, but I need to launch it with a user that has a home directory.

vlc -I dummy dvb:// :dvb-adapter=0 --sout '#standard{access=http,mux=ogg,dst=10.10.1.83:8181}'
0
Comment
Question by:tamray_tech
[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
  • 3
  • 2
5 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39700052
That requires 'suEXEC' except that I think that only works when you are using 'per user' sites in 'public_html'.  That places the files you want to run in a web directory in that user's home directory.  More info here: http://httpd.apache.org/docs/2.2/suexec.html
0
 

Author Comment

by:tamray_tech
ID: 39701027
I spotted this in my research. From what I see, I would need to recompile Apache for this. Is that correct? if so, i would rather find a different option.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39701589
I don't believe there is another option.  Apache runs under a very limited user on purpose.  suEXEC is the way to change that.
0
 

Author Closing Comment

by:tamray_tech
ID: 39712229
I implemented Suexec-common on Ubuntu and achieved the results I was looking for. No need to recompile, just configure and activate.

Thanks
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39712240
You're welcome, glad to help, and thanks for the points.
0

Featured Post

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

691 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