Forum Moderators: mack

Message Too Old, No Replies

FTP access to a single directory

         

Blackcat_UK

2:08 pm on Jun 21, 2003 (gmt 0)

10+ Year Member



I want to set up a user to have FTP access to a folder under my main website. This folder would then be password protected so that only valid members can download the contents (I guess this can be done through the usual .htaccess and .htgroup methods).

Any suggestions on how I go about doing it? My host uses WEBppliance 3.1 for the admin interface, and I don't really want the user to have a full-blown user account which is the only option that this seems to offer.

I can't see any other way of creating users other than using the site admin page, and that creates mail accounts and home directories. I've noticed that if a user has a home directory, that they can browse up and down the document root structure at will, which is undesirable.

The security issue isn't critical, as it's only game mods in progress to be shared among the development team, but I'd still like to restrict ftp access to a single directory.

MWpro

5:43 pm on Jun 21, 2003 (gmt 0)

10+ Year Member



Have you considered some kind of content management system? That way they can upload stuff/make the changes to the site without having to use ftp at all.

Blackcat_UK

9:52 pm on Jun 21, 2003 (gmt 0)

10+ Year Member



Content management system? Sounds interesting - is that some form of php scripting? Tell me more :-)

It's ok - I'm looking at some now at phpfreaks - thanks for the pointer.

jatar_k

9:56 pm on Jun 21, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



what about using a scripting language (php maybe) to serve the page.

Have a user/password form on the page. They login, if it's correct, you can serve the links to download the content.

Fairly simple.

A Content Management System seems a little over the top for this particular situation.

Blackcat_UK

10:25 pm on Jun 21, 2003 (gmt 0)

10+ Year Member



After looking through the content management stuff, I agree jatar_k (but without the suggestion in the first place, I wouldn't have found the script that I did).

I found a script on Hotscripts that seems to offer the necessary functions. It's only a short script, but I figured that if the user is going to be logged in to the secured area anyway, through a separate set of php scripts, then a simple upload/download page will suffice.

I'll try it out tomorrow on my test server. Thanks for the help guys :-)

MWpro

3:32 pm on Jun 22, 2003 (gmt 0)

10+ Year Member



::shrugs:: I like to think of a content management system as anything that lets you login and edit stuff without ftp; doesn't have to be fancy.

But I'm glad it pointed you in the right direction :)

Blackcat_UK

4:15 pm on Jun 22, 2003 (gmt 0)

10+ Year Member



I do appreciate the response, but I'm having enough trouble getting the single page script uploader to work, without the trouble of multiple pages to cope with :-o

I can upload ok now, but am hitting the max file size limits in php. My host doesn't allow access to the php.ini file, so I've added a couple of lines to the .htaccess file to override. Just trying that now :-)