Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jul 2006 16:10:43 -0500
From:      "Kelly D. Grills" <kdgrills@the-grills.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: default umask for Apache
Message-ID:  <20060709211033.GA93527@the-grills.com>
In-Reply-To: <8e104c5252235df01ba3babda4fe7a59@prodigy.net>
References:  <8e104c5252235df01ba3babda4fe7a59@prodigy.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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

> <question>
> How do you change the default mask for a user like Apache on a Unix=20
> system?
> </question>

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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060709211033.GA93527>