Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site ucf-cs.UUCP
Path: utzoo!linus!genrad!mit-eddi!mit-vax!eagle!mhuxt!mhuxi!mhuxa!houxm!hocda!spanky!burl!duke!goldfarb@ucf-cs.UUCP (Ben Goldfarb Esq.)
From: goldfarb@ucf-cs.UUCP
Newsgroups: net.unix-wizards
Subject: Re: Does 4.1BSD have a restricted shell?
Message-ID: <981@ucf-cs.UUCP>
Date: Wed, 29-Jun-83 02:37:59 EDT
Article-I.D.: ucf-cs.981
Posted: Wed Jun 29 02:37:59 1983
Date-Received: Wed, 29-Jun-83 22:17:30 EDT
References: <350@houxf.UUCP>
Organization: University of Central Florida
Lines: 13

The Bourne shell distributed with 4.1bsd has the restricted shell
code in it.  All you have to do is include the line 'rflag=0' in
the initialization code in main.c.  Then make sure you set up
.profile in the home directory of the restricted login so that it
sets PATH to just the home directory (or some other one where you
don't keep 'dangerous' binaries).  rsh won't allow "chdir'ing," running
binaries whose names start with '/', etc.


--
Ben Goldfarb
uucp:  ...!duke!ucf-cs!goldfarb
ARPA:  goldfarb.ucf-cs@Rand-Relay