1834373 Members
2204 Online
110066 Solutions
New Discussion

Re: limiting cd command

 
Abdullatif M. Abdulla
Frequent Advisor

limiting cd command

I have limited cd command for a guest user using rksh as his starting program in the passwd file and the target directory as his home directory. The user now wants to dig down his subdirectories.but rksh doesnt allow that. Is there a way to let through rksh the user cd to his subdirectories.

Thanks
2 REPLIES 2
Mark Grant
Honored Contributor

Re: limiting cd command

You might find a better solution is to use "chroot". This will make the users home directory look like that is all there is on the system. The user can wander about all he/she want but never even see anythign above their home directory. The downside is that any commands they need to use will need to copied to their own private "bin" directory.
Never preceed any demonstration with anything more predictive than "watch this"
Karthik S S
Honored Contributor

Re: limiting cd command

Or you can install sudo and define a rule for that user such that the directory path that starts with /home/user_name only is allowed to be CDd.

-Karthik S S

For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn