From nobody Thu Nov 2 19:44:42 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SLvTl3Wnyz50FN6 for ; Thu, 2 Nov 2023 19:44:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SLvTk34vqz4FKQ for ; Thu, 2 Nov 2023 19:44:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698954282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nfwmPuX0YkhQj0trAKleK07b+v62siOgezgFzHO2m6M=; b=uB571oPFZKEUOzLu7/Hg0oJsIdeUrCQyLDYRfDMvBd4hd1KH+LYxF+JSCHcQQ5ElHTmJb6 bD7b1+dOxZLdKVYZgLph/vJWUdficl8kw6He+WcrTDdrp6kzMf+uaYtmntoRbrVt6hEVOh LUY3W+DehDbPWFKGeslXWbnIlP0fbUtpVCU0h5vV30sPmniYpSueKwA53AofKVdaPnqlME s0kkrv+sm27xszD8p8vhX9TwvWt9aV1J9cXuzqdjsl38pm8JGxVJDqh7xqRfma59m+Rkb/ K0KIughxKkBYIN0LR7ddQIaO/2n1QbGon5L9FnUEBnxubPqMRIbVN+Tf6X3jJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698954282; a=rsa-sha256; cv=none; b=keCM+Jq08EcVSCsi/UN1hS+u3EXpMu+jtYWdaO5XxZw/fRKUISNS2eXxNR5AlJKedZu0B9 6DYzsjXgfmkFTn7yrRtYLch+WjgV/MP3YWxvuonj0xtWB8zuKJrDmlxwY44Gr2y2DD6ron wD10eOSc9M2YpCK6Pf2aSo6rkYgqdXKKFYXq+gUclnfax6kYsr7J3w6Nmpxo2HLWbp2zlW IJ9Pdr7WaEzaQUIFDUosnHiSLaQkoGSpg1Ra28REX9sQ1xJeXQqQoqyjuXu41nwxPTRMWF YqGDholbG9UP83XXm2ruL75OneR6f8y8G65f/vcedw6OOUjT1lIZFd/hwRQSBw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SLvTk29gQzjLy for ; Thu, 2 Nov 2023 19:44:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3A2JigmG016977 for ; Thu, 2 Nov 2023 19:44:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3A2Jigtx016976 for bugs@FreeBSD.org; Thu, 2 Nov 2023 19:44:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 263234] Add support for OpenZFS encryption to adduser Date: Thu, 02 Nov 2023 19:44:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: john.grafton@runbox.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263234 --- Comment #4 from John Grafton --- (In reply to Xin LI from comment #3) The PR has been updated to your specification from comment #3. For the encryption option, my thought is to default to using a passphrase that's asked for at the end of the question list in interactive mode. In b= atch mode, the user would need to provide a file with the key? Haven't decided = on the best way to handle this scenario. Opinions welcome! These sound like sane defaults to me keeping in mind that the key can alway= s be changed later on with 'zfs change-key'. Interactive session w/ encryption enabled example: root@freebsd:/usr/src/usr.sbin/adduser # sh adduser.sh Username: bob Full name: bob mcbob Uid [1009]: Login group [bob]: Login group is bob. Invite bob into other groups? []: Login class [default]: Shell (sh csh tcsh git-shell nologin) [sh]: Home directory [/home/bob]: Home directory permissions (Leave empty for default): Encrypt ZFS home dataset? [no]: yes Use password-based authentication? [no]: Lock out the account after creation? [no]: Username : bob Password : Full Name : bob mcbob Uid : 1009 ZFS dataset : zroot/home/bob Encrypted : yes Class : Groups : bob Home : /home/bob Home Mode : Shell : /bin/sh Locked : no OK? (yes/no) [yes]: yes Encryption passphrase for dataset (must be at least 8 characters) Enter new passphrase: Re-enter new passphrase: adduser.sh: INFO: Successfully created ZFS dataset (zroot/home/bob). adduser.sh: INFO: Successfully added (bob) to the user database. Add another user? (yes/no) [no]: Goodbye! --=20 You are receiving this mail because: You are the assignee for the bug.=