|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
user2222 Smarty Rookie
Joined: 18 Apr 2003 Posts: 7
|
Posted: Fri Jul 25, 2003 4:07 pm Post subject: CHMOD uses with Smarty |
|
|
Hi,
I would like details on the CHMOD uses with Smarty...
I am talking about the access proporties of any type of files (templates and PHP and INC files) in any directory : template_c, template, configs, and so on.
Can we chmod 001 on a directory so that users can access to it only if they ask for the right file. Theyč ar&e supposed to know its adress!!!
Thank to the webmasters...
Thomas |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Fri Jul 25, 2003 4:26 pm Post subject: |
|
|
for templates_c and cache (if they are owned by the webserver-user):
for normal operation a chmod 300 should suffice. if you know all files are already compiled, 100 should also work on templates_c but you will sacrifice a lot of convinience by that (automatic recompilation when the template changes).
there are some functions that need to traverse over the directory(s): clear_cache and clear_compiled_tpl, maybe others. these won't work with such restricted settings but they are not used in normal operation.
templates and htdocs should not be owned by the webserver-user, of course, and maybe chmod 710 and chgrpd to nogroup.
why don't you simply try it out yourself???
[edit: and why do you cross-post and ask the same questions multiple times within days? if the answer is that urgent for you, i even less understand, why you don't simply try it yourself] |
|
Back to top |
|
lo_fye Smarty Rookie
Joined: 14 Nov 2003 Posts: 17 Location: Toronto Ontario / Zagreb Croatia
|
Posted: Tue Mar 30, 2004 9:30 am Post subject: you messju |
|
|
They don't try it themselves because they don't know what to try.
If you're unfamiliar with *nix, as many web developers are, they haven't got a clue what a user or group IS, let alone how to change group, or what a chmod, or chown is. _________________ geeks are cats who dig a certain kind of cool - ginsberg |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|