News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

using php as "somebody" LOL

Started by Parham, August 24, 2003, 11:37:56 AM

Previous topic - Next topic

Parham

when running php scripts from the net, they are run as user "nobody".  Does anyone know how to somehow to change this?  I've got a directory manager I've created which is limited because user access is restricted to files that are only owned by user "nobody".  I've heard people that ran php scripts though a perl frontend to get more access to read/write.

Zef Hemel

If you use mod_php you can't run scripts as a user different than nobody, or well, let's put it this way, php always runs under the same user that Apache runs under. If you choose for running PHP through CGI then you can run scripts under the account of the user. I'm not sure how to do this exactly, but it is possible. But anyway, you lose quite some performance that way.

Douglas

Run suEXEC, that does help, also
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* HBCUAC.org Web Developer, the NAIA's only HBCU Athletic Conference
* Former Sports Photographer and Media Personality and Former CFB Historian
* Tech Admin for one 2.9M+ post and one 11.6M+ post sites. Used to own a 1M+ post site.
* WordPress Developer (Junkie / Guru / Maven / whatever)

Zef Hemel

Ah yes, indeed, that's what I meant :)

Advertisement: