Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2019 21:21:23 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        freebsd-stable@freebsd.org
Subject:   wrong permissions on files edited by etcupdate after upgrade to 11.3-RELEASE
Message-ID:  <c882a4a9-edcb-9865-a17d-87a1669f0d59@quip.cz>

next in thread | raw e-mail | index | archive | help
I upgraded our first machine from 11.2-p10 to 11.3-RELEASE from the 
sources with GENERIC kernel.
I did not run "make delete-old" but some installed apps, like tmux, 
cannot run anymore:

# tmux
Shared object "libevent-2.1.so.6" not found, required by "tmux"

Then I found some services are not running. For example jails and PF. I 
tried to run PF manually:

# service pf reload
pf does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable

# ls -l /etc/rc.d/pf
-rw-r--r--  1 root  wheel   1.2K Jul 10 16:56 /etc/rc.d/pf

OK, now I know what this problem is:

# ls -l /etc/rc.d/ | grep 'rw-r--r'
-rw-r--r--  1 root  wheel   3032 Jul 10 20:30 ipfw
-rw-r--r--  1 root  wheel    788 Jul 10 20:32 ipmon
-rw-r--r--  1 root  wheel  14256 Jul 10 16:58 jail
-rw-r--r--  1 root  wheel   2956 Jul 10 16:56 ldconfig
-rw-r--r--  1 root  wheel   4500 Jul 10 20:34 ntpd
-rw-r--r--  1 root  wheel   1263 Jul 10 16:56 pf

All these files where edited by etcupdate because there were some 
conflicts. I was using mergemaster in the past and never had a problem 
like this so my question is: why files with conflicts edited by 
etcupdate have wrong permissions?

Kind regards
Miroslav Lachman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c882a4a9-edcb-9865-a17d-87a1669f0d59>