nmbd when starting assumes that its initial uid/gid is zero. The global variables
initial_uid & initial_gid are always by default set to zero. While the normal users euid & egid are never zero.
Similar to smbd, nmbd should also call sec_init to ensure proper values are set at the start of the program.