Create new SFTP user with limited access to the server's folders

Posted February 6, 2014 4.9k views
I'd like to create SFTP users to let others access specific folders of my server. I'm running centOS.
1 comment
  • I am also running centOS. I would like to know how to setup a new SFTP user with access to only one directory of my server. However, FMCB’s answer to this question is confusing to me. I have never used centOS nor any other server OS. So I have NO idea how to “create a group” nor “assign a user to a group”. I’m sorry but can anyone put this in layman’s terms or direct me to some detail instructions? I’ve only been using DO for a couple days and this is all very new to me.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer
general guidelines-->

1- create a group and grant permissions you want to this group.

2- add users to that group you made.

if each user will be given different permission, then it is always better to create multiple group with primary group so that the secondary can be controlled by the primary one.