You are here

How freebsd-update broke my jails

I usually perform a binary update of my jails using

[geshifilter-code]#freebsd-update fetch install #freebsd-update -d /usr/jails/basejail fetch install[/geshifilter-code]

This has worked for years. After doing it yesterday I was unable to login to any of my jails and pretty much everything broke. For example logging in using [geshifilter-code]ssh[/geshifilter-code] gave logged the error: [geshifilter-code]/bin/sh permission denied[/geshifilter-code]

After spending the day on it I have discovered that the upgrade process changed permissions on [geshifilter-code]/usr/jails/basejail[/geshifilter-code] to [geshifilter-code]700[/geshifilter-code]. Changing it to [geshifilter-code]755[/geshifilter-code] fixed everything.

Add new comment

Simple Copyright Policy: If you want to reproduce anything on this site, get my permission first.