How to limit a user to his home directory and can't even cd to other directory


#1

hi guys
i want to limit a user to see just his home directory and not upper directories.
i use setfacl but it didnot work, maybe wrong commands i used. although with setfacl users have access to upper files with cat and vi too that i dont want this .
how can i do that,please help me.


#2

Normally user have access to view upper directories and also he have access to view the content of the files which are present in those upper directories ( not all file for ex: grub.conf )

And restricting all those files are not recommended, you can restrict the file which are created by another user but not all the files in upper directories. Look at the below links for better idea

http://www.tecmint.com/manage-users-and-groups-in-linux/

http://www.tecmint.com/rhcsa-exam-manage-users-and-groups/2/

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/acls-setting.html


#3

Hi,

create user and assign “rbash” instead of “bash” for login…
see man page of bash