Is there any way of making a user only able to see and modificate his home folder? I am currently on arch linux.
Just explaining a little better, the user would not be able to see
/etc or any other system directories or folders from others
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You cannot usefully restrict interactive access to the system directories such as
/etc further than is already provided.
You can prevent a user from accessing anyone else's home folder simply by reducing the permissions on all home folders.
For example, if all users have their home directories under
/home then this command will lock the access rights down tightly
chmod go= /home/*
Don't forget that it needs to be run as the