Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

How to lock a user into his home folder in Ubuntu?

share|improve this question
Don't give them root access? – Phoshi Apr 24 '10 at 10:33

You could chroot their home directory, then they would not be able to see anything below that.

share|improve this answer
configuring a chroot jail isn't a simple (or space-efficient) process. – quack quixote Apr 24 '10 at 15:12

Considering that for directories the permissions bits do the following:

  • read: grants the ability to read the names of files in the directory.
  • write: grants the ability to modify entries in the directory.
  • execute: grants the ability to traverse its tree in order to access files or subdirectories.

you could change the permissions of the "others" user of the directories in the filesystem that you want to quarantine from the user.

While in theory this solution should work, I did not tested it and I can't say that there would be no problems involved.

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.