Re: [SMARTY-DEV] setting up directories

From: Date: Tue, 19 Aug 2003 13:30:48 +0000
Subject: Re: [SMARTY-DEV] setting up directories
References: 1 2 3 4 5 6 7 8  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1774@lists.php.net to get a copy of this message
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

« previous php.smarty.dev (#1774) next »