Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

CHMOD uses with Smarty

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
user2222
Smarty Rookie


Joined: 18 Apr 2003
Posts: 7

PostPosted: Fri Jul 25, 2003 4:07 pm    Post subject: CHMOD uses with Smarty Reply with quote

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 Arrow Rolling Eyes
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Fri Jul 25, 2003 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
lo_fye
Smarty Rookie


Joined: 14 Nov 2003
Posts: 17
Location: Toronto Ontario / Zagreb Croatia

PostPosted: Tue Mar 30, 2004 9:30 am    Post subject: you messju Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP