Bug 15768 - Linux GPO not creating /etc/sudoers.d/<file> and /etc/issue
Summary: Linux GPO not creating /etc/sudoers.d/<file> and /etc/issue
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Winbind (show other bugs)
Version: 4.21.1
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-16 13:27 UTC by Stefan Kania
Modified: 2025-11-07 07:52 UTC (History)
0 users

See Also:


Attachments
gpupdate --force (58.64 KB, text/plain)
2025-11-06 08:31 UTC, Stefan Kania
no flags Details
gpupdate --rsop (83 bytes, text/plain)
2025-11-06 08:31 UTC, Stefan Kania
no flags Details
fixed version of rspo result (41 bytes, text/plain)
2025-11-07 07:46 UTC, Stefan Kania
no flags Details
final version (7.83 KB, text/plain)
2025-11-07 07:52 UTC, Stefan Kania
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Kania 2024-12-16 13:27:04 UTC
Im useing Debian 12 on both, the client and the domaincontroller. Samba version on both is 4.21.1 from Debian backports. Creating a GPO creates /etc/motd but not /etc/issue and also the sudoers file in /etc/sudoers.d are not created. samba-gpupdate --force and then samba-gpupdate --rsop are showing the content of the GPO, for both /etc/issue and sudoers. Restarting winbind on both is not fixing the problem.
Comment 1 Stefan Kania 2024-12-16 14:54:00 UTC
Another Problem with GPO is, thart as soon as I add one or more smb.conf parameter ALL defaultsettings are in smb.conf. Then, because the parameter  'winbind separator' is not set the smb.conf is changed to:

winbind separator = winbind use default domain = Yes

only one line for both parameters. The testparm is giving me:


ERROR: the 'winbind separator' parameter must be a single character.
Comment 2 Douglas Bagnall 2025-09-05 22:42:48 UTC
(In reply to Stefan Kania from comment #1)
> Another Problem with GPO is, thart as soon as I add one or more smb.conf parameter ALL defaultsettings are in smb.conf. Then, because the parameter  'winbind separator' is not set the smb.conf is changed to:

THis has been reported again in
https://bugzilla.samba.org/show_bug.cgi?id=15906


I won't close either as a duplicate, as the first message in this bug looks to be describing a distinct issue, but please let's use bug 15906 for the winbind separator thing.
Comment 3 David Mulder 2025-11-05 17:10:08 UTC
Would you please run `samba-gpupdate -d 10 --force` (adds debug), and share the output? Also share the output of `samba-gpupdate --rsop`, so we can see exactly which extensions aren't applying?
Comment 4 Stefan Kania 2025-11-06 08:31:05 UTC
Created attachment 18767 [details]
gpupdate --force
Comment 5 Stefan Kania 2025-11-06 08:31:35 UTC
Created attachment 18768 [details]
gpupdate --rsop
Comment 6 David Mulder 2025-11-06 22:36:55 UTC
(In reply to Stefan Kania from comment #5)

Your rsop command didn't run correctly. It looks like you tried to pass `--rsop` to nano?
Comment 7 Stefan Kania 2025-11-07 07:46:41 UTC
Created attachment 18772 [details]
fixed version of rspo result

Sorry for the first version of the rspo result. Here is the fixed version.
Comment 8 Stefan Kania 2025-11-07 07:52:29 UTC
Created attachment 18773 [details]
final version

Sorry, but we at the moment doing several things at the same time. Now it's ok