Go Back   HostGator Peer Support Forums > General Discussion > Webhosting

Notices

Reply
 
Thread Tools
  #1  
Old 08-29-2005, 07:59 AM
js_thind js_thind is offline
Hatchling Croc
 
Join Date: Aug 2005
Posts: 6
Question Password protect a sub-folder for FTP

Hello,

I don't know if this is possible or not.

Root Folder
|
|--- Sub-folder 1
|
|--- Sub-folder 2

I want to allow FTP access to all files in "Root Folder" but do not want the person to have FTP access to "Sub-Folder 1" and "Sub-Folder 2".

I would appreciate any help on this.
Reply With Quote
  #2  
Old 08-29-2005, 08:11 AM
mellowj's Avatar
mellowj mellowj is offline
Hatchling Croc
 
Join Date: Aug 2005
Location: United Kingdom
Posts: 24
Default Re: Password protect a sub-folder for FTP

hey when you say root access you mean public_html access?

the only way around it i can think of would be to create the folders in real root which is /home/YOUR_USER_NAME/ you could then create shortcuts to them in your public_html folder, however im not sure if its a huge security risk or not or even if it would work :S
Reply With Quote
  #3  
Old 08-29-2005, 10:25 AM
MachineDog MachineDog is offline
Royal Croc
 
Join Date: Jul 2005
Location: Somewhere in the everglades.
Posts: 513
Default Re: Password protect a sub-folder for FTP

Actually, js_third. This is something that can not be done by FTP. .htaccess works with http. On FTP it's a completely differant daemon. Those sub-folders will have to be made in a differant directory. If you allow access to the root folder you'll allow access to everything to annonymous. Security hazard. Basically it should work more like this.

- Root
|
+ Folder you'll give access to.
|
+ Folder you don't give acces to.

Can't do an easy to follow tree on here. Basically whatever directory you give access to all the subdirectory's will be given access aswell. You'll need to make a folder inside the root. Otherwise they'll be able to edit public_html aswell. BTW, Annonymous access is on public_ftp if I'm correct.
__________________

Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 09:33 PM.