[Samba] SAMBA gpo startup scripts from user

David Mulder dmulder at samba.org
Tue Aug 8 14:54:54 UTC 2023


On 8/7/23 11:57 PM, mark stayman via samba wrote:
> Hello. Is there a way to start Gpo startup scripts using logged user? i can
> see that startup scripts working from root, yes there is option run_as
> (which somehow dont work) but this is not what i need, i dont want to
> create GPO for every user. i need gpo that will start script from user that
> just logged it, not root.

Startup scripts haven't been implemented for User policy, only for 
machine (which is why you see them applied as root).

There is a User policy for cron jobs: 
https://dmulder.github.io/group-policy-book/scripts.html
This doesn't apply specifically on startup, but you could write a policy 
that runs the script as that user on a daily or hourly bases, for example.

-- 
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




More information about the samba mailing list