-3

I have folder /sftp/xyz, need to give download and upload permission for 'xyz' folder for user 'abc'.

User 'abc' should access only the folder /sftp/xyz.

I tried so many things but now the user 'abc' is able to access /home/, /sftp/ also able to edit files. Please help.

2
  • We can't guess what the system's current state is.
    – user143703
    Jul 27, 2017 at 6:16
  • Why don't you just set that user's home dir to /stfp/xyz ? Jul 27, 2017 at 7:52

1 Answer 1

0

This is because user abc has a home directory in /home, so they implicitly have access to that directory. If you want that user to only have access to /sftp/xyz, then make that their home directory and remove permissions to every other directory.

Using ACLs (Access Control Lists) is another option, but not recommended because they are definitely not necessary in this situation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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