On 10/24/22 15:13, David Mulder via samba wrote:> On 10/24/22 4:08 PM, Peter Carlson via samba wrote: >> root at nc1:~# cat >> /var/lib/samba/sysvol/carlson.lab/Policies/{B6997861-495F-43DF-B01D-045048188B37}/Machine/VGP/VTLA/Unix/Scripts/Startup/manifest.xml >> <?xml version='1.0' encoding='UTF-8'?> >> <vgppolicy><policysetting><version>1</version><name>Unix >> Scripts</name><description>Represents Unix scripts to run on Group >> Policy >> clients</description><data><listelement><script>start_peter.sh</script><hash>63373D674E1DB8B574A1593F1D667C78</hash><run_once >> /></listelement></data></policysetting></vgppolicy> >> >> or easier to read: >> >> <?xml version='1.0' encoding='UTF-8'?> >> <vgppolicy> >> ? <policysetting> >> ??? <version>1</version> >> ??? <name>Unix Scripts</name> >> ??? <description>Represents Unix scripts to run on Group Policy >> clients</description> >> ??? <data> >> ????? <listelement> >> ??????? <script>start_peter.sh</script> >> <hash>63373D674E1DB8B574A1593F1D667C78</hash> >> ??????? <run_once /> >> ????? </listelement> >> ??? </data> >> ? </policysetting> >> </vgppolicy> >> > Modify the listelement to contain an empty 'parameters' element, like > this: > > ????? <listelement> > ??????? <script>start_peter.sh</script> > <hash>63373D674E1DB8B574A1593F1D667C78</hash> > ??????? <run_once /> > ??????? <parameters /> > ????? </listelement> > > That should fix it. Let me know the results and I'll push a fix to > master (and perhaps we should fix this in 4.18 also). >ok that fixed it.? So one of the 3 objectives is done. Anything I can do to help with user logon scripts?
On 10/24/22 4:21 PM, Peter Carlson via samba wrote:> ok that fixed it.? So one of the 3 objectives is done. > > Anything I can do to help with user logon scripts? >Well, you'll be happy to know that user policy just merged into master, so it gets triggered by winbind now. Unfortunately it will only be triggered at login, and not refreshed every 90 to 120 minutes like it's supposed to. More work to be done there. You could try writing a simple user CSE that does the mount. These are always run as root, with access to the user info, so it shouldn't be a problem creating the mounts. -- David Mulder Labs Software Engineer, Samba SUSE 1221 S Valley Grove Way, Suite 500 Pleasant Grove, UT 84062 (P)+1 385.208.2989 dmulder at suse.com http://www.suse.com
On 10/24/22 4:21 PM, Peter Carlson via samba wrote:> ok that fixed it.? So one of the 3 objectives is done. > > Anything I can do to help with user logon scripts? >https://gitlab.com/samba-team/samba/-/merge_requests/2767 https://bugzilla.samba.org/show_bug.cgi?id=15212 -- David Mulder Labs Software Engineer, Samba SUSE 1221 S Valley Grove Way, Suite 500 Pleasant Grove, UT 84062 (P)+1 385.208.2989 dmulder at suse.com http://www.suse.com