Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Feb 2017 22:18:31 -0500
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-sysinstall@freebsd.org
Subject:   Re: Read-only file-system after install?
Message-ID:  <e5d5412d-772f-8953-d3c5-5d7e549530b8@freebsd.org>
In-Reply-To: <2fe7548c-9ded-1f79-e82c-d490e206743f@gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--1q2XvLOpnb089n4nTEs6Vmlr6GnJeRhwC
Content-Type: multipart/mixed; boundary="4xvsvwgDEEAFAuDOK5mtkPq5s6oKDxikg";
 protected-headers="v1"
From: Allan Jude <allanjude@freebsd.org>
To: freebsd-sysinstall@freebsd.org
Message-ID: <e5d5412d-772f-8953-d3c5-5d7e549530b8@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>
In-Reply-To: <2fe7548c-9ded-1f79-e82c-d490e206743f@gmail.com>

--4xvsvwgDEEAFAuDOK5mtkPq5s6oKDxikg
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 2017-02-24 20:03, Robert wrote:
> Another strange thing is that other folders (e.g. /etc) work fine:
>=20
> after install:
>=20
> #  ls -ldh /etc
> drwxr-xr-x  25 root  wheel   106B Feb 25 00:57 /etc
>=20
> After reboot:
>=20
> all my changes in /etc/rc.conf are preserved.
>=20
>=20
>=20
> 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 everyth=
ing
>>>> 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?
>>>
>>>
>>
>=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"

I'd need to see:

zfs list

and

mount

=46rom the post-install jail, and from the after reboot

To try to tell what is happening.

--=20
Allan Jude


--4xvsvwgDEEAFAuDOK5mtkPq5s6oKDxikg--

--1q2XvLOpnb089n4nTEs6Vmlr6GnJeRhwC
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)

iQIcBAEBAgAGBQJYsPeKAAoJEBmVNT4SmAt+2r0P/igU45PxHTwv6Oudq0M1bG0W
P2Br2XWEJgU6AWAdUK5fMlp+C0uxmlWmpVf+dHUdSlpc0vVN21eMh/WccuYSB58h
D77RGWb3hDDlrzQdbJzbenTfF1DJ9vQJRMofhFOd/7rxg3/rOwEeBcsH/tqSNXoA
ER22jLs7yPWvJdiggmN1KQMzzu75SJJx5BqhGZC70GViCZwptmDGJ5+u1KqONN+B
oVO0FWA/vzLqXbmgEygDsfOpXhQHgKTyJr2PgkAaEDT5+fqLroqG3/tdgV3OJSHT
feI/WDcG7wuvIGk0TrlX3H2SEi4IfIBYTmtUlJsyKl8GgEqRJ/k6Y3Aqle0LMuDQ
HzViz0vHdp3t040YTafc7A+Y5zBlr9v4gPmq6fQ0BBffevPUx4IU5w5YDuMr4Blc
j3/R3hZxNYdBngZsGzXO0IlZ74myv6X7WBxcgW3hG/uOaVhaRbVf5Ag6Q6eZuMHX
hew023ov6sjui0TlYDw2IBgfRKDn1T31NczQDXrWtET5pplOuTiflqeYFSrd5MvN
s+h5zFehMdPD5hcE4cWkBTQ+ZYaNdy3JrkrQfrJJR8UsSkNKt8oC5eVuv5rp3r5Q
8aXZNxgDJ5/wvKWv1oQXOhXSe2axPcuXydgIA09DaruD0QUjqkIofEGid4XRjnSF
FFwAkiMXiyIdai7MDc88
=q5w2
-----END PGP SIGNATURE-----

--1q2XvLOpnb089n4nTEs6Vmlr6GnJeRhwC--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e5d5412d-772f-8953-d3c5-5d7e549530b8>