Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Mar 2005 19:53:46 -0500 (EST)
From:      doug@safeport.com
To:        freebsd-questions@FreeBSD.ORG
Subject:   bash restricted shell
Message-ID:  <20050311191532.X8887@pemaquid.safeport.com>

next in thread | raw e-mail | index | archive | help
On a standard 4.11 install /usr/local/bin/bash = v2.04. rbash does not exist. So
I added it as an sh script. This works okay in that normal things I tried do not
break out. This is probably good enough for the users I would give this shell
to. My question is basically: what is the "right" way to do this?

I can not find syntax for shopt and the various forms of set I tried either get
a syntax error or do not invoke bash as a restricted shell.

Thanks for any thoughts

_____
Douglas Denault
http://www.safeport.com
doug@safeport.com
Voice: 301-469-8766
  Fax: 301-469-0601



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050311191532.X8887>