Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So far I've set up an ssh server and added a user account using the GNOME "add user" dialog. Now login and sftp work, but I'd like to give this user read-only access to one of the folders in my /home directory. I should also note that I have an encrypted /home directory. I tried setting up a symbolic link to the folder, and then changing the permissions on the link, but that didn't seem to work. When I try to cd into that folder as that user, I get: Couldn't canonicalise: Permission denied.

share|improve this question

Just sync it to Ubuntu One and share it that way(you can share folders over U1).

Way easier than goofing around with how you're going to get your encrypted home to unlock if you're not logged in.

share|improve this answer

The only method I could imaging would work would be to keep that particular directory unencrypted. The only way I know how to do that is to keep it outside the homedir.

sudo mkdir -p /public/$USER
sudo chown $USER: /public/$USER
chmod 0744 /public/$USER
ln -s /public/$USER ~/public

Then copy your shared stuff into ~/public

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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