From owner-freebsd-sysinstall@freebsd.org Fri Feb 24 03:36:34 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 532BBCEAFA4 for ; Fri, 24 Feb 2017 03:36:34 +0000 (UTC) (envelope-from robert.ayrapetyan@gmail.com) Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::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 2278315E7 for ; Fri, 24 Feb 2017 03:36:34 +0000 (UTC) (envelope-from robert.ayrapetyan@gmail.com) Received: by mail-pf0-x22d.google.com with SMTP id p185so979932pfb.1 for ; Thu, 23 Feb 2017 19:36:34 -0800 (PST) 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=wcTSXL6rnWj79ykYB2ZONLIDoeGG9pqKfwZ0Yms0En0=; b=AGCXL0zvVbAYT52TrbfyHqs8Uu7UQ81f8CVf7bAOOxxmg+cUM2xJvH8rzWQ0mwi52o Dd0E6MVq85IjMGZJtOaBD4TB8F9xKAxX6/j5u/5FbjyqGehoWBRC7ee7uGUnspFm4Dm1 g/MSiFv2S8DcOO0GmGOP6lDsX8c8FktrjdyTvECvUd8TkXJdRmwQ0K45o9yvbw2IC7D6 GCYXgb/D9DXwFUQwzomvLiRXxp1/r0KmZKFB/yZR4WcqfpTnq2ccMni1wX72iQ9o53vl IK+3JgnarbKihJfn/gU3d0482Vq7CeR3nhoKWtAKT1CAM6vqMtP2ffzWm2nfJK0LejIX UbbQ== 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=wcTSXL6rnWj79ykYB2ZONLIDoeGG9pqKfwZ0Yms0En0=; b=gXRFu6O3QzQn75SqXuMVsTD0sAkLVDg9vCtt056Fdry+yCXFaqJwzxDLD7CG93M7xZ /19vKJ2zdmMza6qqMFlZYJ15zgS9B69XiYfwQMq7ADZSainvyNAzC9EuaCgs8elegox2 CYfAsxdrk8qZcQOouMr/RfiL+6/tFrBereL2BpDCP9fMvmN5P0w97qLWMGZgYgLCc0YS 6ksW0EJZ7ERkHaSd1oH96lTM+5hwvKygWiutviof25S+x5GHSE0j3ImquqDqlWPZEd/E sHkdAxTMl5ztqWAw5zcAc+f5ZgoLQfOB/DNJV4SOL2lX7+afErmUlw0O9OyMRlTnovXn Q+0A== X-Gm-Message-State: AMke39mZ/GcDtUIaYsuoZhcs8CMe7Zo7Ms9IwzRu2FzZ2Dgg9zrtUnlC++Or54riU3a9cA== X-Received: by 10.99.119.142 with SMTP id s136mr742810pgc.207.1487907393097; Thu, 23 Feb 2017 19:36:33 -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 85sm476576pfz.15.2017.02.23.19.36.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Feb 2017 19:36:32 -0800 (PST) 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> From: Robert Message-ID: <366e1b1b-8f5d-9ddd-7ab5-22633cd3c0af@gmail.com> Date: Thu, 23 Feb 2017 19:36:31 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <1ac9555c-8cde-b7ba-64d5-d84889c415a8@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: Fri, 24 Feb 2017 03:36:34 -0000 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? > >