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.
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
create user and assign “rbash” instead of “bash” for login…
see man page of bash