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!
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!