
23rd August 2005, 15:27
|
|
Senior Member
|
|
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 3 Times in 2 Posts
|
|
PHP Safe Mode & Directory Permissions
I have 2 questions.
1. Why did it automatically set Safe mode ON, on all my Virtual Servers?
2. Why are the directories default CHMOD 775 and files CHMOD 664?
I'm a bit paranoid about the chmod values. How can I change to CHMOD 755 for folders and CHMOD 644 for files when I create a new Virtual Servers?
|

23rd August 2005, 15:48
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Quote:
|
Why did it automatically set Safe mode ON, on all my Virtual Servers?
|
Do you mean that the PHP Safe Mode checkbox is already checked when you create a new web site? Then I guess you've defined a hosting template that has Safe Mode on.
Otherwise I think you have Safe Mode on in your php.ini.
Quote:
|
Why are the directories default CHMOD 775 and files CHMOD 664?
|
That's because under Sendmail procmail recipes aren't executed if the parent directories don't have 775. I think it's different with Postfix, but I'm not 100% sure, so I wouldn't try to change the permissions as your mail delivery might fail afterwards.
|

23rd August 2005, 15:55
|
|
Senior Member
|
|
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 3 Times in 2 Posts
|
|
Quote:
|
Do you mean that the PHP Safe Mode checkbox is already checked when you create a new web site?
|
Yea, thats why. I wasn't paying attention with checking the 3 domain's feature boxes. This is a new box Debian box this time  . Thanks for reminding me that I need thicker glasses.
Quote:
|
That's because under Sendmail procmail recipes aren't executed if the parent directories don't have 775. I think it's different with Postfix, but I'm not 100% sure, so I wouldn't try to change the permissions as your mail delivery might fail afterwards.
|
I'm using postfix and isn't it a secuiry risk to have the "web" folder with that type of permission? I'm not claiming it is. It's just I'm used to having folder at 755 and files at 644.
|

23rd August 2005, 16:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 19,805
Thanks: 285
Thanked 1,805 Times in 1,357 Posts
|
|
Quote:
|
Originally Posted by domino
I'm using postfix and isn't it a secuiry risk to have the "web" folder with that type of permission? I'm not claiming it is. It's just I'm used to having folder at 755 and files at 644.
|
Every web has ist own group and the folder is owned by that group.
|

23rd August 2005, 18:53
|
|
Senior Member
|
|
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 3 Times in 2 Posts
|
|
If no one else objects I'll take your word for it  . It's just that a certain Gallery script will not let me continue the installation unless the "web" permissions are set to 755.  . So dump the script?
|

23rd August 2005, 19:48
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Quote:
|
Originally Posted by domino
If no one else objects I'll take your word for it  . It's just that a certain Gallery script will not let me continue the installation unless the "web" permissions are set to 755.  . So dump the script?
|
You can chmod the web folder to 755.
|

24th August 2005, 04:44
|
|
Senior Member
|
|
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 3 Times in 2 Posts
|
|
Quote:
|
You can chmod the web folder to 755.
|
I will do that. Is chmod 775 / 664 a requirement for postfix? If no, where can I set the perams for changing it? I want to make it a default 755 folders / 644 files whenever I create an new site in ISPC and upload/create things through FTP client. Is that possible given the current environment and applications installed?
|

25th August 2005, 11:17
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Quote:
|
Originally Posted by domino
I will do that. Is chmod 775 / 664 a requirement for postfix? If no, where can I set the perams for changing it? I want to make it a default 755 folders / 644 files whenever I create an new site in ISPC and upload/create things through FTP client. Is that possible given the current environment and applications installed?
|
You can change the function make docroot() in /root/ispconfig/scripts/lib/config.lib.php. There all chmods are done.
|

25th August 2005, 11:28
|
|
Senior Member
|
|
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 3 Times in 2 Posts
|
|
Thank you for the pointing it out. I have my peice of mind now that my idiot friends and brother can install whatever they like  .
PS. Oh I sure wished quick reply was enabled on this board
|

19th December 2005, 17:18
|
|
Senior Member
|
|
Join Date: Oct 2005
Posts: 167
Thanks: 5
Thanked 1 Time in 1 Post
|
|
Quote:
|
Originally Posted by domino
Thank you for the pointing it out. I have my peice of mind now that my idiot friends and brother can install whatever they like  .
PS. Oh I sure wished quick reply was enabled on this board 
|
It is! Click the button to the right of the Quote button
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 09:14.
|
Recent comments
1 day 42 min ago
1 day 5 hours ago
1 day 6 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 12 hours ago
1 day 13 hours ago