Samba fails to start with error: failed to setup guest info #95796
Labels
0.kind: bug
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
6.topic: nixos
Describe the bug
I'm trying to integrate my NixOS setup with an ad server. I've set up samba the following way using the sssd guide at https://sssd.io/docs/users/ad_provider.html:
When applying the config samba fails with the following error:
Note the error message ERROR: failed to setup guest info.
To Reproduce
Enable the samba service with the above configuration.
Expected behavior
The Samba service should start without an error.
Additional context
I've found the following RedHat ticket (https://bugzilla.redhat.com/show_bug.cgi?id=1648399), which recommends running the following command to fix the issue:
net groupmap add sid=S-1-5-32-546 unixgroup=nobody type=builtin
After running
nix-shell -p samba4Full --command 'net groupmap add sid=S-1-5-32-546 unixgroup=nobody type=builtin'
and rebuilding the config with
nixos-rebuild switch
Samba starts up fine.IMHO the Samba package should verify the existence of the guest account and automatically add it via the above command if missing.
Notify maintainers
@aneeshusa
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information:
The text was updated successfully, but these errors were encountered: