Public bug reported: This is part of the long story trying to fix https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2078854.
During the back and forth patching python/samba/netcmd/gpo.py, a bug was found, fixed, and it's back: when updating the motd GPO, the new text is added, instead of replacing the existing one: $ sudo cat /var/lib/samba/sysvol/example.internal/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/MACHINE/VGP/VTLA/Unix/MOTD/manifest.xml | xq <?xml version='1.0' encoding='UTF-8'?> <vgppolicy> <policysetting> <version>1</version> <name>Text File</name> <description>Represents a Generic Text File</description> <apply_mode>replace</apply_mode> <data> <filename>motd</filename> <text>Welcome</text> <text>Welcome</text> <text>Welcome again</text> </data> </policysetting> </vgppolicy> Multiple invocations of this command will do that: $ sudo samba-tool gpo manage motd set {31B2F340-016D-11D2-945F-00C04FB984F9} "Welcome" -U Administrator ** Affects: samba (Ubuntu) Importance: Medium Assignee: Andreas Hasenack (ahasenack) Status: Triaged ** Affects: samba (Ubuntu Plucky) Importance: Medium Assignee: Andreas Hasenack (ahasenack) Status: Triaged ** Tags: server-todo ** Also affects: samba (Ubuntu Plucky) Importance: Medium Assignee: Andreas Hasenack (ahasenack) Status: Triaged -- You received this bug notification because you are a member of Ubuntu Server/Client Support Team, which is subscribed to samba in Ubuntu. Matching subscriptions: Ubuntu Server/Client Support Team https://bugs.launchpad.net/bugs/2107395 Title: Updating MOTD GPO adds new text instead of replacing existing one To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2107395/+subscriptions -- Mailing list: https://launchpad.net/~enterprise-support Post to : enterprise-support@lists.launchpad.net Unsubscribe : https://launchpad.net/~enterprise-support More help : https://help.launchpad.net/ListHelp