jail setup

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Apr 8 04:08:55 PDT 2004


On Wed, Apr 07, 2004 at 10:51:00PM -0400, dave wrote:
> Hello,
>     I'm setting up a jail under 5.2.1 to run pure-ftpd in. I did the
> following:
> cvsupped the source
> cd /usr/src
> make world DESTDIR=/usr/jail/ftp
> cd etc
> make distribution DESTDIR=/usr/jail/ftp
> then linked /dev/null to kernel inside the jail area.
> I'm following an onlamp article at:
> and understood that sendmail and perl and some other items would be
> available. When i do a pkg_info from within the jail there aren't any
> packages. did i miss a step? Is there something i should have installed to
> make this go easier?

That's exactly what I'd expect to see.  When you run pkg_info(1)
within the jail, it looks for the contents of /var/db/pkg *within the
jail* You can't see the package data for packages you install from the
base system when you're in the jail.  You'ld have to install the
packages from inside the jail for that to show up.

Be aware that On-Lamp article was written in reference to FreeBSD 4.x
-- some things are a bit different with FreeBSD 5.x.  You should have
sendmail in the base system unless you've disable building it by
putting 'NO_SENDMAIL=yes' into /etc/make.conf.  You won't have perl as
part of the base in 5.x -- you will definitely have to install from
ports/packages to get that.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040408/fbf8bc37/attachment.bin


More information about the freebsd-questions mailing list