Re: Restricted Shells or Menu Based Shells
From: Sumit Dhar (dhar@dexponet.com)Date: 03/02/02
- Previous message: Teodor Cimpoesu: "Re: Restricted Shells or Menu Based Shells"
- In reply to: Steffen Dettmer: "Re: Restricted Shells or Menu Based Shells"
- Next in thread: Steffen Dettmer: "Re: Restricted Shells or Menu Based Shells"
- Next in thread: Christophe Zwecker: "Re: Restricted Shells or Menu Based Shells"
- Reply: Steffen Dettmer: "Re: Restricted Shells or Menu Based Shells"
- Reply: Joachim Blaabjerg: "Re: Restricted Shells or Menu Based Shells"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 2 Mar 2002 04:07:50 -0500 (EST) From: Sumit Dhar <dhar@dexponet.com> To: Steffen Dettmer <steffen@dett.de>
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
- Previous message: Teodor Cimpoesu: "Re: Restricted Shells or Menu Based Shells"
- In reply to: Steffen Dettmer: "Re: Restricted Shells or Menu Based Shells"
- Next in thread: Steffen Dettmer: "Re: Restricted Shells or Menu Based Shells"
- Next in thread: Christophe Zwecker: "Re: Restricted Shells or Menu Based Shells"
- Reply: Steffen Dettmer: "Re: Restricted Shells or Menu Based Shells"
- Reply: Joachim Blaabjerg: "Re: Restricted Shells or Menu Based Shells"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]