Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jun 2001 14:11:07 -0500
From:      Jim <jameso@elwood.net>
To:        RJ45 <rj45@slacknet.com>
Cc:        "questions@FreeBSD.ORG" <freebsd-questions@freebsd.org>
Subject:   Re: Creating Jails!!!!
Message-ID:  <20010606141107.B8109@elwood.net>
In-Reply-To: <Pine.LNX.4.21.0106060937430.18568-100000@slacknet.slacknet.com>; from rj45@slacknet.com on Wed, Jun 06, 2001 at 09:38:42AM -0600
References:  <20010606083939.A5889@elwood.net> <Pine.LNX.4.21.0106060937430.18568-100000@slacknet.slacknet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
The standard os binaries are installed when you build the jail. Now if
you are talking about third party apps that you build by hand or
install from ports, you just install those in the jail as well. You
can just think of the jail as a second machine to make it easier to
wrap your mind around the concept.

On Wed, Jun 06, 2001 at 09:38:42AM -0600, RJ45 wrote:
> 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

-- 
Jim O'Gorman 
jameso@elwood.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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