Getting "Permission Denied" issues after migrating jails

Kaya Saman kayasaman at gmail.com
Sun Dec 11 15:05:08 UTC 2016


Thanks a lot Miroslav :-)

I found the issue eventually.....

For some reason it turns out the /var directory got set to 700 
permissions after the rsync.....

a simple chmod 755 /var fixed the issue, however, it looks like all 5 of 
my jails had the same problem?

on vuln.xml the permissions were fine 444. Well took till 4am to sort 
out, I ended up rebuilding all my ports too just to be safe of sym link 
and permission issues.

Regards,

Kaya


On 12/11/2016 03:00 PM, Miroslav Lachman wrote:
> Kaya Saman wrote on 2016/12/10 15:33:
>
>> which suggests fixing the noexec flags. On the actual ZFS dataset the
>> exec=on parameter is already set meaning that this must be a local issue
>> and something to do with the "chflags" command but I can't recall or
>> even find any clue on which files to run the command on and parameters
>> to use in "man chflags".
>
> Run ls -lo /var/db/pkg/vuln.xml to view permissions.
>
> You can use something like this to check all files with specified flag
>
> find /path/to/jail/ -flags +schg -exec ls -lo {} +
>
> Then check what is your kern_securelevel settings in host and in a 
> jails rc.conf. You cannot modify files witch flags is securelevel is 
> higher than 0.
>
> Miroslav Lachman
>



More information about the freebsd-jail mailing list