Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Users 1

Status
Not open for further replies.

biondo68

Technical User
Jul 4, 2003
103
IT
Hi

I'd like to create a user with a only the permissions RW in HOME directory and is not possibile tu change directory..

Any help is kindly appreciated!
Kind regards

Biondo68
 
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."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top