PDA

View Full Version : Adding user to upload to FTP


Charlie98902
12-14-2009, 09:05 PM
As the title say I want to allow a user to upload to a folder just for him. He does reviews on PC hardware so I will make a folder just for him but I want to restrict him from the rest at the same time in case an accident happens. Is this possible? How would I go about doing this?

BBR-APBT
12-14-2009, 10:20 PM
I would personally make a secure upload script for him to use behind htaccess pass dir.

This way he only has access to upload.

Charlie98902
12-14-2009, 10:35 PM
Didn't know about the htaccess ordeal but in my cpanel it appears I can create a ftp account and also restrict it to one folder if I wish? as I have this .... Would it restrict to the predifined folder and not the whole FTP? This is new to me so please be gentle if I don't word right it's cause I don't know the lingo.

BBR-APBT
12-14-2009, 10:37 PM
I am sure it will if that is what it says.

Charlie98902
12-14-2009, 10:47 PM
So I just add a folder in the html directory then set up the user account then they will have access to that folder and any sub folders in that folder only right?

BBR-APBT
12-14-2009, 10:51 PM
I am not sure I don't use cPanel. It may make the dir for it when you enter the name in that box.

Charlie98902
12-14-2009, 10:53 PM
I will look into this tomorrow and try it out and see as I can make a new account just for me as a test then redo it for the user I want to have access to one folder and any sub folders for that folder. Thanks.

--------------- Added 1260840202 at 1260840202 ---------------

So other that use CPanel yes it make use of that directory plus any folder made under the initial setting up so the root directory seems protected to not have access. Will test more tomorrow.

James Birkett
12-17-2009, 02:05 PM
If you create a folder named "test" inside public_html he would be allowed access to "test" and any sub-folders inside "test".

Of course if you're allowing him to upload PHP and such, you are asking for trouble :rolleyes: