From owner-freebsd-sysinstall@freebsd.org Wed Mar 15 23:21:03 2017 Return-Path: Delivered-To: freebsd-sysinstall@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 5B7EBD0E5AA for ; Wed, 15 Mar 2017 23:21:03 +0000 (UTC) (envelope-from robert.ayrapetyan@gmail.com) Received: from mail-pf0-x230.google.com (mail-pf0-x230.google.com [IPv6:2607:f8b0:400e:c00::230]) (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 32C6E184C for ; Wed, 15 Mar 2017 23:21:02 +0000 (UTC) (envelope-from robert.ayrapetyan@gmail.com) Received: by mail-pf0-x230.google.com with SMTP id w189so15334017pfb.0 for ; Wed, 15 Mar 2017 16:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=AD2gSkhyt6p5qosBLxQNljG7QVaM0S8Y0lSEXsEsbZo=; b=cpy3Xj2mhejPLpJebOpc8CdBHvP6kbfAIzCr/POsdqc9VqbUXsmRRjpqsVeaIJWeIx 8EKV4m2DGUNS/Xc5AdEeZW4eantPCp7E5mwXNZkXoi4gpuGQ7C3Md062kwEKrhoM82dp mx2Pibu15dQG9s9LhdQ8BCdQCKKplicFGLUP2D95n5trD5tbO9ULvWjPvpZBml/NJ29t u2sS2vfErrze/i72XzL29gMAymzMF8YpwtJCSVp7tL08xU0WFA5+ShRa8GMdayzUTi93 MwAa7ogWxa02OzZAauzCCFJCeyt5QvBJwVzHhSmz/yeu3gjwX6QbMpaV3deFQx1/0cdb QExQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=AD2gSkhyt6p5qosBLxQNljG7QVaM0S8Y0lSEXsEsbZo=; b=MbC60W+QtnJgH/YEIVobBvZlbrE6ovB/8A0xPTpIGDj2VvyUZH92eL7Kj52hPYJsJt v27h+yvZWb1n0qpxZ3ivIvZh4rlQ7oNLf8ZErx+LM03PoCqdZBAmTdPdY+XX46wAbyXB f62f0KV1iAyMqFUDArBs/NYMyI9SvfdoWOcP6RF3glEZwNCexw1FJjs/4NIC9UzrHg36 kKjfpj+A3l2UD3s3zf8W66CfTU/Rgsz6b9BLP6ogZUYn8634PUkQTV9brgK6qszg7Y+u jro0a8S95juEBPBqWkYE9HUoBH2jSpK4hNrktLsmjRxVtH8rqlp7Q2QY4eHBwgHK2Vhr YISw== X-Gm-Message-State: AFeK/H1ac1GLBaA6tSoVMVYeY0GTcJnbKV+iBwGj3AdZeZqStVlXRrdVmrBQRzNDnBLYfA== X-Received: by 10.84.231.200 with SMTP id g8mr8087593pln.100.1489620062098; Wed, 15 Mar 2017 16:21:02 -0700 (PDT) Received: from [192.168.1.116] (c-50-131-6-44.hsd1.ca.comcast.net. [50.131.6.44]) by smtp.gmail.com with ESMTPSA id g27sm6279230pgn.20.2017.03.15.16.21.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Mar 2017 16:21:01 -0700 (PDT) Subject: Re: Read-only file-system after install? To: freebsd-sysinstall@freebsd.org References: <80d9f08b-f0bf-c3c2-6307-78fa7e04b5b9@gmail.com> <1ac9555c-8cde-b7ba-64d5-d84889c415a8@freebsd.org> <366e1b1b-8f5d-9ddd-7ab5-22633cd3c0af@gmail.com> <2fe7548c-9ded-1f79-e82c-d490e206743f@gmail.com> From: Robert Message-ID: <395ffd76-761b-f61c-90f2-7a71c3dc5f6d@gmail.com> Date: Wed, 15 Mar 2017 16:21:00 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 23:21:03 -0000 After install: # zfs list NAME USED AVAIL REFER MOUNTPOINT zroot 301M 441G 96K /mnt/zroot zroot/ROOT 299M 441G 96K none zroot/ROOT/default 299M 441G 299M /mnt zroot/tmp 96K 441G 96K /mnt/tmp zroot/usr 384K 441G 96K /mnt/usr zroot/usr/home 96K 441G 96K /mnt/usr/home zroot/usr/ports 96K 441G 96K /mnt/usr/ports zroot/usr/src 96K 441G 96K /mnt/usr/src zroot/var 588K 441G 96K /mnt/var zroot/var/audit 96K 441G 96K /mnt/var/audit zroot/var/crash 96K 441G 96K /mnt/var/crash zroot/var/log 108K 441G 108K /mnt/var/log zroot/var/mail 96K 441G 96K /mnt/var/mail zroot/var/tmp 96K 441G 96K /mnt/var/tmp # mount /dev/iso9660/11_0_RELEASE_P1_AMD64_BO on / (cd9660, local, read-only) devfs on /dev (devfs, local, multilabel) /dev/md0 on /var (ufs, local) /dev/md1 on /tmp (ufs, local) zroot/ROOT/default on /mnt (zfs, local, noatime, nfsv4acls) zroot/tmp on /mnt/tmp (zfs, local, noatime, nosuid, nfsv4acls) zroot/usr/home on /mnt/usr/home (zfs, local, noatime, nfsv4acls) zroot/usr/ports on /mnt/usr/ports (zfs, local, noatime, nosuid, nfsv4acls) zroot/usr/src on /mnt/usr/src (zfs, local, noatime, nfsv4acls) zroot/var/audit on /mnt/var/audit (zfs, local, noatime, noexec, nosuid, nfsv4acl s) zroot/var/crash on /mnt/var/crash (zfs, local, noatime, noexec, nosuid, nfsv4acl s) zroot/var/log on /mnt/var/log (zfs, local, noatime, noexec, nosuid, nfsv4acls) zroot/var/mail on /mnt/var/mail (zfs, local, nfsv4acls) zroot/var/tmp on /mnt/var/tmp (zfs, local, noatime, nosuid, nfsv4acls) zroot on /mnt/zroot (zfs, local, noatime, nfsv4acls) devfs on /mnt/dev (devfs, local, multilabel) /mnt/usr/freebsd-dist on /usr/freebsd-dist (nullfs, local, union) devfs on /mnt/dev (devfs, local, multilabel) After manually adding users and reboot: > zfs list NAME USED AVAIL REFER MOUNTPOINT zroot 301M 441G 96K /zroot zroot/ROOT 299M 441G 96K none zroot/ROOT/default 299M 441G 299M / zroot/tmp 96K 441G 96K /tmp zroot/usr 424K 441G 96K /usr zroot/usr/home 136K 441G 136K /usr/home zroot/usr/ports 96K 441G 96K /usr/ports zroot/usr/src 96K 441G 96K /usr/src zroot/var 616K 441G 96K /var zroot/var/audit 96K 441G 96K /var/audit zroot/var/crash 96K 441G 96K /var/crash zroot/var/log 136K 441G 136K /var/log zroot/var/mail 96K 441G 96K /var/mail zroot/var/tmp 96K 441G 96K /var/tmp > mount zroot/ROOT/default on / (zfs, local, noatime, nfsv4acls) devfs on /dev (devfs, local, multilabel) On 02/24/17 19:18, Allan Jude wrote: > On 2017-02-24 20:03, Robert wrote: >> Another strange thing is that other folders (e.g. /etc) work fine: >> >> after install: >> >> # ls -ldh /etc >> drwxr-xr-x 25 root wheel 106B Feb 25 00:57 /etc >> >> After reboot: >> >> all my changes in /etc/rc.conf are preserved. >> >> >> >> On 02/23/17 19:36, Robert wrote: >>> After installation finished and user has been added from the shell: >>> >>> # ls -ldh /tmp >>> drwxrwxrwt 2 root wheel 2B Sep 29 01:43 /tmp >>> >>> # getfacl /tmp >>> # file: /tmp >>> # owner: root >>> # group: wheel >>> owner@:rwxp--aARWcCos:-------:allow >>> group@:rwxp--a-R-c--s:-------:allow >>> everyone@:rwxp--a-R-c--s:-------:allow >>> >>> # ls -la /usr/home/ >>> total 35 >>> drwxr-xr-x 3 root wheel 3 Feb 24 03:21 . >>> drwxr-xr-x 16 root wheel 16 Feb 24 03:21 .. >>> drwxr-xr-x 2 robert robert 10 Feb 24 03:21 robert >>> # >>> >>> After reboot: >>> >>> # ls -ldh /tmp >>> drwxr-xr-x 6 root wheel 6B Feb 24 03:34 /tmp >>> >>> # getfacl /tmp >>> # file: /tmp >>> # owner: root >>> # group: wheel >>> owner@:rwxp--aARWcCos:-------:allow >>> group@:r-x---a-R-c--s:-------:allow >>> everyone@:r-x---a-R-c--s:-------:allow >>> >>> # ls -la /usr/home/ >>> total 9 >>> drwxr-xr-x 2 root wheel 2 Feb 24 01:54 . >>> drwxr-xr-x 16 root wheel 16 Feb 24 03:21 .. >>> >>> On 02/15/17 20:40, Allan Jude wrote: >>>> On 2017-02-15 23:17, Robert wrote: >>>>> Hi. >>>>> >>>>> I've installed FreeBSD in ZFS mirror mode many times on different >>>>> hardware. >>>>> >>>>> The last step was always "Exit to the system to make final changes" >>>>> where I'm performing something like below: >>>>> >>>>> pw useradd -n myuser -s /bin/tcsh -m >>>>> pw groupmod wheel -m myuser >>>>> passwd myuser >>>>> >>>>> After reboot my user was there and everything worked as expected. >>>>> >>>>> /tmp folder was always writable after reboot btw. >>>>> >>>>> >>>>> Starting from FreeBSD 11.0 I've noticed a following "bug": >>>>> >>>>> once user added on the final step, all folders are created properly >>>>> (folder /home/myuser is there). >>>>> >>>>> After reboot, I can login as myuser, but /home/myuser is not there! >>>>> /home folder is empty! >>>>> >>>>> Moreover, /tmp is read-only! >>>>> >>>>> So I have to perform: >>>>> >>>>> su >>>>> chmod 1777 /tmp >>>>> pw userdel -n myuser >>>>> pw useradd -n myuser -s /bin/tcsh -m >>>>> pw groupmod wheel -m myuser >>>>> passwd myuser >>>>> >>>>> after first reboot to recover my user. After further reboots everything >>>>> stays as it should. >>>>> >>>>> Is this expected behavior or a known bug? >>>>> >>>>> If expected - how can I get what I want after installation? >>>>> >>>>> Thanks! >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> freebsd-sysinstall@freebsd.org mailing list >>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall >>>>> To unsubscribe, send any mail to >>>>> "freebsd-sysinstall-unsubscribe@freebsd.org" >>>> This is unexpected, but I have not seen this myself. >>>> >>>> On a fresh install, in the 'after install shell', what are the >>>> permissions on /tmp? >>>> >>>> And what are they after the reboot? >>>> >>>> >> _______________________________________________ >> freebsd-sysinstall@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall >> To unsubscribe, send any mail to >> "freebsd-sysinstall-unsubscribe@freebsd.org" > I'd need to see: > > zfs list > > and > > mount > > From the post-install jail, and from the after reboot > > To try to tell what is happening. > From owner-freebsd-sysinstall@freebsd.org Wed Mar 15 23:27:14 2017 Return-Path: Delivered-To: freebsd-sysinstall@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 AA509D0E858 for ; Wed, 15 Mar 2017 23:27:14 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 80B501B60 for ; Wed, 15 Mar 2017 23:27:13 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 26E2513294 for ; Wed, 15 Mar 2017 23:27:12 +0000 (UTC) Subject: Re: Read-only file-system after install? To: freebsd-sysinstall@freebsd.org References: <80d9f08b-f0bf-c3c2-6307-78fa7e04b5b9@gmail.com> <1ac9555c-8cde-b7ba-64d5-d84889c415a8@freebsd.org> <366e1b1b-8f5d-9ddd-7ab5-22633cd3c0af@gmail.com> <2fe7548c-9ded-1f79-e82c-d490e206743f@gmail.com> <395ffd76-761b-f61c-90f2-7a71c3dc5f6d@gmail.com> From: Allan Jude Message-ID: <8bbc62b4-97fe-7566-1a50-24f622c84c3d@freebsd.org> Date: Wed, 15 Mar 2017 19:26:55 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <395ffd76-761b-f61c-90f2-7a71c3dc5f6d@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JRMqAXeLQlsCpPNHm8moS22aoftWkFEiw" X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 23:27:14 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --JRMqAXeLQlsCpPNHm8moS22aoftWkFEiw Content-Type: multipart/mixed; boundary="1toDvWJwa3G8kbHJ1kHXbobhvGaf4BVI7"; protected-headers="v1" From: Allan Jude To: freebsd-sysinstall@freebsd.org Message-ID: <8bbc62b4-97fe-7566-1a50-24f622c84c3d@freebsd.org> Subject: Re: Read-only file-system after install? References: <80d9f08b-f0bf-c3c2-6307-78fa7e04b5b9@gmail.com> <1ac9555c-8cde-b7ba-64d5-d84889c415a8@freebsd.org> <366e1b1b-8f5d-9ddd-7ab5-22633cd3c0af@gmail.com> <2fe7548c-9ded-1f79-e82c-d490e206743f@gmail.com> <395ffd76-761b-f61c-90f2-7a71c3dc5f6d@gmail.com> In-Reply-To: <395ffd76-761b-f61c-90f2-7a71c3dc5f6d@gmail.com> --1toDvWJwa3G8kbHJ1kHXbobhvGaf4BVI7 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2017-03-15 19:21, Robert wrote: > After install: >=20 > # zfs list > NAME USED AVAIL REFER MOUNTPOINT > zroot 301M 441G 96K /mnt/zroot > zroot/ROOT 299M 441G 96K none > zroot/ROOT/default 299M 441G 299M /mnt > zroot/tmp 96K 441G 96K /mnt/tmp > zroot/usr 384K 441G 96K /mnt/usr > zroot/usr/home 96K 441G 96K /mnt/usr/home > zroot/usr/ports 96K 441G 96K /mnt/usr/ports > zroot/usr/src 96K 441G 96K /mnt/usr/src > zroot/var 588K 441G 96K /mnt/var > zroot/var/audit 96K 441G 96K /mnt/var/audit > zroot/var/crash 96K 441G 96K /mnt/var/crash > zroot/var/log 108K 441G 108K /mnt/var/log > zroot/var/mail 96K 441G 96K /mnt/var/mail > zroot/var/tmp 96K 441G 96K /mnt/var/tmp >=20 > # mount > /dev/iso9660/11_0_RELEASE_P1_AMD64_BO on / (cd9660, local, read-only) > devfs on /dev (devfs, local, multilabel) > /dev/md0 on /var (ufs, local) > /dev/md1 on /tmp (ufs, local) > zroot/ROOT/default on /mnt (zfs, local, noatime, nfsv4acls) > zroot/tmp on /mnt/tmp (zfs, local, noatime, nosuid, nfsv4acls) > zroot/usr/home on /mnt/usr/home (zfs, local, noatime, nfsv4acls) > zroot/usr/ports on /mnt/usr/ports (zfs, local, noatime, nosuid, nfsv4a= cls) > zroot/usr/src on /mnt/usr/src (zfs, local, noatime, nfsv4acls) > zroot/var/audit on /mnt/var/audit (zfs, local, noatime, noexec, nosuid= , > nfsv4acl > s) > zroot/var/crash on /mnt/var/crash (zfs, local, noatime, noexec, nosuid= , > nfsv4acl > s) > zroot/var/log on /mnt/var/log (zfs, local, noatime, noexec, nosuid, > nfsv4acls) > zroot/var/mail on /mnt/var/mail (zfs, local, nfsv4acls) > zroot/var/tmp on /mnt/var/tmp (zfs, local, noatime, nosuid, nfsv4acls)= > zroot on /mnt/zroot (zfs, local, noatime, nfsv4acls) > devfs on /mnt/dev (devfs, local, multilabel) > /mnt/usr/freebsd-dist on /usr/freebsd-dist (nullfs, local, union) > devfs on /mnt/dev (devfs, local, multilabel) >=20 >=20 > After manually adding users and reboot: >=20 >> zfs list > NAME USED AVAIL REFER MOUNTPOINT > zroot 301M 441G 96K /zroot > zroot/ROOT 299M 441G 96K none > zroot/ROOT/default 299M 441G 299M / > zroot/tmp 96K 441G 96K /tmp > zroot/usr 424K 441G 96K /usr > zroot/usr/home 136K 441G 136K /usr/home > zroot/usr/ports 96K 441G 96K /usr/ports > zroot/usr/src 96K 441G 96K /usr/src > zroot/var 616K 441G 96K /var > zroot/var/audit 96K 441G 96K /var/audit > zroot/var/crash 96K 441G 96K /var/crash > zroot/var/log 136K 441G 136K /var/log > zroot/var/mail 96K 441G 96K /var/mail > zroot/var/tmp 96K 441G 96K /var/tmp >=20 >> mount > zroot/ROOT/default on / (zfs, local, noatime, nfsv4acls) > devfs on /dev (devfs, local, multilabel) >=20 >=20 > On 02/24/17 19:18, Allan Jude wrote: >> On 2017-02-24 20:03, Robert wrote: >>> Another strange thing is that other folders (e.g. /etc) work fine: >>> >>> after install: >>> >>> # ls -ldh /etc >>> drwxr-xr-x 25 root wheel 106B Feb 25 00:57 /etc >>> >>> After reboot: >>> >>> all my changes in /etc/rc.conf are preserved. >>> >>> >>> >>> On 02/23/17 19:36, Robert wrote: >>>> After installation finished and user has been added from the shell: >>>> >>>> # ls -ldh /tmp >>>> drwxrwxrwt 2 root wheel 2B Sep 29 01:43 /tmp >>>> >>>> # getfacl /tmp >>>> # file: /tmp >>>> # owner: root >>>> # group: wheel >>>> owner@:rwxp--aARWcCos:-------:allow >>>> group@:rwxp--a-R-c--s:-------:allow >>>> everyone@:rwxp--a-R-c--s:-------:allow >>>> >>>> # ls -la /usr/home/ >>>> total 35 >>>> drwxr-xr-x 3 root wheel 3 Feb 24 03:21 . >>>> drwxr-xr-x 16 root wheel 16 Feb 24 03:21 .. >>>> drwxr-xr-x 2 robert robert 10 Feb 24 03:21 robert >>>> # >>>> >>>> After reboot: >>>> >>>> # ls -ldh /tmp >>>> drwxr-xr-x 6 root wheel 6B Feb 24 03:34 /tmp >>>> >>>> # getfacl /tmp >>>> # file: /tmp >>>> # owner: root >>>> # group: wheel >>>> owner@:rwxp--aARWcCos:-------:allow >>>> group@:r-x---a-R-c--s:-------:allow >>>> everyone@:r-x---a-R-c--s:-------:allow >>>> >>>> # ls -la /usr/home/ >>>> total 9 >>>> drwxr-xr-x 2 root wheel 2 Feb 24 01:54 . >>>> drwxr-xr-x 16 root wheel 16 Feb 24 03:21 .. >>>> >>>> On 02/15/17 20:40, Allan Jude wrote: >>>>> On 2017-02-15 23:17, Robert wrote: >>>>>> Hi. >>>>>> >>>>>> I've installed FreeBSD in ZFS mirror mode many times on different >>>>>> hardware. >>>>>> >>>>>> The last step was always "Exit to the system to make final changes= " >>>>>> where I'm performing something like below: >>>>>> >>>>>> pw useradd -n myuser -s /bin/tcsh -m >>>>>> pw groupmod wheel -m myuser >>>>>> passwd myuser >>>>>> >>>>>> After reboot my user was there and everything worked as expected. >>>>>> >>>>>> /tmp folder was always writable after reboot btw. >>>>>> >>>>>> >>>>>> Starting from FreeBSD 11.0 I've noticed a following "bug": >>>>>> >>>>>> once user added on the final step, all folders are created properl= y >>>>>> (folder /home/myuser is there). >>>>>> >>>>>> After reboot, I can login as myuser, but /home/myuser is not there= ! >>>>>> /home folder is empty! >>>>>> >>>>>> Moreover, /tmp is read-only! >>>>>> >>>>>> So I have to perform: >>>>>> >>>>>> su >>>>>> chmod 1777 /tmp >>>>>> pw userdel -n myuser >>>>>> pw useradd -n myuser -s /bin/tcsh -m >>>>>> pw groupmod wheel -m myuser >>>>>> passwd myuser >>>>>> >>>>>> after first reboot to recover my user. After further reboots >>>>>> everything >>>>>> stays as it should. >>>>>> >>>>>> Is this expected behavior or a known bug? >>>>>> >>>>>> If expected - how can I get what I want after installation? >>>>>> >>>>>> Thanks! >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> freebsd-sysinstall@freebsd.org mailing list >>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall >>>>>> To unsubscribe, send any mail to >>>>>> "freebsd-sysinstall-unsubscribe@freebsd.org" >>>>> This is unexpected, but I have not seen this myself. >>>>> >>>>> On a fresh install, in the 'after install shell', what are the >>>>> permissions on /tmp? >>>>> >>>>> And what are they after the reboot? >>>>> >>>>> >>> _______________________________________________ >>> freebsd-sysinstall@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall >>> To unsubscribe, send any mail to >>> "freebsd-sysinstall-unsubscribe@freebsd.org" >> I'd need to see: >> >> zfs list >> >> and >> >> mount >> >> From the post-install jail, and from the after reboot >> >> To try to tell what is happening. >> >=20 > _______________________________________________ > freebsd-sysinstall@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall > To unsubscribe, send any mail to > "freebsd-sysinstall-unsubscribe@freebsd.org" This suggests you are missing: zfs_enable=3D"YES" in /etc/rc.conf and as such, /etc/rc.d/zfs is not being run, and mounting your non-root filesystems. --=20 Allan Jude --1toDvWJwa3G8kbHJ1kHXbobhvGaf4BVI7-- --JRMqAXeLQlsCpPNHm8moS22aoftWkFEiw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJYyc3PAAoJEBmVNT4SmAt+3dIQAKEIxYE22t0bBb57e3v65ri5 cHtY2WVJpH7+gRgNIz3F7FegjW68fQjWaYlNuWtPwH6Yb9tSEXfBnvcM0fzDRwqC zNnxWv7uvKZiXQQHfn/OfxyIKk1zVN2BcJ/1xqEI7v1VrT/j0ejmIjRyCc/7Hw0q E+S/N7mm9wvcnp5WqfmR3ptqrUdyLzyIFEUuC0L9cxVNyUqpBG1siZt1Bo+Et3T6 Cb6chyXN9R9IjY0cmdvHYMHysQKHhIzbrNPxXpobfx3/gGtjAcajhbqTq4HTnvqL 4X+j+JQXRO8joQzkHFTo1bqYEoI88pi5+JQ26pNWcsukfb2OVB1vY+arRRToK32B UlaUhOOI2b1k+753VH0EmOokDFCDVDpAhm0mOGE17K7BCet412FWVxzpJXhwCEdE NK+OW1xK9kyrXD5PHHDbHXedgPBaUea0329oXP9Rr9c4pU5jEkh6IdWW2GUhLh9T a6kaDWhi4zX1P1ebkMix1VULELqOXwjeDneG1PSUxAFhXPT7dP+8mrbLLdif9oJr A6Up9kDlrtJR75keO8zPElqYwWIne1Wfjl+Z5qXnZEA4x+hJUOMVTvUMPsAcS//V TnuMJaV8ZIGU9+I36c6mlvvVN+GwJw6CyM5sKxQeZ4DkRV5l7LaUMzxDHeDtdRO9 yzVoJttcUg3mumOfKbwQ =7sCZ -----END PGP SIGNATURE----- --JRMqAXeLQlsCpPNHm8moS22aoftWkFEiw-- From owner-freebsd-sysinstall@freebsd.org Wed Mar 15 23:34:20 2017 Return-Path: Delivered-To: freebsd-sysinstall@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 521C0D0EA43 for ; Wed, 15 Mar 2017 23:34:20 +0000 (UTC) (envelope-from robert.ayrapetyan@gmail.com) Received: from mail-pg0-x22d.google.com (mail-pg0-x22d.google.com [IPv6:2607:f8b0:400e:c05::22d]) (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 11F9C1F19 for ; Wed, 15 Mar 2017 23:34:20 +0000 (UTC) (envelope-from robert.ayrapetyan@gmail.com) Received: by mail-pg0-x22d.google.com with SMTP id g2so15874586pge.3 for ; Wed, 15 Mar 2017 16:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=1ItTf+vQSpAzEHRW5C+ZJxR+MyeJnh5gcn/a69Qx/R4=; b=Y13ldw5zwyesLRM1o3JGO7suhyIcB8F9G72XcRkh9C7sYK50rpNKYt8OqyZHXaX8eh qSfLXZ9jGl1ys9GRIlD7HybFx5FNLB+XYgatou/ujPnUletowGiRkoEUsNQiGVTOAm9H lbNLJqYhrAKsdkXhFiuJKVcLCuuUY9DDQ+hRIXkp/mFSM0jKZhESKaa1gbL3uUF/0/eo wCXcvKEcy5fVoWeeFq1UZj5yA0gLRGR8o6oIG9pmjncpU56uv86mo231PWVsvauv4dpH fHtzsND4soZK8dBVM8n9cCpmNU+2F8tz1d95LyujT8p+oDSLTCfOS7NI89AD5nz7ibEs 9cyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=1ItTf+vQSpAzEHRW5C+ZJxR+MyeJnh5gcn/a69Qx/R4=; b=qdXrqT89LZXs7qpWhbCRoyo/sN6mpDTQQU1dukirjJsdVYQsXqcsvRKjxRCcqXS+S5 bnT9mZbkpwmKGNRgKQ9ShlLFk5DH1mfYG1XGsI9V3d4Gle6MJCEnsswmBtXDB/3MQ+dW dK9NrLkIyzdOKpjpUEV/YSceAc0mnpUKuKUe4J9XXXZnfOj4uwJYG5ObGwGHxQ4CRPro AEdX6ZzKVZb1EUPeGyiSnoom6B3iZzfPA7j139CKbtpn9BqFFCa0n8LPZrdncXzNGrXj G51OtyUS6b6U9cRS/doG2nJc1Ow6oXw+7yK6Nc8K07L0cNQPHshbJWW44EcKOf5lDHaW 6tlw== X-Gm-Message-State: AFeK/H1sgSieQTBblG00AtO8wHo2oW0cuuqcD4dvLyoxbmFV7YRhoxgAXj1ZuH6vIISqww== X-Received: by 10.98.156.23 with SMTP id f23mr6723203pfe.3.1489620859222; Wed, 15 Mar 2017 16:34:19 -0700 (PDT) Received: from [192.168.1.116] (c-50-131-6-44.hsd1.ca.comcast.net. [50.131.6.44]) by smtp.gmail.com with ESMTPSA id o24sm6253449pfj.126.2017.03.15.16.34.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Mar 2017 16:34:18 -0700 (PDT) Subject: Re: Read-only file-system after install? To: freebsd-sysinstall@freebsd.org References: <80d9f08b-f0bf-c3c2-6307-78fa7e04b5b9@gmail.com> <1ac9555c-8cde-b7ba-64d5-d84889c415a8@freebsd.org> <366e1b1b-8f5d-9ddd-7ab5-22633cd3c0af@gmail.com> <2fe7548c-9ded-1f79-e82c-d490e206743f@gmail.com> <395ffd76-761b-f61c-90f2-7a71c3dc5f6d@gmail.com> <8bbc62b4-97fe-7566-1a50-24f622c84c3d@freebsd.org> From: Robert Message-ID: <623246e5-316d-0773-c4f1-db71f33ac894@gmail.com> Date: Wed, 15 Mar 2017 16:34:17 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <8bbc62b4-97fe-7566-1a50-24f622c84c3d@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 23:34:20 -0000 Weird, I've removed it because I have this exact line in /boot/loader.conf... :) On 03/15/17 16:26, Allan Jude wrote: > On 2017-03-15 19:21, Robert wrote: >> After install: >> >> # zfs list >> NAME USED AVAIL REFER MOUNTPOINT >> zroot 301M 441G 96K /mnt/zroot >> zroot/ROOT 299M 441G 96K none >> zroot/ROOT/default 299M 441G 299M /mnt >> zroot/tmp 96K 441G 96K /mnt/tmp >> zroot/usr 384K 441G 96K /mnt/usr >> zroot/usr/home 96K 441G 96K /mnt/usr/home >> zroot/usr/ports 96K 441G 96K /mnt/usr/ports >> zroot/usr/src 96K 441G 96K /mnt/usr/src >> zroot/var 588K 441G 96K /mnt/var >> zroot/var/audit 96K 441G 96K /mnt/var/audit >> zroot/var/crash 96K 441G 96K /mnt/var/crash >> zroot/var/log 108K 441G 108K /mnt/var/log >> zroot/var/mail 96K 441G 96K /mnt/var/mail >> zroot/var/tmp 96K 441G 96K /mnt/var/tmp >> >> # mount >> /dev/iso9660/11_0_RELEASE_P1_AMD64_BO on / (cd9660, local, read-only) >> devfs on /dev (devfs, local, multilabel) >> /dev/md0 on /var (ufs, local) >> /dev/md1 on /tmp (ufs, local) >> zroot/ROOT/default on /mnt (zfs, local, noatime, nfsv4acls) >> zroot/tmp on /mnt/tmp (zfs, local, noatime, nosuid, nfsv4acls) >> zroot/usr/home on /mnt/usr/home (zfs, local, noatime, nfsv4acls) >> zroot/usr/ports on /mnt/usr/ports (zfs, local, noatime, nosuid, nfsv4acls) >> zroot/usr/src on /mnt/usr/src (zfs, local, noatime, nfsv4acls) >> zroot/var/audit on /mnt/var/audit (zfs, local, noatime, noexec, nosuid, >> nfsv4acl >> s) >> zroot/var/crash on /mnt/var/crash (zfs, local, noatime, noexec, nosuid, >> nfsv4acl >> s) >> zroot/var/log on /mnt/var/log (zfs, local, noatime, noexec, nosuid, >> nfsv4acls) >> zroot/var/mail on /mnt/var/mail (zfs, local, nfsv4acls) >> zroot/var/tmp on /mnt/var/tmp (zfs, local, noatime, nosuid, nfsv4acls) >> zroot on /mnt/zroot (zfs, local, noatime, nfsv4acls) >> devfs on /mnt/dev (devfs, local, multilabel) >> /mnt/usr/freebsd-dist on /usr/freebsd-dist (nullfs, local, union) >> devfs on /mnt/dev (devfs, local, multilabel) >> >> >> After manually adding users and reboot: >> >>> zfs list >> NAME USED AVAIL REFER MOUNTPOINT >> zroot 301M 441G 96K /zroot >> zroot/ROOT 299M 441G 96K none >> zroot/ROOT/default 299M 441G 299M / >> zroot/tmp 96K 441G 96K /tmp >> zroot/usr 424K 441G 96K /usr >> zroot/usr/home 136K 441G 136K /usr/home >> zroot/usr/ports 96K 441G 96K /usr/ports >> zroot/usr/src 96K 441G 96K /usr/src >> zroot/var 616K 441G 96K /var >> zroot/var/audit 96K 441G 96K /var/audit >> zroot/var/crash 96K 441G 96K /var/crash >> zroot/var/log 136K 441G 136K /var/log >> zroot/var/mail 96K 441G 96K /var/mail >> zroot/var/tmp 96K 441G 96K /var/tmp >> >>> mount >> zroot/ROOT/default on / (zfs, local, noatime, nfsv4acls) >> devfs on /dev (devfs, local, multilabel) >> >> >> On 02/24/17 19:18, Allan Jude wrote: >>> On 2017-02-24 20:03, Robert wrote: >>>> Another strange thing is that other folders (e.g. /etc) work fine: >>>> >>>> after install: >>>> >>>> # ls -ldh /etc >>>> drwxr-xr-x 25 root wheel 106B Feb 25 00:57 /etc >>>> >>>> After reboot: >>>> >>>> all my changes in /etc/rc.conf are preserved. >>>> >>>> >>>> >>>> On 02/23/17 19:36, Robert wrote: >>>>> After installation finished and user has been added from the shell: >>>>> >>>>> # ls -ldh /tmp >>>>> drwxrwxrwt 2 root wheel 2B Sep 29 01:43 /tmp >>>>> >>>>> # getfacl /tmp >>>>> # file: /tmp >>>>> # owner: root >>>>> # group: wheel >>>>> owner@:rwxp--aARWcCos:-------:allow >>>>> group@:rwxp--a-R-c--s:-------:allow >>>>> everyone@:rwxp--a-R-c--s:-------:allow >>>>> >>>>> # ls -la /usr/home/ >>>>> total 35 >>>>> drwxr-xr-x 3 root wheel 3 Feb 24 03:21 . >>>>> drwxr-xr-x 16 root wheel 16 Feb 24 03:21 .. >>>>> drwxr-xr-x 2 robert robert 10 Feb 24 03:21 robert >>>>> # >>>>> >>>>> After reboot: >>>>> >>>>> # ls -ldh /tmp >>>>> drwxr-xr-x 6 root wheel 6B Feb 24 03:34 /tmp >>>>> >>>>> # getfacl /tmp >>>>> # file: /tmp >>>>> # owner: root >>>>> # group: wheel >>>>> owner@:rwxp--aARWcCos:-------:allow >>>>> group@:r-x---a-R-c--s:-------:allow >>>>> everyone@:r-x---a-R-c--s:-------:allow >>>>> >>>>> # ls -la /usr/home/ >>>>> total 9 >>>>> drwxr-xr-x 2 root wheel 2 Feb 24 01:54 . >>>>> drwxr-xr-x 16 root wheel 16 Feb 24 03:21 .. >>>>> >>>>> On 02/15/17 20:40, Allan Jude wrote: >>>>>> On 2017-02-15 23:17, Robert wrote: >>>>>>> Hi. >>>>>>> >>>>>>> I've installed FreeBSD in ZFS mirror mode many times on different >>>>>>> hardware. >>>>>>> >>>>>>> The last step was always "Exit to the system to make final changes" >>>>>>> where I'm performing something like below: >>>>>>> >>>>>>> pw useradd -n myuser -s /bin/tcsh -m >>>>>>> pw groupmod wheel -m myuser >>>>>>> passwd myuser >>>>>>> >>>>>>> After reboot my user was there and everything worked as expected. >>>>>>> >>>>>>> /tmp folder was always writable after reboot btw. >>>>>>> >>>>>>> >>>>>>> Starting from FreeBSD 11.0 I've noticed a following "bug": >>>>>>> >>>>>>> once user added on the final step, all folders are created properly >>>>>>> (folder /home/myuser is there). >>>>>>> >>>>>>> After reboot, I can login as myuser, but /home/myuser is not there! >>>>>>> /home folder is empty! >>>>>>> >>>>>>> Moreover, /tmp is read-only! >>>>>>> >>>>>>> So I have to perform: >>>>>>> >>>>>>> su >>>>>>> chmod 1777 /tmp >>>>>>> pw userdel -n myuser >>>>>>> pw useradd -n myuser -s /bin/tcsh -m >>>>>>> pw groupmod wheel -m myuser >>>>>>> passwd myuser >>>>>>> >>>>>>> after first reboot to recover my user. After further reboots >>>>>>> everything >>>>>>> stays as it should. >>>>>>> >>>>>>> Is this expected behavior or a known bug? >>>>>>> >>>>>>> If expected - how can I get what I want after installation? >>>>>>> >>>>>>> Thanks! >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> freebsd-sysinstall@freebsd.org mailing list >>>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall >>>>>>> To unsubscribe, send any mail to >>>>>>> "freebsd-sysinstall-unsubscribe@freebsd.org" >>>>>> This is unexpected, but I have not seen this myself. >>>>>> >>>>>> On a fresh install, in the 'after install shell', what are the >>>>>> permissions on /tmp? >>>>>> >>>>>> And what are they after the reboot? >>>>>> >>>>>> >>>> _______________________________________________ >>>> freebsd-sysinstall@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall >>>> To unsubscribe, send any mail to >>>> "freebsd-sysinstall-unsubscribe@freebsd.org" >>> I'd need to see: >>> >>> zfs list >>> >>> and >>> >>> mount >>> >>> From the post-install jail, and from the after reboot >>> >>> To try to tell what is happening. >>> >> _______________________________________________ >> freebsd-sysinstall@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall >> To unsubscribe, send any mail to >> "freebsd-sysinstall-unsubscribe@freebsd.org" > This suggests you are missing: > zfs_enable="YES" > > in /etc/rc.conf > > and as such, /etc/rc.d/zfs is not being run, and mounting your non-root > filesystems. > From owner-freebsd-sysinstall@freebsd.org Wed Mar 15 23:42:58 2017 Return-Path: Delivered-To: freebsd-sysinstall@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 CFFC0D0EBFF for ; Wed, 15 Mar 2017 23:42:58 +0000 (UTC) (envelope-from robert.ayrapetyan@gmail.com) Received: from mail-pf0-x229.google.com (mail-pf0-x229.google.com [IPv6:2607:f8b0:400e:c00::229]) (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 90C7012B9 for ; Wed, 15 Mar 2017 23:42:58 +0000 (UTC) (envelope-from robert.ayrapetyan@gmail.com) Received: by mail-pf0-x229.google.com with SMTP id o126so15510271pfb.3 for ; Wed, 15 Mar 2017 16:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=vVPN0BeP19m7550ili/pvs2KEnM68o6xWNagGW7byJ0=; b=oODkXqtDulbnrr/Zq8//Ozsl/fzYGCsGRIKmtxQy+K0fS6Z3bBqxLsB5ZSlwwvDL0b lks2cqxv0vpRxIAbY7qREUpaOul++wQFCYihNj3ISg/mRrfuuP9juYc01SqFBj49Cg/V +N7MQpoiMp54efTr5XOdojZyNqujjPhvYaCdWEJtVkoESNVyBsmngAh3SGnEqTmIxJBJ W7bzFzPWTBIDUt9VVmJtWrYOwRR0NrcYJoJj3HdHzHSIhXX0DG4PlyPmuLXQNBZAgFRo uYI5aO3iSH8KPIigTqXNBqI8OIgT9zqGI4boG5jPSxJthectEMz7Ozgrws+B5/7iPcP2 VIkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=vVPN0BeP19m7550ili/pvs2KEnM68o6xWNagGW7byJ0=; b=a0BC9FL23LnJfIHDoT+BEdVpmEdFi7ffLqrGZ/O9Jfh+n8OCwWqbpn3dQfHwmWNW3o 8rqWKP1RfJzaPNBAQVhd3ceFbuZgqD7Qdc5VFxjP7Mw6DTiEDlak3lx7lMnmzV11WZAN yuqweKH9vm11Rn2U9vwTsw+jQY+Gmmja76Ur9M5MdkSDh002YrBkcdNqD7hjSawgMmJR QYk6nwpJfxfJ2In0ZafYsG1pepUFBOhcxArNpREkIIXLiDwQ1V9N1pt+J+qOLMl+heOF QqZ74xL3oLX6zcwEqZlSlwK9KYmmBcBFI/Zn2yj2SU4x3osr/f7uWhHfXbTnUuyqhkBD m2vA== X-Gm-Message-State: AFeK/H2TIUbJ3Ub4+8tGafLXBL4fIcf0ea9qoYeFJCmtICUzakC5dzKb+HThUC7oV4oGgw== X-Received: by 10.98.22.87 with SMTP id 84mr6935149pfw.145.1489621377824; Wed, 15 Mar 2017 16:42:57 -0700 (PDT) Received: from [192.168.1.116] (c-50-131-6-44.hsd1.ca.comcast.net. [50.131.6.44]) by smtp.gmail.com with ESMTPSA id b83sm6299650pfe.12.2017.03.15.16.42.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Mar 2017 16:42:57 -0700 (PDT) Subject: Re: Read-only file-system after install? To: freebsd-sysinstall@freebsd.org References: <80d9f08b-f0bf-c3c2-6307-78fa7e04b5b9@gmail.com> <1ac9555c-8cde-b7ba-64d5-d84889c415a8@freebsd.org> <366e1b1b-8f5d-9ddd-7ab5-22633cd3c0af@gmail.com> <2fe7548c-9ded-1f79-e82c-d490e206743f@gmail.com> <395ffd76-761b-f61c-90f2-7a71c3dc5f6d@gmail.com> <8bbc62b4-97fe-7566-1a50-24f622c84c3d@freebsd.org> <623246e5-316d-0773-c4f1-db71f33ac894@gmail.com> From: Robert Message-ID: <5b516247-b8c4-f6fa-bcce-9fc96a7a051d@gmail.com> Date: Wed, 15 Mar 2017 16:42:56 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <623246e5-316d-0773-c4f1-db71f33ac894@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 23:42:58 -0000 My bad, it's zfs_load in loader.conf... Omg, let me try zfs_enable in rc.conf. On 03/15/17 16:34, Robert wrote: > Weird, I've removed it because I have this exact line in > /boot/loader.conf... > > :) > > > On 03/15/17 16:26, Allan Jude wrote: >> On 2017-03-15 19:21, Robert wrote: >>> After install: >>> >>> # zfs list >>> NAME USED AVAIL REFER MOUNTPOINT >>> zroot 301M 441G 96K /mnt/zroot >>> zroot/ROOT 299M 441G 96K none >>> zroot/ROOT/default 299M 441G 299M /mnt >>> zroot/tmp 96K 441G 96K /mnt/tmp >>> zroot/usr 384K 441G 96K /mnt/usr >>> zroot/usr/home 96K 441G 96K /mnt/usr/home >>> zroot/usr/ports 96K 441G 96K /mnt/usr/ports >>> zroot/usr/src 96K 441G 96K /mnt/usr/src >>> zroot/var 588K 441G 96K /mnt/var >>> zroot/var/audit 96K 441G 96K /mnt/var/audit >>> zroot/var/crash 96K 441G 96K /mnt/var/crash >>> zroot/var/log 108K 441G 108K /mnt/var/log >>> zroot/var/mail 96K 441G 96K /mnt/var/mail >>> zroot/var/tmp 96K 441G 96K /mnt/var/tmp >>> >>> # mount >>> /dev/iso9660/11_0_RELEASE_P1_AMD64_BO on / (cd9660, local, read-only) >>> devfs on /dev (devfs, local, multilabel) >>> /dev/md0 on /var (ufs, local) >>> /dev/md1 on /tmp (ufs, local) >>> zroot/ROOT/default on /mnt (zfs, local, noatime, nfsv4acls) >>> zroot/tmp on /mnt/tmp (zfs, local, noatime, nosuid, nfsv4acls) >>> zroot/usr/home on /mnt/usr/home (zfs, local, noatime, nfsv4acls) >>> zroot/usr/ports on /mnt/usr/ports (zfs, local, noatime, nosuid, >>> nfsv4acls) >>> zroot/usr/src on /mnt/usr/src (zfs, local, noatime, nfsv4acls) >>> zroot/var/audit on /mnt/var/audit (zfs, local, noatime, noexec, >>> nosuid, >>> nfsv4acl >>> s) >>> zroot/var/crash on /mnt/var/crash (zfs, local, noatime, noexec, >>> nosuid, >>> nfsv4acl >>> s) >>> zroot/var/log on /mnt/var/log (zfs, local, noatime, noexec, nosuid, >>> nfsv4acls) >>> zroot/var/mail on /mnt/var/mail (zfs, local, nfsv4acls) >>> zroot/var/tmp on /mnt/var/tmp (zfs, local, noatime, nosuid, >>> nfsv4acls) >>> zroot on /mnt/zroot (zfs, local, noatime, nfsv4acls) >>> devfs on /mnt/dev (devfs, local, multilabel) >>> /mnt/usr/freebsd-dist on /usr/freebsd-dist (nullfs, local, union) >>> devfs on /mnt/dev (devfs, local, multilabel) >>> >>> >>> After manually adding users and reboot: >>> >>>> zfs list >>> NAME USED AVAIL REFER MOUNTPOINT >>> zroot 301M 441G 96K /zroot >>> zroot/ROOT 299M 441G 96K none >>> zroot/ROOT/default 299M 441G 299M / >>> zroot/tmp 96K 441G 96K /tmp >>> zroot/usr 424K 441G 96K /usr >>> zroot/usr/home 136K 441G 136K /usr/home >>> zroot/usr/ports 96K 441G 96K /usr/ports >>> zroot/usr/src 96K 441G 96K /usr/src >>> zroot/var 616K 441G 96K /var >>> zroot/var/audit 96K 441G 96K /var/audit >>> zroot/var/crash 96K 441G 96K /var/crash >>> zroot/var/log 136K 441G 136K /var/log >>> zroot/var/mail 96K 441G 96K /var/mail >>> zroot/var/tmp 96K 441G 96K /var/tmp >>> >>>> mount >>> zroot/ROOT/default on / (zfs, local, noatime, nfsv4acls) >>> devfs on /dev (devfs, local, multilabel) >>> >>> >>> On 02/24/17 19:18, Allan Jude wrote: >>>> On 2017-02-24 20:03, Robert wrote: >>>>> Another strange thing is that other folders (e.g. /etc) work fine: >>>>> >>>>> after install: >>>>> >>>>> # ls -ldh /etc >>>>> drwxr-xr-x 25 root wheel 106B Feb 25 00:57 /etc >>>>> >>>>> After reboot: >>>>> >>>>> all my changes in /etc/rc.conf are preserved. >>>>> >>>>> >>>>> >>>>> On 02/23/17 19:36, Robert wrote: >>>>>> After installation finished and user has been added from the shell: >>>>>> >>>>>> # ls -ldh /tmp >>>>>> drwxrwxrwt 2 root wheel 2B Sep 29 01:43 /tmp >>>>>> >>>>>> # getfacl /tmp >>>>>> # file: /tmp >>>>>> # owner: root >>>>>> # group: wheel >>>>>> owner@:rwxp--aARWcCos:-------:allow >>>>>> group@:rwxp--a-R-c--s:-------:allow >>>>>> everyone@:rwxp--a-R-c--s:-------:allow >>>>>> >>>>>> # ls -la /usr/home/ >>>>>> total 35 >>>>>> drwxr-xr-x 3 root wheel 3 Feb 24 03:21 . >>>>>> drwxr-xr-x 16 root wheel 16 Feb 24 03:21 .. >>>>>> drwxr-xr-x 2 robert robert 10 Feb 24 03:21 robert >>>>>> # >>>>>> >>>>>> After reboot: >>>>>> >>>>>> # ls -ldh /tmp >>>>>> drwxr-xr-x 6 root wheel 6B Feb 24 03:34 /tmp >>>>>> >>>>>> # getfacl /tmp >>>>>> # file: /tmp >>>>>> # owner: root >>>>>> # group: wheel >>>>>> owner@:rwxp--aARWcCos:-------:allow >>>>>> group@:r-x---a-R-c--s:-------:allow >>>>>> everyone@:r-x---a-R-c--s:-------:allow >>>>>> >>>>>> # ls -la /usr/home/ >>>>>> total 9 >>>>>> drwxr-xr-x 2 root wheel 2 Feb 24 01:54 . >>>>>> drwxr-xr-x 16 root wheel 16 Feb 24 03:21 .. >>>>>> >>>>>> On 02/15/17 20:40, Allan Jude wrote: >>>>>>> On 2017-02-15 23:17, Robert wrote: >>>>>>>> Hi. >>>>>>>> >>>>>>>> I've installed FreeBSD in ZFS mirror mode many times on different >>>>>>>> hardware. >>>>>>>> >>>>>>>> The last step was always "Exit to the system to make final >>>>>>>> changes" >>>>>>>> where I'm performing something like below: >>>>>>>> >>>>>>>> pw useradd -n myuser -s /bin/tcsh -m >>>>>>>> pw groupmod wheel -m myuser >>>>>>>> passwd myuser >>>>>>>> >>>>>>>> After reboot my user was there and everything worked as expected. >>>>>>>> >>>>>>>> /tmp folder was always writable after reboot btw. >>>>>>>> >>>>>>>> >>>>>>>> Starting from FreeBSD 11.0 I've noticed a following "bug": >>>>>>>> >>>>>>>> once user added on the final step, all folders are created >>>>>>>> properly >>>>>>>> (folder /home/myuser is there). >>>>>>>> >>>>>>>> After reboot, I can login as myuser, but /home/myuser is not >>>>>>>> there! >>>>>>>> /home folder is empty! >>>>>>>> >>>>>>>> Moreover, /tmp is read-only! >>>>>>>> >>>>>>>> So I have to perform: >>>>>>>> >>>>>>>> su >>>>>>>> chmod 1777 /tmp >>>>>>>> pw userdel -n myuser >>>>>>>> pw useradd -n myuser -s /bin/tcsh -m >>>>>>>> pw groupmod wheel -m myuser >>>>>>>> passwd myuser >>>>>>>> >>>>>>>> after first reboot to recover my user. After further reboots >>>>>>>> everything >>>>>>>> stays as it should. >>>>>>>> >>>>>>>> Is this expected behavior or a known bug? >>>>>>>> >>>>>>>> If expected - how can I get what I want after installation? >>>>>>>> >>>>>>>> Thanks! >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> freebsd-sysinstall@freebsd.org mailing list >>>>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall >>>>>>>> To unsubscribe, send any mail to >>>>>>>> "freebsd-sysinstall-unsubscribe@freebsd.org" >>>>>>> This is unexpected, but I have not seen this myself. >>>>>>> >>>>>>> On a fresh install, in the 'after install shell', what are the >>>>>>> permissions on /tmp? >>>>>>> >>>>>>> And what are they after the reboot? >>>>>>> >>>>>>> >>>>> _______________________________________________ >>>>> freebsd-sysinstall@freebsd.org mailing list >>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall >>>>> To unsubscribe, send any mail to >>>>> "freebsd-sysinstall-unsubscribe@freebsd.org" >>>> I'd need to see: >>>> >>>> zfs list >>>> >>>> and >>>> >>>> mount >>>> >>>> From the post-install jail, and from the after reboot >>>> >>>> To try to tell what is happening. >>>> >>> _______________________________________________ >>> freebsd-sysinstall@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall >>> To unsubscribe, send any mail to >>> "freebsd-sysinstall-unsubscribe@freebsd.org" >> This suggests you are missing: >> zfs_enable="YES" >> >> in /etc/rc.conf >> >> and as such, /etc/rc.d/zfs is not being run, and mounting your non-root >> filesystems. >> >