Update permissions and fix udhcp settings write