The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

php query (ies?) by waveydavey 2007-07-10 02:32:16
I am writing a web (intranet) app in php to maintain some config info. Some of the configs are 644, owner root, group root, so app does not by default have write permission.
Also, I would like to be able to restart some /etc/init.d jobs, again requiring permissions beyond apache/php level.
What is the best way forward - should I have a shellscript or perl proggy that I call that will execute the command with higher permissions or is there a better way.
Currently I am fudging it with chmods to the files, but this is a bad thing (tm).
WaveyDavey
[ Reply ]
  my 1st thought by c3po2007-07-10 02:42:49
  My take: by FST7772007-07-10 02:43:42
  Won't work with (Bash) shellscript by ttlogic2007-07-10 02:44:18
    Security ... by waveydavey2007-07-10 03:10:48
    That's the kernel, not bash; it applies to any int by bwkaz2007-07-10 04:06:57
      Makes sense by ttlogic2007-07-10 04:15:08
  For the config file part by sazzer2007-07-10 03:24:41

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)