Re: [SMARTY] file permitions

From: Date: Tue, 07 Jan 2003 17:59:16 +0000
Subject: Re: [SMARTY] file permitions
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7057@lists.php.net to get a copy of this message
first a correction on myself: +s is for setuid or setgid, not sticky bit. So this only affects file ownership, not permissions. You need to change the file permissions that Smarty uses to create files and directories. These are currently hardcoded, but configurable in CVS (next release). Another solution is to unmask the permissions prior to running Smarty. See the umask() documentation in the PHP manual. maybe something like: umask(002); $smarty->display(...); Monte On Tue, 2003-01-07 at 09:29, Pupeno wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tuesday 07 January 2003 00:24, Monte Ohrt wrote: > > Set the group sticky bit on the top directory, that should get the group > > and permissions to stick on the subfolders and files. > > > > example: > > > > chown nobody:mygroup templates_c > > chmod 775 templates_c > > chmod g+s templates_c > > > I already did this, but this sticks the group, but not the group permitions. > The user and group of the files are the user of apache and my group, which is > good enough, but the files are not group writeable (755). The base directory > contains the following permitions: drwsrwsrwx (yes, sticky for the user too, > but has no efect). > Thanks. > - -- > Pupeno: pupeno@pupeno.com > http://www.pupeno.com > - --- > Help the hungry children of Argentina, > please go to (and make it your homepage): > http://www.porloschicos.com/servlet/PorLosChicos?comando=donar > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (GNU/Linux) > > iD8DBQE+GvJdLr8z5XzmSDQRAhgjAJ9SbOZEXwnpI0vgWgEsUTNIU/nBNgCgyVOz > pVp+urh5ti1B/9t6TWAkRIY= > =A2dj > -----END PGP SIGNATURE----- -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.general (#7057) next »