wrong permissions on files edited by etcupdate after upgrade to 11.3-RELEASE

Miroslav Lachman 000.fbsd at quip.cz
Wed Jul 10 19:21:38 UTC 2019


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


More information about the freebsd-stable mailing list