Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 9th, 2004, 11:59 AM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default changing root path in file manager

I want to change the root path for the directory to another folder, I know this needs to be modified in the folderPath routine, however exactly where? The issue is that I don't want people who can ftp files up to the site to be able to "see" the original root directory as the default.

 
Old November 10th, 2004, 10:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You should probably lock people down to one folder only. If you let them change folders, they can still get you into trouble.

I think it would be good to add a new permission to control which users will have access to the File Manager.

This requires more than 1 change. You have to scrub the File Manager project and make sure you change everything related to chaning directories.

Make sure you set up security on this module. I can't even guess how many people don't understand Windows authentication, and have left this module wide open for use by anyone! The smartest choice is to change it to use Forms authentication, so it will behave like the other modules.

Eric
 
Old November 11th, 2004, 11:48 AM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Exactly, but the issue is that I don't want people in the actual root directory of the application which is there by default. So where are those changes made, in the folderPath sub routine or somewhere else?

 
Old November 11th, 2004, 04:21 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When you give them a link to the File Manager, just specify the folder in the link:
http://www.thephile.com/Modules/File...?Folder=/Books

Of course they can still change to the root folder if you don't disable it.

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Linked Table Manager path in Visual Basic AstridVM BOOK: Access 2003 VBA Programmer's Reference 3 December 29th, 2006 10:34 AM
Manager/Admin context path problem Vegtabill BOOK: Professional Apache Tomcat 1 October 24th, 2005 11:44 PM
Fixing virtual directory root path issue seanmayhew BOOK: ASP.NET Website Programming Problem-Design-Solution 1 November 10th, 2004 10:45 PM
Changing default path for Visual Studio .Net help jlecain VS.NET 2002/2003 1 December 23rd, 2003 05:07 AM
.htaccess file in root folder hopenpray Beginning PHP 1 September 8th, 2003 02:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.