PHP Security Question
From: Patrick McDonnell (pmcdonnell_at_muncc.marmionacademy.org)
Date: 09/26/04
- Previous message: Paul Black: "Re: Need Help Configuring LAN for Email"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 26 Sep 2004 13:06:37 -0500
Here's my situation: I'm working on a PHP application that adds user
accounts to my system. However, the PHP script runs on the webserver,
while the accounts need to be created on a different box, which I'll refer
to as "master". Right now, on "master" I have a script which can create
and destroy directories in /home, and set permissions, etc. The script is
run by a shell_exec(ssh master sudo homeDirManage.sh create $USER). I have
setup the web server user to be able to ssh to master without a password,
and use sudo to run homeDirManage.sh without a password. What I'm worried
about is that any other user able to put up their web page can do the exact
same thing, and delete home dirs. Is there a more secure way to do this?
- Previous message: Paul Black: "Re: Need Help Configuring LAN for Email"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|