Fix samba "read only" and "guest ok" settings not applied correctly.