One way, is to create the user and remove the 'x' permission from his HOME directory! then he won't be able to change his home directory to somewhere above that but he would be able to create subdirectories and access them!
another way is to make the default shell to this user as Rsh shell! then he will be more restricted and you will have more control on what he does!
Not fool proof, and I wouldn't do it, but what about a script called cd in the users home directory (make sure home dir is in users path )
vi cd
/usr/bin/cd "$@"
case $(whoami) in
username) cd $HOME
;;
esac
then chmod 555 cd
also see
man chroot
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.