vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   secure my config.php (https://vborg.vbsupport.ru/showthread.php?t=157802)

Projekt German 09-14-2007 04:45 AM

secure my config.php
 
hey all -

I am looking to understand how I limit access to my config.php file but still let another user utilize the ftp.

thanks for your help

Dismounted 09-14-2007 08:05 AM

What? Do you mean you want to limit FTP access to your config.php file?

MjrGaelic 09-23-2007 05:10 PM

If you have root access to the server then move the config.php file out of you're root file system. if you're in /var/www/html/forum the put the actual config.php file into /var/www .

Then make a new config.php file and put in the code:
Code:

<?php require('/var/www/config.php'); ?>
You're FTP users should be jailed to the /var/www/html directory and thusly not able to chdir to www to read the contents of your config.php file.

Paul M 09-23-2007 09:34 PM

If you have open_basdir restrictions on your server you will [probably] need to update them to use that system.

Eikinskjaldi 09-23-2007 11:11 PM

Any of the decent ftp servers (e.g. pro or pure) allow you to set up virtual logins which have as their root an arbitrary directory. It's a few click setup if you have cpanel, and a bit of configuration otherwise.

You can use this to restrict users to a specific location, though it will include all subdirectories of the virtual root.


All times are GMT. The time now is 10:07 AM.

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.01020 seconds
  • Memory Usage 1,711KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete