Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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

share|improve this answer
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.