Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.
Moderator: General Moderators
memotype
Forum Newbie
Posts: 5 Joined: Mon Dec 04, 2006 12:45 pm
Post
by memotype » Tue Dec 05, 2006 12:52 pm
I asked this question on the PHP Code forum, and was told to hask in the linux forum:
viewtopic.php?p=336085
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue Dec 05, 2006 2:19 pm
I believe he was referring to the ubuntu forum that was linked to during the course of the thread, not here.
memotype
Forum Newbie
Posts: 5 Joined: Mon Dec 04, 2006 12:45 pm
Post
by memotype » Thu Dec 07, 2006 6:34 am
feyd wrote: I believe he was referring to the ubuntu forum that was linked to during the course of the thread, not here.
Why would I ask the ubuntu forum?? I'm not running ubuntu...
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Thu Dec 07, 2006 7:38 am
memotype wrote: feyd wrote: I believe he was referring to the ubuntu forum that was linked to during the course of the thread, not here.
Why would I ask the ubuntu forum?? I'm not running ubuntu...
Any linux forum. If you want to try this with PHP then exec() etc will be no use since su needs to read from stdin. Try using proc_open() to get a handle on the running process and then pipe into stdin from there.
What do you need this for again?
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Thu Dec 07, 2006 7:39 am
You'll also need the apache user in the wheel or sudoers group for that to stand a chance of working.