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)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie / Guru / Maven / whatever)

Zef Hemel

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

Advertisement: