"hide" directories from user

Core FTP Server questions and answers
Post Reply
leany
Posts: 5
Joined: Wed Oct 07, 2015 4:10 pm

"hide" directories from user

Post by leany »

Hi: I have root directory with all my user folders in it. Each user is set up with "lock user in home directory" selected...so far so good.

I have a new user that needs to access multiple directories in the root. I am able to set them up with the root itself as their home, and then add specific permissions for each directory they need access to, which works fine.

However, when the user logs in, they see every directory in the root, even though they can only access a few of them.

Is there any way to prevent them from seeing the other directories? So when they log in, their root is "empty", but if they know the correct subpath, they can get into that folder? In other words:

/ -- empty
/dir1/ -- they can access this
/dir2/ -- "access denied"
/dir3/ -- they can access this
cp
Posts: 124
Joined: Sun Sep 11, 2011 5:18 am

Post by cp »

The only way would be through the use of virtual directories.

www.coreftp.com/server/help/Virtual_Paths.htm
leany
Posts: 5
Joined: Wed Oct 07, 2015 4:10 pm

Post by leany »

[quote="cp"]The only way would be through the use of virtual directories.

www.coreftp.com/server/help/Virtual_Paths.htm[/quote]

Thanks CP...I re-read the virtual paths help, but I'm not clear on how to implement it for a specific user. It says:

[quote]Mapped Path: The location of where you want the virtual path to be displayed in directory listings.

%HOME% -- list the virtual path in the domain home directory.
%USER% -- list the virtual path in the user home directory.

In addition, the user will require permissions to any virtual directories you add in the user's properties. [/quote]

If I want to map several other directories (that are already roots for specific users), into a new user's home directory (and only that user), will this work?

Or if I create a virtual path using the syntax:

[color=blue]%USER%\dir1[/color]

will this show "dir1" in every user's root?

Just to recap, I have a number of directories in the main FTP root that are root directories for specific users. What I'm trying to do is create a new "super-user" that would have access to multiple directories, but I don't want that user to be able to see every directory in the main FTP root.
cp
Posts: 124
Joined: Sun Sep 11, 2011 5:18 am

Post by cp »

physical path - c:\ftp\other-directory\
mapped path - c:\ftp\username\ (where you want the virtual directory to be displayed)

Its a pain but you will need to do this for each path you want to give the user access to. Add permissions for each physical path and don't give them access to c:\ftp (in this case).
leany
Posts: 5
Joined: Wed Oct 07, 2015 4:10 pm

Post by leany »

[quote="cp"]physical path - c:\ftp\other-directory\
mapped path - c:\ftp\username\ (where you want the virtual directory to be displayed)

Its a pain but you will need to do this for each path you want to give the user access to. Add permissions for each physical path and don't give them access to c:\ftp (in this case).[/quote]

Thanks...I will give this a try!
Post Reply