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

1

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

Alexander

Posted 2010-04-24T09:34:30.440

Reputation: 49

2Don't give them root access? – Phoshi – 2010-04-24T10:33:17.897

Answers

2

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

spowers

Posted 2010-04-24T09:34:30.440

Reputation: 1 065

configuring a chroot jail isn't a simple (or space-efficient) process.

– quack quixote – 2010-04-24T15:12:18.387

Any tutorial about chroot approach? @spowers – alper – 2018-05-11T11:25:20.627

1

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.

mrucci

Posted 2010-04-24T09:34:30.440

Reputation: 8 398