Re: [SMARTY-DEV] setting up directories
| From: | messju mohr | Date: | Thu, 21 Aug 2003 14:10:01 +0000 |
| Subject: | Re: [SMARTY-DEV] setting up directories | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1787@lists.php.net to get a copy of this message | ||
On Wed, Aug 20, 2003 at 09:27:50AM -0700, Dennis Gearon wrote:
> So,
> do I need to have the host make a group with just me and the
> webserver in it?
no, you just need a directory whose uid is the webservers uid and
whoise gid is your ftp-accounts gid.
you don't need to create groups or modify groups-memberships. there is
no problem that the webserver-user is not in the ftp-group.
> messju mohr wrote:
>
> >On Mon, Aug 18, 2003 at 08:40:04AM -0700, Dennis Gearon wrote:
> >
> >>On shared hosting (hosing?), the webserver will own the files that Smarty
> >>creates. What exactly is the way to set up permissions so that I have
> >>'rw' permissions on them as well?
> >
> >
> >
> >[in the shell, maybe ask you friendly webspace-provider:]
> >mkdir templates_c
> >chown [webserver_user].[ftp_user's_group]
> >chmod 770 templates_c
> >chmod g+s templates_c
> >
> >[and in php:]
> >umask(0007);
> >$smarty->_file_perms = 0660;
> >$smarty->_dir_perms = 0770;
> >
> >
> >this makes the files created owned by the webserver-users (so he has
> >full permissions), but due to the group-sticky-bit of the directory
> >the files' group is your ftp-user's group. so the ftp-user has write
> >permissions via the group-writable flag.
> >
> >HTH
> >messju
> >