I have a machine running Ubuntu 12.04 LTS with OpenSSH server installed. I have created a user with a jailed home account.
When I log in with the user's account, I can only access his home (duh).
In addition to the user's home folder, I would like to give the him read access to a particular partition (/Volumes/Storage
). How can I do this?
Best Answer
You will need to ensure that the chroot that the users is put in has access to the directory by bind mounting into the chroot tree:
The user will also need to have necessary filesystem permissions to read the data on the drive. The easiest way to accomplish this would be to put the user in a supplementary group that has ownership of the files (assuming standard 755 and 644 permissions).