RE: [SMARTY] changing template_c ownership

From: Date: Tue, 13 Aug 2002 17:51:47 +0000
Subject: RE: [SMARTY] changing template_c ownership
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5689@lists.php.net to get a copy of this message
Just FYI: The g+s turns on the "sticky" bit for groups, which means that even though the user creating the file is from another group (the web server) the cache and template files and dirs will be created with "nobody:<your group>", which will allow you to edit/ delete them as long as the group has read/write/execute permissions (taken care of by the chmod 775). How's that for a runon sentence? Gary >-----Original Message----- >From: Rob Schumann [mailto:robs@rs-tc.com] >Sent: Tuesday, August 13, 2002 9:36 AM >To: Greg Elisara >Cc: smarty-general@lists.php.net >Subject: Re: [SMARTY] changing template_c ownership > > >Hi Greg, > >On 13-08-2002 Greg Elisara wrote: > > > problem is, webserver runs under nobody:nobody and smarty > > creates compile subdirectories using this as the >owner:group - > > result is chmod failures and nobody:nobody >directories i cannot > > do anything with. (i could be wrong here, but i thought if i > > chown'ed templates_c to greg:greg then all subdirs created by > > smarty under templates_c would be greg:greg - my experience > > here tends to suggest otherwise as they are being created as > > nobody:nobody). > >I took this up with my host and they were very amenable >to accommodating the request... perhaps yours will >too... The recipe is adapted from guidelines supplied >by Monte a while back... > >chown greg:nobody templates_c >chmod 775 templates_c >chmod g+s templates_c > >and the same for the "cache" directory in the same location. > >All works perfectly under this arrangement. > >Cheers > >Rob > >-- >Smarty General Mailing List (http://smarty.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php >

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