Linking a folder to another folder (FTP) (LINUX)
up vote
0
down vote
favorite
I'm using VSFTP and jailed my users into a certain directory under their home.
Example: /home/$user/downloads
What should i do, if i want to add an additional folder under the /downloads folder that links them to an external folder on another drive?
linux ftp vsftpd
add a comment |
up vote
0
down vote
favorite
I'm using VSFTP and jailed my users into a certain directory under their home.
Example: /home/$user/downloads
What should i do, if i want to add an additional folder under the /downloads folder that links them to an external folder on another drive?
linux ftp vsftpd
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using VSFTP and jailed my users into a certain directory under their home.
Example: /home/$user/downloads
What should i do, if i want to add an additional folder under the /downloads folder that links them to an external folder on another drive?
linux ftp vsftpd
I'm using VSFTP and jailed my users into a certain directory under their home.
Example: /home/$user/downloads
What should i do, if i want to add an additional folder under the /downloads folder that links them to an external folder on another drive?
linux ftp vsftpd
linux ftp vsftpd
asked Jan 5 '12 at 5:08
Arvin
11
11
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
3
down vote
Symbolic links created using ln -s
would not solve your problem. Instead use mount --bind
as suggested in this answer on askubuntu.
New contributor
add a comment |
up vote
0
down vote
In principle you can link this folder with a symbolic link.
$ ln -s /path/to/drive symbolicfoldername
But you still need to set the permissions for the users correct, which maybe your main concern
thanks Bernhard. Which permission should i set for the user to access said folder? chown and / or chmod or is there something else?
– Arvin
Jan 5 '12 at 9:24
chmod should be enough. Supposed all those users are in the same group, you can give this group read/write access to the drive. I am not sure if you are using a common folder for all users, or if you want a separate folder on a per user basis. The principle is the same.
– Bernhard
Jan 5 '12 at 12:59
Tried it Bernhard. Apparently, it works when i'm doing it in the shell. I am able to browse to the designated folder through the symbolic folder. However, if i were to connect to the server via FTP, then the folder is shown, however once i navigate to the folder, its empty. There isn't anything in the folder whereas I could see the contents if I were to connect to it via shell / ssh.
– Arvin
Jan 6 '12 at 16:47
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
Symbolic links created using ln -s
would not solve your problem. Instead use mount --bind
as suggested in this answer on askubuntu.
New contributor
add a comment |
up vote
3
down vote
Symbolic links created using ln -s
would not solve your problem. Instead use mount --bind
as suggested in this answer on askubuntu.
New contributor
add a comment |
up vote
3
down vote
up vote
3
down vote
Symbolic links created using ln -s
would not solve your problem. Instead use mount --bind
as suggested in this answer on askubuntu.
New contributor
Symbolic links created using ln -s
would not solve your problem. Instead use mount --bind
as suggested in this answer on askubuntu.
New contributor
New contributor
answered Nov 19 at 16:46
govind
312
312
New contributor
New contributor
add a comment |
add a comment |
up vote
0
down vote
In principle you can link this folder with a symbolic link.
$ ln -s /path/to/drive symbolicfoldername
But you still need to set the permissions for the users correct, which maybe your main concern
thanks Bernhard. Which permission should i set for the user to access said folder? chown and / or chmod or is there something else?
– Arvin
Jan 5 '12 at 9:24
chmod should be enough. Supposed all those users are in the same group, you can give this group read/write access to the drive. I am not sure if you are using a common folder for all users, or if you want a separate folder on a per user basis. The principle is the same.
– Bernhard
Jan 5 '12 at 12:59
Tried it Bernhard. Apparently, it works when i'm doing it in the shell. I am able to browse to the designated folder through the symbolic folder. However, if i were to connect to the server via FTP, then the folder is shown, however once i navigate to the folder, its empty. There isn't anything in the folder whereas I could see the contents if I were to connect to it via shell / ssh.
– Arvin
Jan 6 '12 at 16:47
add a comment |
up vote
0
down vote
In principle you can link this folder with a symbolic link.
$ ln -s /path/to/drive symbolicfoldername
But you still need to set the permissions for the users correct, which maybe your main concern
thanks Bernhard. Which permission should i set for the user to access said folder? chown and / or chmod or is there something else?
– Arvin
Jan 5 '12 at 9:24
chmod should be enough. Supposed all those users are in the same group, you can give this group read/write access to the drive. I am not sure if you are using a common folder for all users, or if you want a separate folder on a per user basis. The principle is the same.
– Bernhard
Jan 5 '12 at 12:59
Tried it Bernhard. Apparently, it works when i'm doing it in the shell. I am able to browse to the designated folder through the symbolic folder. However, if i were to connect to the server via FTP, then the folder is shown, however once i navigate to the folder, its empty. There isn't anything in the folder whereas I could see the contents if I were to connect to it via shell / ssh.
– Arvin
Jan 6 '12 at 16:47
add a comment |
up vote
0
down vote
up vote
0
down vote
In principle you can link this folder with a symbolic link.
$ ln -s /path/to/drive symbolicfoldername
But you still need to set the permissions for the users correct, which maybe your main concern
In principle you can link this folder with a symbolic link.
$ ln -s /path/to/drive symbolicfoldername
But you still need to set the permissions for the users correct, which maybe your main concern
answered Jan 5 '12 at 8:06
Bernhard
932716
932716
thanks Bernhard. Which permission should i set for the user to access said folder? chown and / or chmod or is there something else?
– Arvin
Jan 5 '12 at 9:24
chmod should be enough. Supposed all those users are in the same group, you can give this group read/write access to the drive. I am not sure if you are using a common folder for all users, or if you want a separate folder on a per user basis. The principle is the same.
– Bernhard
Jan 5 '12 at 12:59
Tried it Bernhard. Apparently, it works when i'm doing it in the shell. I am able to browse to the designated folder through the symbolic folder. However, if i were to connect to the server via FTP, then the folder is shown, however once i navigate to the folder, its empty. There isn't anything in the folder whereas I could see the contents if I were to connect to it via shell / ssh.
– Arvin
Jan 6 '12 at 16:47
add a comment |
thanks Bernhard. Which permission should i set for the user to access said folder? chown and / or chmod or is there something else?
– Arvin
Jan 5 '12 at 9:24
chmod should be enough. Supposed all those users are in the same group, you can give this group read/write access to the drive. I am not sure if you are using a common folder for all users, or if you want a separate folder on a per user basis. The principle is the same.
– Bernhard
Jan 5 '12 at 12:59
Tried it Bernhard. Apparently, it works when i'm doing it in the shell. I am able to browse to the designated folder through the symbolic folder. However, if i were to connect to the server via FTP, then the folder is shown, however once i navigate to the folder, its empty. There isn't anything in the folder whereas I could see the contents if I were to connect to it via shell / ssh.
– Arvin
Jan 6 '12 at 16:47
thanks Bernhard. Which permission should i set for the user to access said folder? chown and / or chmod or is there something else?
– Arvin
Jan 5 '12 at 9:24
thanks Bernhard. Which permission should i set for the user to access said folder? chown and / or chmod or is there something else?
– Arvin
Jan 5 '12 at 9:24
chmod should be enough. Supposed all those users are in the same group, you can give this group read/write access to the drive. I am not sure if you are using a common folder for all users, or if you want a separate folder on a per user basis. The principle is the same.
– Bernhard
Jan 5 '12 at 12:59
chmod should be enough. Supposed all those users are in the same group, you can give this group read/write access to the drive. I am not sure if you are using a common folder for all users, or if you want a separate folder on a per user basis. The principle is the same.
– Bernhard
Jan 5 '12 at 12:59
Tried it Bernhard. Apparently, it works when i'm doing it in the shell. I am able to browse to the designated folder through the symbolic folder. However, if i were to connect to the server via FTP, then the folder is shown, however once i navigate to the folder, its empty. There isn't anything in the folder whereas I could see the contents if I were to connect to it via shell / ssh.
– Arvin
Jan 6 '12 at 16:47
Tried it Bernhard. Apparently, it works when i'm doing it in the shell. I am able to browse to the designated folder through the symbolic folder. However, if i were to connect to the server via FTP, then the folder is shown, however once i navigate to the folder, its empty. There isn't anything in the folder whereas I could see the contents if I were to connect to it via shell / ssh.
– Arvin
Jan 6 '12 at 16:47
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f374843%2flinking-a-folder-to-another-folder-ftp-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown