Read-only file-system after install?
Robert
robert.ayrapetyan at gmail.com
Sat Feb 25 01:03:05 UTC 2017
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 at freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-sysinstall
>>> To unsubscribe, send any mail to
>>> "freebsd-sysinstall-unsubscribe at 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?
>>
>>
>
More information about the freebsd-sysinstall
mailing list