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

mkdir: directory permissions.

 
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 -> Bugs
View previous topic :: View next topic  
Author Message
argoner
Smarty n00b


Joined: 07 Jul 2003
Posts: 1

PostPosted: Mon Jul 07, 2003 8:42 pm    Post subject: mkdir: directory permissions. Reply with quote

Hey,

A problem I found is that mkdir does not always set the "right" permission due to umask. The permission on files works fine (due to chmod).

When I've changed the $_dir_perms to 0777 (yes, I know, quite dangerous, but required), Smarty still creates directories with permission 755. I need to add a umask(0) before creating directories in order to get the "real" permission I needed. Yes, I did remember to reset to umask.

I don't know if the developer intened to make directories that follow the umask rule. But i need the permission to 777 so Smarty can write files to the directory since script is ran as the user "nobody" (and I do not belong to that group).
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Mon Jul 07, 2003 9:06 pm    Post subject: Reply with quote

maybe it's worth an faq entry, but honoring the umask is 100% correct behaviour for smarty (as for any other php-lib/thing/application).
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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 -> Bugs 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