Limit bash/sh user's access to a specific directory

Hello Team,

I have Solaris 10 u6
I have a user test1 using bash that belong to the group staff.
I would like to restrict this user to navigate only in his home directory and his subfolders but not not move out to other directories.

How can I do it ?

Thanks in advance

The two obvious choices are to use a restricted shell (look at the -r option on the bash man page) and to use chroot . It sounds like rbash may be more restrictive than what you want and setting up access to the standard utilities and shared libraries needed in a chrooted environment might be harder than you would imagine at first glance. But, reading about these possibilities may help you find a working solution.