On Thu, 28 Feb 2002, Steffen Dettmer wrote:

> You cannot specify parameters in passwd. To archive restricted
> mode, cp / ln bash (or bash2) to "rbash". Bash goes in restricted
> mode is argv[0] equals rbash. 
> man bash /RESTRICTED


Point taken. I tried this out on RHL 7.2 and giving parameters to the
password file didnt work. But, I have done this before on some earlier
version of RH. BTW, on my Mandrake 8.2, specifying the parameter in 
the password file worked! :!!

> binaries to there. If you have vim, cp it into that dir as rvim,

Oh wonderful. Didnt know this at all. Damn, every day you get to learn
something new. :)) Thanks for the tip, will try it out. 

> really a lot of tools. Don't cp standard ftp, since it's able to
> drop a non-restricted /bin/bash. Ohh, and don't set up paths and

Hmm, always interested in knowing something new. I kind of knew that a
ftp could drop you into a shell. But have never been able to do that.
How could one go about doing it?? Any pointers?

> such in .profile - users may overwrite it! Make sure you make
> other variables readonly. Set the PATH to the new "bin" style
> tree only! 

How would one go about doing this. What I did was slightly kludgy, so
would really appreciate comments.. Usually how do you go about doing
this part. Cos I feel this is the trickiest and the most important
part...

Regards
Dhar


Reply via email to