Is it possible to give someone FTP access to just one directory (and its subdirectories) and not all the directories of the webserver?
1 Answer
Yes, as long as your FTP Server software supports it (99.9% will).
Generally you should be able to configure folder-specific access in the "user management" section.
Just remember, that if you deny access to the root of the server, the user will not be able to access the sub-folders.
That is: CORRECT SETUP:
FTP_ROOT_FOLDER -- > Grant access to all
----> FTP_FOLDER_1 --> Grant access to user1
----> FTP_FODLER_2 --> Grant access to user2
INCORRECT SETUP:
FTP_ROOT_FOLDER --> No access
----> FTP_FOLDER_1 --> Grant access to user1
----> FTP_FOLDER_2 --> Grant access to user2
INCORRECT SETUP:
FTP_ROOT_FOLDER --> Grant access to all
----> FTP_FOLDER_1 --> Deny access to user1
---------> SUB_FOLDER_1 --> Grant access to user1
-
May be I didn't get it properly, but in your "correct setup" you're giving access to Root folder to all, doesn't that "all" include "user1", "user2"? What I wanted was user1 shouldn't be able to access root but just the "folder_1" Jul 18, 2011 at 14:13
-
When I say Grant All to root, it's a personal preference. The idea is that all users can see the listing of folders available, but access to the actual folders is limited. I've found that this makes things alot easier for users, unless you are willing to setup folder aliases for specific users.– akseliJul 19, 2011 at 6:49
-
Yeah, I think that I got, but what I'm still confused about is this line: "FTP_ROOT_FOLDER -- > Grant access to all" doesn't this mean that even user1 and user2 are getting access to "FTP_ROOT_FOLDER" Jul 20, 2011 at 8:41