From owner-freebsd-questions@FreeBSD.ORG Sun Jul 27 10:12:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 943141065671 for ; Sun, 27 Jul 2008 10:12:19 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by mx1.freebsd.org (Postfix) with ESMTP id 142888FC1A for ; Sun, 27 Jul 2008 10:12:18 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id m6RACGgd022923; Sun, 27 Jul 2008 12:12:17 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 8F9A1BA96; Sun, 27 Jul 2008 12:12:16 +0200 (CEST) Date: Sun, 27 Jul 2008 12:12:16 +0200 From: Roland Smith To: DSA - JCR Message-ID: <20080727101216.GA42938@slackbox.xs4all.nl> References: <3267.84.18.27.248.1217152064.squirrel@mail.dsa.es> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <3267.84.18.27.248.1217152064.squirrel@mail.dsa.es> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Root boot/mount Password? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2008 10:12:19 -0000 --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 27, 2008 at 09:47:44AM -0000, DSA - JCR wrote: > On Sat, Jul 26, 2008 at 05:31:23PM -0000, DSA - JCR wrote: > >> Hi all > >> > >> FreeBSD 6.2 > >> > >> I would like to put a password when booting/mounting mi Freebsd box. is > >> it possible? How? > > > >Yes. Use geli(8) encryption. > > > >> is for protecting the system from unauthorized users > > > >Disk encryption also protects your data if the PC or harddrive is stolen. > >Roland > > >=20 > Yes, I had thinking of Geli, but my system is up and running and I don't > know if I can use geli for this without breaking all > I have used geli for unused disks and for swap but not for root, because i > dont know if I will break all.... >=20 > can I use it for root, when it is a live system? You can encrypt the root filesystem, but in that case /boot must be on a separate unencrypted partition, otherwise the OS cannot boot. So unless you have a spare partition for /boot, you'll have to make backups and re-partition your disk. Note that encrypting the partitions where the OS lives is not particularly usefull; there is nothing secret there. On the contrary, it would potentially make the encrypted partition vulnerable to a known plaintext attack. So what I would recommend it to put all _your_ data (which you want to protect from unauthorized access) on one partition (in case of a desktop, I'd use /home), and encrypt that. To do this you should back up all your data. Then you fill the partition with random noise using 'dd if=3D/dev/random'. This can take some time depending on the size of the partition. As soon as that is done you can use 'geli init' to initialize a geli-encrypted device, and 'geli attach' to make a device node. Then you can use newfs on the new device, mount it and restore your backup. Now edit /etc/fstab to refer to the geli device. On the next boot, the rc scripts will ask for the password and take care of the mounting of the device. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkiMSgAACgkQEnfvsMMhpyWWMQCfa049HLzLXIRBsLgWfunMZNJg 1oYAnjU87cNrMn8D7gmG+pK/MgLd2dVs =HcY0 -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--