The cd command is built into the shell, so there is no /bin/cd.

Interesting story:  originally Ken and Dennis didn't realize that cd needed to 
be built into the shell.  It took them a while to realize that since each 
process has a current directory the cd command that they wrote didn't have any 
effect.  They then merged the code into the shell.

Note: restricting cd does not prevent users from accessing files in other 
directories.  Restricting cd does not enhance security enough to be worth while.

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of
Lloyd Fuller
Sent: Friday, May 20, 2005 8:21 AM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Linux default permissions


On Fri, 20 May 2005 10:12:15 -0500, Tom Duerbusch wrote:

>
>So, is there any way to restrict a Linux user from being able to CD
>away from their home directory?  That would really be great.
>
>Tom Duerbusch
>THD Consulting
>

First, I am not a Linux user, so take this with a LARGE grain of salt.

For those users that you want to restrict, can't you change their profiles to 
alias cd so it does nothing?  Or replace
cd in their /bin with a new program that just exits.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to