From owner-freebsd-sysinstall@freebsd.org Thu Feb 16 04:17:50 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 5C68ACE1090 for ; Thu, 16 Feb 2017 04:17:50 +0000 (UTC) (envelope-from robert.ayrapetyan@gmail.com) Received: from mail-pf0-x22e.google.com (mail-pf0-x22e.google.com [IPv6:2607:f8b0:400e:c00::22e]) (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 370DDA3B for ; Thu, 16 Feb 2017 04:17:50 +0000 (UTC) (envelope-from robert.ayrapetyan@gmail.com) Received: by mail-pf0-x22e.google.com with SMTP id 189so2242191pfu.3 for ; Wed, 15 Feb 2017 20:17:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=jc1MmEaNEb3/QCX2kY6RAOz3MgIM2fPhXlyY4beiWeM=; b=i1bhYV1tjGPIutUmVUsaYvg/ZmzPqJzOF3NYfghj2IjFhyD4g72Bj7hKwyQakzJ/wQ tk3TIyjg53aASzM2N+DA9PEyFfzPy33OFLcQiEheGJfqCC6ZpFFGvYW8jtk2GTCFvyW1 pGlZyBR4h9juVC1TXxPu4loHnExnrvlDBviHDWD36m9QY0fQeY8Y1AlZJLU4rhCx06RL tgINu/+D/KfAOj2IxgvmaXbznogUiQVQ5ZOxyOMowZFio3tH9rv4WDo49VIlStqCRNpK HHRON2WDM28cKIoyLerWuXgHEcQ5u9Wga2VdSxnY/jFM4j4Mfi3G8pMSpQDvweVNOBwQ qHYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=jc1MmEaNEb3/QCX2kY6RAOz3MgIM2fPhXlyY4beiWeM=; b=tcqrqCcI68uHkIRymBQY9PuDu4zZlRtx/+a8cSpFkbd6v0LevlMkKSd4YRvyfOSHEl HPrJ0p0ZUVQprhvnRx3R/2PTfyxrM/YV7KUUwdLgwRHGQroyh0Qnf4SICvtLJ3657qhR tcJvQ5C75SS94AG+qX0+Di0cfCObUrmovTFpa3hCzI94DVNEaWT6g2XnN7B4ECS/c8B6 7FCMAYNnX7tNO7k2q6YZVQ+hozG/DgipIgAzT8489stTdn73UC3s0PnEORhuavEuqgTn j6SPi7HNZI2TzUJwv8Ga+C3RleD7wT0A1TUsJFmKpwATSZ48E5A6gU6m9cYG9nIOnLJM AheA== X-Gm-Message-State: AMke39nogmKY9E0GZJ2JOTKTln1a06itfHz9Li0TN4BxPDdzFOxuCjytbLqiB44UZuQ7DA== X-Received: by 10.84.141.1 with SMTP id 1mr353628plu.33.1487218669532; Wed, 15 Feb 2017 20:17:49 -0800 (PST) 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 d69sm10152548pfd.11.2017.02.15.20.17.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 20:17:48 -0800 (PST) To: freebsd-sysinstall@freebsd.org From: Robert Subject: Read-only file-system after install? Message-ID: <80d9f08b-f0bf-c3c2-6307-78fa7e04b5b9@gmail.com> Date: Wed, 15 Feb 2017 20:17:47 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; 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: Thu, 16 Feb 2017 04:17:50 -0000 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! From owner-freebsd-sysinstall@freebsd.org Thu Feb 16 04:40:38 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 A7474CE168F for ; Thu, 16 Feb 2017 04:40:38 +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 6D89C13D1 for ; Thu, 16 Feb 2017 04:40:38 +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 4CB5913C1C for ; Thu, 16 Feb 2017 04:40:36 +0000 (UTC) Subject: Re: Read-only file-system after install? To: freebsd-sysinstall@freebsd.org References: <80d9f08b-f0bf-c3c2-6307-78fa7e04b5b9@gmail.com> From: Allan Jude Message-ID: <1ac9555c-8cde-b7ba-64d5-d84889c415a8@freebsd.org> Date: Wed, 15 Feb 2017 23:40:25 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <80d9f08b-f0bf-c3c2-6307-78fa7e04b5b9@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bT7CauqO72SHi1bHdW97wjfEUGgH0ifC5" 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: Thu, 16 Feb 2017 04:40:38 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bT7CauqO72SHi1bHdW97wjfEUGgH0ifC5 Content-Type: multipart/mixed; boundary="Nqfi0Xha36Axuf1NkTGt06ogcdrsLEbs4"; protected-headers="v1" From: Allan Jude To: freebsd-sysinstall@freebsd.org Message-ID: <1ac9555c-8cde-b7ba-64d5-d84889c415a8@freebsd.org> Subject: Re: Read-only file-system after install? References: <80d9f08b-f0bf-c3c2-6307-78fa7e04b5b9@gmail.com> In-Reply-To: <80d9f08b-f0bf-c3c2-6307-78fa7e04b5b9@gmail.com> --Nqfi0Xha36Axuf1NkTGt06ogcdrsLEbs4 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2017-02-15 23:17, Robert wrote: > Hi. >=20 > I've installed FreeBSD in ZFS mirror mode many times on different hardw= are. >=20 > The last step was always "Exit to the system to make final changes" > where I'm performing something like below: >=20 > pw useradd -n myuser -s /bin/tcsh -m > pw groupmod wheel -m myuser > passwd myuser >=20 > After reboot my user was there and everything worked as expected. >=20 > /tmp folder was always writable after reboot btw. >=20 >=20 > Starting from FreeBSD 11.0 I've noticed a following "bug": >=20 > once user added on the final step, all folders are created properly > (folder /home/myuser is there). >=20 > After reboot, I can login as myuser, but /home/myuser is not there! > /home folder is empty! >=20 > Moreover, /tmp is read-only! >=20 > So I have to perform: >=20 > su > chmod 1777 /tmp > pw userdel -n myuser > pw useradd -n myuser -s /bin/tcsh -m > pw groupmod wheel -m myuser > passwd myuser >=20 > after first reboot to recover my user. After further reboots everything= > stays as it should. >=20 > Is this expected behavior or a known bug? >=20 > If expected - how can I get what I want after installation? >=20 > Thanks! >=20 >=20 >=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 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? --=20 Allan Jude --Nqfi0Xha36Axuf1NkTGt06ogcdrsLEbs4-- --bT7CauqO72SHi1bHdW97wjfEUGgH0ifC5 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) iQIcBAEBAgAGBQJYpS08AAoJEBmVNT4SmAt+IC8QAMFqNGIpVRLF5zgPKR8sRgd0 SmOWJeEsMpn8dhOxXTrfo3jAMo9NSMffoa1YFgSRO1HWcsU+efO1VwWXXHEe3COF qO8woT/8MIrHQzfmVGEw3lcq4FSEdk9zhiUBnKgtP/xxS0943qfCikmxcAdUTsUB EQYg8iQ/FaitWDUhDKeWP1TfAyL70HMEv9MExfJFzRro5EHVLXzmURz7iWlfGORz QutZB3uJXEoyixelwwoCcYXiR4BDTFeWYgZUOKjiC2yKgWzkItGOv80jmy3f2WaG J0aNm39GJbQ6mrPiXAHt0fxbNSLRalRxQxO9uttSpFdFc7AmeN9+2Wmjs8Lq9/NR WHBayhVkagQm5OltwE748XsVltei+PVu4+VGd7Qxcj5zsGXBPr9FAKhIJEdd6dko 2orLM8TTFLwi16AytmFgB7kdUw0mZXb6F4OJ2h0iEVqtNkhARuxT/waqT6y2T8qJ Akw28mqo1/sNksomK2gqbFlPfKGzo+EBEvsyV71MhiNxMpt9ViCWZt9jnNA2G1dl RSI/bDdNrYg4x+iddADmW36Zn6coH6kWj3HiGwmYaYkWfxyofxaRrIXDg83tt8Lo b6OFaLLhvpLz/KDJCOLMXNoIkc4YyDV6vtyCsZ8XsgjEOYVUqtqSCDRS4FLbeJ7q c57TaHNn8UzBQo4TRntK =UdcJ -----END PGP SIGNATURE----- --bT7CauqO72SHi1bHdW97wjfEUGgH0ifC5--