How to disable cd to other folder for a user

How to disable user for cd to some another folders other than his folders.
AIX 5L 5.2

Thanks

Dilip.

I have an instance of 5L at the office. I'll have to look at it to verify that it works in 5L as it did in 4.3.3, but do a man on rksh (restricted shell). Changing directories is one of the things that you can disallow. I typically have a /usr/rkshbin directory that has links to the commands available to the user. Combine that with setting the users path in his/her .profile and allowing the group to read, but not own that file. Here's an excerpt from the man page:

rksh is used to set up login names and execution environ-
ments whose capabilities are more controlled than those of
the standard shell. The actions of rksh are identical to
those of ksh, except that the following are disallowed:

    o  changing directory \(see cd\(1\)\)

Cheers,

Keith