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?










share|improve this question


























    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?










    share|improve this question
























      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?










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 5 '12 at 5:08









      Arvin

      11




      11






















          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.






          share|improve this answer








          New contributor




          govind is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

























            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






            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








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            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

























            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.






            share|improve this answer








            New contributor




            govind is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.






















              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.






              share|improve this answer








              New contributor




              govind is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.




















                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.






                share|improve this answer








                New contributor




                govind is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                Symbolic links created using ln -s would not solve your problem. Instead use mount --bind as suggested in this answer on askubuntu.







                share|improve this answer








                New contributor




                govind is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                govind is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered Nov 19 at 16:46









                govind

                312




                312




                New contributor




                govind is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                govind is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                govind is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.
























                    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






                    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















                    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






                    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













                    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






                    share|improve this answer












                    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












                    share|improve this answer



                    share|improve this answer










                    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


















                    • 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


















                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                    Eduardo VII do Reino Unido