From owner-freebsd-questions@freebsd.org Wed Jun 14 12:35:45 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDCC3D8D0C6 for ; Wed, 14 Jun 2017 12:35:45 +0000 (UTC) (envelope-from amutu@amutu.com) Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7FE9C1755 for ; Wed, 14 Jun 2017 12:35:45 +0000 (UTC) (envelope-from amutu@amutu.com) Received: by mail-oi0-x231.google.com with SMTP id b6so35181706oia.1 for ; Wed, 14 Jun 2017 05:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amutu-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9H/jKYv1+dQXRW+Zie61a0pwZ8wYWql9cPhssK69w5A=; b=bD+tnb6BsDrmVLbddRzsf+cCEIEZePhihaGmc/sttqsE3ymeu3V46oJrBDTWNZ/SH7 KrX/LKlZz4JzxaJavz2k5QoEHN+JmBLZKxwhAoSQ2oIehokZsYEnLyQeyDbxxmyoUVXf KWYpLYF94hTqCfkkd2lvK8vrAERMBX1N9c31CXRjdmg16Irm/2wyHwhHtj7cJq2UieXq 7y6OzAYLrEBtg7sN3sZALpAwKgIKf6gE77DZsHNs6LtYmLG7UxDEfnHKXrJKHEomoNNX 7AziQgee7/SS8nNgaxOQOfzDx08LnkWJKRmnJ7Pba3PCeXTr5PILBHSobD5oi04cqdkI neNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9H/jKYv1+dQXRW+Zie61a0pwZ8wYWql9cPhssK69w5A=; b=U4dQo+KbKcGtVOawZwVj/O/BwxdeEf0f8ldkXuiCkRu/plJT5ZEjZuBU3nmxS5FGHL ep9JltU55aPNuCjayJgMkkDyaxbt3qHGOhjiqFcnXiuWBHc4a3PuofXuqFbscjQM0jpd PICJKh5/xAp+uPPFK7QY8umWwV0Lqwjj+/V3xY/AZWR68RHRLi1i+UaSkR5YFtDscqNp E48JkelzKHQMVe3sl0n1usAJMXB96lDjEaqdZ2ksnFjNqiluAdnCo7a4RFploQqr7NXi 97hXz/8XA/japDhJsMfsJt48hqwusqa8mVuOrAcA8ZCKtOOXMRWRZ4+Wma6KDgwTAP3f tLcg== X-Gm-Message-State: AKS2vOyCn8I3DII8L5V/mICxVFXftO4yrM8JVx+SjZXLivpCK9AEAsMR n4ZZlWuZSR+uVSKqUzCQCg== X-Received: by 10.202.117.213 with SMTP id q204mr226290oic.131.1497443744813; Wed, 14 Jun 2017 05:35:44 -0700 (PDT) Received: from mail-ot0-f181.google.com (mail-ot0-f181.google.com. [74.125.82.181]) by smtp.gmail.com with ESMTPSA id c93sm295383otb.38.2017.06.14.05.35.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Jun 2017 05:35:44 -0700 (PDT) Received: by mail-ot0-f181.google.com with SMTP id r67so15370978ota.1 for ; Wed, 14 Jun 2017 05:35:44 -0700 (PDT) X-Received: by 10.157.9.35 with SMTP id 32mr254422otp.118.1497443744184; Wed, 14 Jun 2017 05:35:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.133.136 with HTTP; Wed, 14 Jun 2017 05:35:42 -0700 (PDT) Received: by 10.74.133.136 with HTTP; Wed, 14 Jun 2017 05:35:42 -0700 (PDT) In-Reply-To: <1fb7f3d1-dfb5-ab75-ab75-12dcc81423ca@holgerdanske.com> References: <1fb7f3d1-dfb5-ab75-ab75-12dcc81423ca@holgerdanske.com> From: Jov Date: Wed, 14 Jun 2017 20:35:42 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to change passphrase for FreeBSD 11.0 encrypted ZFS root? To: David Christensen Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2017 12:35:45 -0000 You change the passphrase without key file=EF=BC=9F the default geli boot w= ill read key files in /boot dir=EF=BC=8Cthe key file name is set in /boot/loader.con= f, you shoud remove the settings if you not set it. 2017=E5=B9=B46=E6=9C=8814=E6=97=A5 2:20 PM=EF=BC=8C"David Christensen" =E5=86=99=E9=81=93=EF=BC=9A FreeBSD: I have a FreeBSD 11.0 i386 machine with encrypted ZFS on root and encrypted swap as created by the FreeBSD installer. I would like to change the root password. I issued the following command: toor@freebsd:/root # geli setkey -n 0 /dev/ada0s1d Enter new passphrase: Reenter new passphrase: Note, that the master key encrypted with old keys and/or passphrase may still exists in a metadata backup file. Now when I boot, I enter the passphrase at the boot menu, a bunch of stuff scrolls by, and then I see: Enter passphrase for ada0s1d: I enter the new passphrase and I see: GEOM_ELI: Wrong key for ada0s1d. Tries left: 2. Enter passphrase for ada0s1d: I enter it again and I see: GEOM_ELI: Wrong key for ada0s1d. Tries left: 1. Enter passphrase for ada0s1d: I enter the old passphrase and I see: GEOM_ELI: Wrong key for ada0s1d. No tries left. Mounting from zfs:zroot/ROOT/default failed with error 2. I am then presented with some brief documentation and a prompt: mountroot> If I enter "?" to get a list of valid disk boot devices, I see: List of GEOM managed disk devices: ada0s1d ada0s1b ada0s1a ada0s1 ada0 cd0 I do not see ada0s1d.eli, which should be my decrypted root file system. I have rebooted and tried more than once -- same result. It would be useful to know why GELI for the root device is now broken, and if it is possible to fix it (other than re-imaging/ re-installing). What is the correct way to change the passphrase for FreeBSD 11.0 encrypted ZFS root? Is this specific use-case documented anywhere? David _______________________________________________ freebsd-questions@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org= "