Article 5NBSS Restrict an account

Restrict an account

by
hatfani
from LinuxQuestions.org on (#5NBSS)
Hello everyone,

I have a server which my colleague from a different company (and network of course) needs to enter to and place his files to thorough SFTP.
however, I want him to have permission to that directory and only, and that he will have Read Execute and write permission on that directory.
The directory is /mnt/john.
I don't want him of course to see the other directories or anything else on the server.
I wanted to know what can I do to make it happen?
Is the Restricted bash the best option, is there any other solution? what should I note before giving him that option?

Thank you!latest?d=yIl2AUoC8zA latest?i=KqPDkbHPYnE:HgsYvNntfOg:F7zBnMy latest?i=KqPDkbHPYnE:HgsYvNntfOg:V_sGLiP latest?d=qj6IDK7rITs latest?i=KqPDkbHPYnE:HgsYvNntfOg:gIN9vFwKqPDkbHPYnE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments