Limit FTP users to home directory on webmin





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I'm Using ProFTP on webmin, Ubuntu 14.04.



I need to make FTP accounts for clients, who are limited to just a specified folder with no other access to the server.



I would prefer if it was secure.



I originally had it working by creating a new user under system->users, I was able to log in but also able to navigate the directory tree.



I saw on another post that it was the incorrect way to do this.



If it helps, I'm trying to recreate FTP Accounts -> New User on cPanel. Like



Thanks for the help!










share|improve this question































    0















    I'm Using ProFTP on webmin, Ubuntu 14.04.



    I need to make FTP accounts for clients, who are limited to just a specified folder with no other access to the server.



    I would prefer if it was secure.



    I originally had it working by creating a new user under system->users, I was able to log in but also able to navigate the directory tree.



    I saw on another post that it was the incorrect way to do this.



    If it helps, I'm trying to recreate FTP Accounts -> New User on cPanel. Like



    Thanks for the help!










    share|improve this question



























      0












      0








      0








      I'm Using ProFTP on webmin, Ubuntu 14.04.



      I need to make FTP accounts for clients, who are limited to just a specified folder with no other access to the server.



      I would prefer if it was secure.



      I originally had it working by creating a new user under system->users, I was able to log in but also able to navigate the directory tree.



      I saw on another post that it was the incorrect way to do this.



      If it helps, I'm trying to recreate FTP Accounts -> New User on cPanel. Like



      Thanks for the help!










      share|improve this question
















      I'm Using ProFTP on webmin, Ubuntu 14.04.



      I need to make FTP accounts for clients, who are limited to just a specified folder with no other access to the server.



      I would prefer if it was secure.



      I originally had it working by creating a new user under system->users, I was able to log in but also able to navigate the directory tree.



      I saw on another post that it was the incorrect way to do this.



      If it helps, I'm trying to recreate FTP Accounts -> New User on cPanel. Like



      Thanks for the help!







      server ftp sftp webmin






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 8 '14 at 22:59









      muru

      1




      1










      asked Aug 8 '14 at 17:54









      AnthonyAnthony

      10613




      10613






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I am not sure how to configure ProFTPD from webmin, but if you can SSH to the system (or access a terminal), edit /etc/proftpd/proftpd.conf to change the DefaultRoot directive to:



          # Use this to jail all users in their homes 
          DefaultRoot ~


          Restart the ftp service:



          sudo service proftpd restart


          You can provide exceptions to certain users/groups.






          share|improve this answer
























          • If I do this and try to login, I get 'connection refused' for all users.

            – Anthony
            Aug 9 '14 at 2:11











          • @Anthony is the FTP service running? Check using service proftpd status. Can you post your configuration file to paste.ubuntu.com and add a link in the question? A Connection Refused indicates that the service isn't running, and if that happened after editing the configuration, some mistake might have happened.

            – muru
            Aug 9 '14 at 2:15











          • paste.ubuntu.com/7994212 Basically what im doing is creating a system user in system->add user in webmin, with a home directory to a specific folder. Then trying to log in, works, but can navigate dir tree. Then I uncomment DefaultRoot, restart the service, and try to log in with the same user and get 'connection refused' each time.

            – Anthony
            Aug 9 '14 at 2:43












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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',
          autoActivateHeartbeat: false,
          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%2faskubuntu.com%2fquestions%2f508710%2flimit-ftp-users-to-home-directory-on-webmin%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I am not sure how to configure ProFTPD from webmin, but if you can SSH to the system (or access a terminal), edit /etc/proftpd/proftpd.conf to change the DefaultRoot directive to:



          # Use this to jail all users in their homes 
          DefaultRoot ~


          Restart the ftp service:



          sudo service proftpd restart


          You can provide exceptions to certain users/groups.






          share|improve this answer
























          • If I do this and try to login, I get 'connection refused' for all users.

            – Anthony
            Aug 9 '14 at 2:11











          • @Anthony is the FTP service running? Check using service proftpd status. Can you post your configuration file to paste.ubuntu.com and add a link in the question? A Connection Refused indicates that the service isn't running, and if that happened after editing the configuration, some mistake might have happened.

            – muru
            Aug 9 '14 at 2:15











          • paste.ubuntu.com/7994212 Basically what im doing is creating a system user in system->add user in webmin, with a home directory to a specific folder. Then trying to log in, works, but can navigate dir tree. Then I uncomment DefaultRoot, restart the service, and try to log in with the same user and get 'connection refused' each time.

            – Anthony
            Aug 9 '14 at 2:43
















          0














          I am not sure how to configure ProFTPD from webmin, but if you can SSH to the system (or access a terminal), edit /etc/proftpd/proftpd.conf to change the DefaultRoot directive to:



          # Use this to jail all users in their homes 
          DefaultRoot ~


          Restart the ftp service:



          sudo service proftpd restart


          You can provide exceptions to certain users/groups.






          share|improve this answer
























          • If I do this and try to login, I get 'connection refused' for all users.

            – Anthony
            Aug 9 '14 at 2:11











          • @Anthony is the FTP service running? Check using service proftpd status. Can you post your configuration file to paste.ubuntu.com and add a link in the question? A Connection Refused indicates that the service isn't running, and if that happened after editing the configuration, some mistake might have happened.

            – muru
            Aug 9 '14 at 2:15











          • paste.ubuntu.com/7994212 Basically what im doing is creating a system user in system->add user in webmin, with a home directory to a specific folder. Then trying to log in, works, but can navigate dir tree. Then I uncomment DefaultRoot, restart the service, and try to log in with the same user and get 'connection refused' each time.

            – Anthony
            Aug 9 '14 at 2:43














          0












          0








          0







          I am not sure how to configure ProFTPD from webmin, but if you can SSH to the system (or access a terminal), edit /etc/proftpd/proftpd.conf to change the DefaultRoot directive to:



          # Use this to jail all users in their homes 
          DefaultRoot ~


          Restart the ftp service:



          sudo service proftpd restart


          You can provide exceptions to certain users/groups.






          share|improve this answer













          I am not sure how to configure ProFTPD from webmin, but if you can SSH to the system (or access a terminal), edit /etc/proftpd/proftpd.conf to change the DefaultRoot directive to:



          # Use this to jail all users in their homes 
          DefaultRoot ~


          Restart the ftp service:



          sudo service proftpd restart


          You can provide exceptions to certain users/groups.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 8 '14 at 23:05









          murumuru

          1




          1













          • If I do this and try to login, I get 'connection refused' for all users.

            – Anthony
            Aug 9 '14 at 2:11











          • @Anthony is the FTP service running? Check using service proftpd status. Can you post your configuration file to paste.ubuntu.com and add a link in the question? A Connection Refused indicates that the service isn't running, and if that happened after editing the configuration, some mistake might have happened.

            – muru
            Aug 9 '14 at 2:15











          • paste.ubuntu.com/7994212 Basically what im doing is creating a system user in system->add user in webmin, with a home directory to a specific folder. Then trying to log in, works, but can navigate dir tree. Then I uncomment DefaultRoot, restart the service, and try to log in with the same user and get 'connection refused' each time.

            – Anthony
            Aug 9 '14 at 2:43



















          • If I do this and try to login, I get 'connection refused' for all users.

            – Anthony
            Aug 9 '14 at 2:11











          • @Anthony is the FTP service running? Check using service proftpd status. Can you post your configuration file to paste.ubuntu.com and add a link in the question? A Connection Refused indicates that the service isn't running, and if that happened after editing the configuration, some mistake might have happened.

            – muru
            Aug 9 '14 at 2:15











          • paste.ubuntu.com/7994212 Basically what im doing is creating a system user in system->add user in webmin, with a home directory to a specific folder. Then trying to log in, works, but can navigate dir tree. Then I uncomment DefaultRoot, restart the service, and try to log in with the same user and get 'connection refused' each time.

            – Anthony
            Aug 9 '14 at 2:43

















          If I do this and try to login, I get 'connection refused' for all users.

          – Anthony
          Aug 9 '14 at 2:11





          If I do this and try to login, I get 'connection refused' for all users.

          – Anthony
          Aug 9 '14 at 2:11













          @Anthony is the FTP service running? Check using service proftpd status. Can you post your configuration file to paste.ubuntu.com and add a link in the question? A Connection Refused indicates that the service isn't running, and if that happened after editing the configuration, some mistake might have happened.

          – muru
          Aug 9 '14 at 2:15





          @Anthony is the FTP service running? Check using service proftpd status. Can you post your configuration file to paste.ubuntu.com and add a link in the question? A Connection Refused indicates that the service isn't running, and if that happened after editing the configuration, some mistake might have happened.

          – muru
          Aug 9 '14 at 2:15













          paste.ubuntu.com/7994212 Basically what im doing is creating a system user in system->add user in webmin, with a home directory to a specific folder. Then trying to log in, works, but can navigate dir tree. Then I uncomment DefaultRoot, restart the service, and try to log in with the same user and get 'connection refused' each time.

          – Anthony
          Aug 9 '14 at 2:43





          paste.ubuntu.com/7994212 Basically what im doing is creating a system user in system->add user in webmin, with a home directory to a specific folder. Then trying to log in, works, but can navigate dir tree. Then I uncomment DefaultRoot, restart the service, and try to log in with the same user and get 'connection refused' each time.

          – Anthony
          Aug 9 '14 at 2:43


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f508710%2flimit-ftp-users-to-home-directory-on-webmin%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

          How did Captain America manage to do this?

          迪纳利

          南乌拉尔铁路局