Make it possible to start daemons as root/root by setting user/group to root/root

Change the check for valid users/groups to check for definiedness
instead of for whether the return value is true. Makes it possible to
run a daemon as root/root.