Create user who can't list another directory

Hi!
I've problem, I create user ( directory: /home/jamjam/ ) on my dedicated server but he can list and viev another directory ( /root, /home/documents ).

I realy don't want to user list another directory (he must viev /home/jamjam as he root directory)

I read handbook but i not got desired information.


How I do this?
 
Best way to restrict is chroot.

'Permissions' way:
For example you add user "jamjam" in group "users"
chmod/chown for
Code:
/root/  root: root 700
/home/  root:users 550
/home/jamjam/ jamjam:users 700
So users can use their homedir and cannot see others' home or root home
 
Back
Top