[Samba] Samba PDC and Ubuntu desktop client logon script

Rick Warner rick at microway.com
Tue Feb 13 21:21:27 UTC 2018

Hi Luigi,

It sounds like you're trying to apply group policy behavior to Linux 
domain members.  That is not directly supported.

Your best bet is probably to have a startup script that you manually add 
to your Ubuntu clients that checks the sysvol provided by your PDC for a 
specific file name (ie - ubuntu-login.sh) and then copies it to 
/etc/profile.d.  With typical configs, bash checks for any files ending 
in .sh in /etc/profile.d and sources them during your log in.


On 02/13/2018 12:30 PM, Luigi Romano via samba wrote:
>   Hi all,
> I managed to configure an UBUNTU 16.04 Server as PDC using Samba; I can
> successfully add Ubuntu or Windows client to the domain and all the users I
> created can access the network resources.
> I managed to let the Windows client run the logon script, thanks to which
> for example I am able to mount the "H: disk" for the user that is logging
> in on the Windows client.
> I would like the Ubuntu client to do something similar; I'd like to have a
> unique logon bash script in the server that the Ubuntu client fetch and
> execute when the user logs on the client itself.
> I've been googling a lot to find a solution but I didn't make it; can you
> please help me out!
> Thanks a lot in advance!

More information about the samba mailing list