Re: [SMARTY] Smarty access...

From: Date: Fri, 19 Jul 2002 04:18:55 +0000
Subject: Re: [SMARTY] Smarty access...
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5359@lists.php.net to get a copy of this message
You can set it up however you want, just remember that when Smarty creates files, they will be user:group of the web server (or do sticky bit magic, see below.) The only stipulation with user/group/permissions are such that Smarty can write and read 'em. The install instructions try to give a reasonable and secure default. Try this: chown nobody:staff templates_c chmod 775 templates_c chmod g+s templates_c Now when a file or directory is created within the templates_c directory, it should always have group "staff" no matter who writes it, because the sticky bit is set for the group. Monte Rob Schumann wrote:
Hi All, Certain of the smarty directories need to be made accessible to the user under which the server runs (typically "nobody" under linux... The docs and install guide state that this should be setup as owner:group being nobody:nobody. My host is perfectly ok about setting this up, since I do not myself have root access to the machine. Setting nobody:nobody would deny me access to the directories without opening up the access permissions to levels I would prefer not to use. I would therefore prefer to keep one at least open to myself as owner of the hosting account under which I run smarty, so something like owner:group being set as either me:nobody or nobody:me would be preferrable. Would either of the above work?? Are there any ramifications of using these and which would be preferred? TIA Rob Rob Schumann
Managing Director                   M: +66 (0)1 860 4533
RS-Tech Consulting Co., Ltd.        T: +66 (0)2 516 2991
70/592 Moo 3 Krisdanakorn 19,       F: +66 (0)2 516 4025
Klong Nung, Klong Luang,            E:    robs@rs-tc.com
Pathum Thani 12120,                    roblgs@cscoms.com
Thailand                        W: http://www.rs-tc.com/


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