vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   Safe Mode / Attachments (https://vborg.vbsupport.ru/showthread.php?t=211090)

Paul M 04-18-2009 11:58 PM

Why dont you want to deactivate safe mode ?

Its completely pointless on a dedicated server.

In fact, SM is pretty much obsolete anyway, and has been removed in php 6.

snakes1100 04-19-2009 03:41 AM

Quote:

Originally Posted by Angel-Wings (Post 1794166)
Images != attachments ;)
Let this user own the PHP scripts - sorry - who's doing such stupid things should care about some much more important things first than thinking about where to store attachments.

Why would we change ownership on the php files?

Now your jumping to conclusions... I never said anything about changing ownership of files.

Angel-Wings 04-19-2009 02:16 PM

Safe Mode uses an UID check / GID can be enabled as well so if the UID of the calling PHP script doesn't match the UID of the directory it should write the process will fail.
And - that should be regarded as "must have" - the UID should be different from the UID Apache or more specific PHP is running under. Though this also means new directories are created with the "PHP UID" - not the "Files UID" if these terms can be used and due of the Safe Mode limitations - well

php.net/manual/en/features.safe-mode.php

Regarding to the entire Safe Mode - Suhosin / mod_sec / suExec might be a better solution :)


All times are GMT. The time now is 07:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01069 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete