From owner-freebsd-questions@FreeBSD.ORG Sun Jul 9 21:10:45 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6652716A4DF for ; Sun, 9 Jul 2006 21:10:45 +0000 (UTC) (envelope-from kdgrills@the-grills.com) Received: from rwcrmhc15.comcast.net (rwcrmhc15.comcast.net [204.127.192.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03A3D43D49 for ; Sun, 9 Jul 2006 21:10:44 +0000 (GMT) (envelope-from kdgrills@the-grills.com) Received: from srv1.the-grills.com (c-71-57-60-59.hsd1.il.comcast.net[71.57.60.59]) by comcast.net (rwcrmhc15) with SMTP id <20060709211043m15004iclqe>; Sun, 9 Jul 2006 21:10:43 +0000 Received: (qmail 60013 invoked by uid 1001); 9 Jul 2006 21:10:43 -0000 Date: Sun, 9 Jul 2006 16:10:43 -0500 From: "Kelly D. Grills" To: freebsd-questions@freebsd.org Message-ID: <20060709211033.GA93527@the-grills.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <8e104c5252235df01ba3babda4fe7a59@prodigy.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <8e104c5252235df01ba3babda4fe7a59@prodigy.net> X-Operating-System: FreeBSD/6.0-RELEASE (i386) X-PGP-Key: mailto:kdgrills-pgpkey@the-grills.com User-Agent: Mutt/1.5.11 Subject: Re: default umask for Apache X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jul 2006 21:10:45 -0000 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 09, 2006 at 01:19:47PM -0700, jekillen wrote: >=20 > Hello; > I've not had to do this on a Unix system before. But now I have Apache=20 > running as nobody and > have php scripts creating and writing to directories. The files it=20 > creates have the default mask > rw-r-r and I want to change it to rw-rw-- so I can remove the files and= =20 > dirs with group write permissions > via ftp. Could you not chmod the files / directories via your php script? See: http://php.net/manual/en/function.chmod.php > > How do you change the default mask for a user like Apache on a Unix=20 > system? > I believe you can set this via envvars --=20 Kelly D. Grills kdgrills@the-grills.com --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) Comment: PGP key: mailto:kdgrills-pgpkey@the-grills.com iD8DBQFEsXDJ7inS5LzF7HMRAi/DAJ9/hNL2wD1DVq/HVhuHu2JIhvovNACeIeXl h1O2x/LRGqZ6cx3zbe7vfE8= =rCVv -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--