Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

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

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.