Date: Wed, 19 Nov 2003 11:00:16 +0100 From: Jean-Baptiste Quenot <jb.quenot@caraldi.com> To: FreeBSD-questions <questions@FreeBSD.ORG> Subject: Re: user's rights ??? Message-ID: <20031119100016.GE1319@watt.intra.caraldi.com> In-Reply-To: <000e01c3aac6$6f2bbdd0$0901a8c0@bloodlust> References: <000e01c3aac6$6f2bbdd0$0901a8c0@bloodlust>
next in thread | previous in thread | raw e-mail | index | archive | help
--CGDBiGfvSTbxKZlW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Xpression: > Hi list, I have configured a server to act as a WWW server, > but I have many users that have their own web page and they can access > to their sub-dirs via FTP, now when they want to upload the files via > HTTP (usin PHP) the system denied the write, I mean: Assuming you want to use PHP: You have to setup Apache with suExec so that PHP runs as the user owning the directory. Each user directory should be owned by a different user id. This is because Apache (and PHP) runs as user www, so it cannot modify files. Note that using this approach requires PHP to be run as a CGI program. However, suExec requires that the CGI be owned by the user running it, so either you copy php to every user dir in the cgi-bin directory, or you apply patches available at [1]. The setup is a bit difficult but worth the effort. If you want to use the HTTP PUT method, you may consider running mod_dav, but then an authentication must be setup and all files owned by the user running Apache (www). Best regards, --=20 Jean-Baptiste Quenot http://caraldi.com/jbq/ [1] http://localhost.nl/ --CGDBiGfvSTbxKZlW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/uz8w9xx3BCMc9gsRAm6PAJ9FPlZMSQicL7jCBSlRB6aDlrEilQCggZwI 8A+LSHdSevHw9gDrlD5iVIA= =vwu3 -----END PGP SIGNATURE----- --CGDBiGfvSTbxKZlW--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031119100016.GE1319>