From owner-freebsd-questions Wed Jun 6 8:38:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from slacknet.slacknet.com (slacknet.slacknet.com [204.228.135.180]) by hub.freebsd.org (Postfix) with ESMTP id 3E2D937B401 for ; Wed, 6 Jun 2001 08:38:52 -0700 (PDT) (envelope-from rj45@slacknet.com) Received: from rj45 (helo=localhost) by slacknet.slacknet.com with local-esmtp (Exim 3.12 #1 (Debian)) id 157fOM-0004q0-00; Wed, 06 Jun 2001 09:38:42 -0600 Date: Wed, 6 Jun 2001 09:38:42 -0600 (MDT) From: RJ45 To: Jim Cc: G D McKee , "questions@FreeBSD.ORG" Subject: Re: Creating Jails!!!! In-Reply-To: <20010606083939.A5889@elwood.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG anyone know how to create a shell jail so that users loggin on the system cannot chdir outside their jail but at the same time they can use the standard os binaries ?? anyone has idea how to do it ?? thanks Rick On Wed, 6 Jun 2001, Jim wrote: > I created a Jail just the other day and it went fine. You might try > re-cvsuping your source, doing a make clean, then try again. The man > page walks through the process perfectly, follow it and it will work. > > On Wed, Jun 06, 2001 at 09:25:44AM +0100, G D McKee wrote: > > Hi > > > > Trying to dreate a jail on FreeBSD 4.3-STABLE (5/6/01). Following the > > instructions in man jail and getting the following error? > > > > Does anyone have any ideas? > > > > Thanks in advance. > > > > Gordon > > > > > > kursk# set D=/home/gdm/jail > > kursk# > > kursk# echo $D > > /home/gdm/jail > > kursk# > > kursk# > > kursk# cd /usr/src/ > > kursk# cd etc/ > > kursk# make distribution DESTDIR=$D NO_MAKEDEV=yes > > (cd /usr/src/etc; install -c -o root -g wheel -m 644 amd.map apmd.conf > > auth.conf crontab csh.cshrc csh.login csh.logout dhclient.conf dm.conf > > fbtab ftpusers gettytab group hosts hosts.allow host.conf hosts.equiv > > hosts.lpd inetd.conf login.access login.conf motd modems networks > > newsyslog.conf pam.conf phones printcap profile protocols rc rc.atm > > rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 rc.isdn > > rc.network rc.network6 rc.pccard rc.serial rc.shutdown rc.syscons rc.sysctl > > remote rpc security services shells syslog.conf usbd.conf etc.i386/disktab > > etc.i386/rc.i386 etc.i386/ttys > > /usr/src/etc/../gnu/usr.bin/man/manpath/manpath.config > > /usr/src/etc/../usr.bin/mail/misc/mail.rc > > /usr/src/etc/../usr.bin/locate/locate/locate.rc /home/gdm/jail/etc; > > install -c -o root -g wheel -m 755 netstart pccard_ether rc.suspend > > rc.resume /home/gdm/jail/etc; install -c -o root -g wheel -m 644 > > defaults/rc.conf /home/gdm/jail/etc/defaults/; install -c -o root -g > > wheel -m 644 defaults/make.conf /home/gdm/jail/etc/defaults/; install -c -o > > root -g wheel -m 644 defaults/pccard.conf /home/gdm/jail/etc/defaults/; > > install -c -o root -g wheel -m 644 defaults/periodic.conf > > /home/gdm/jail/etc/defaults/; install -c -o root -g wheel -m 600 /dev/null > > /home/gdm/jail/var/log/cron; install -c -o root -g wheel -m 600 > > master.passwd /home/gdm/jail/etc; ( cd /usr/src/etc/periodic; make > > install ); ( cd /usr/src/etc/../gnu/usr.bin/send-pr; make > > etc-gnats-freefall ); ( cd /usr/src/etc/../share/termcap; make > > etc-termcap ); ( cd /usr/src/etc/../usr.sbin/rmt; make etc-rmt ); ( cd > > /usr/src/etc/isdn; make install ); pwd_mkdb -p -d /home/gdm/jail/etc > > /home/gdm/jail/etc/master.passwd; install -c -o root -g wheel -m 555 > > MAKEDEV.local MAKEDEV /home/gdm/jail/dev ) > > usage: install [-CcDpsv] [-f flags] [-g group] [-m mode] [-o owner] file1 > > file2 > > install [-CcDpsv] [-f flags] [-g group] [-m mode] [-o owner] file1 > > ... > > fileN directory > > install -d [-v] [-g group] [-m mode] [-o owner] directory ... > > *** Error code 64 > > > > Stop in /usr/src/etc. > > kursk# > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > -- > Jim O'Gorman > jameso@elwood.net > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message