Luigi Romano
2018-Feb-13 17:30 UTC
[Samba] Samba PDC and Ubuntu desktop client logon script
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!
Rick Warner
2018-Feb-13 21:21 UTC
[Samba] Samba PDC and Ubuntu desktop client logon script
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. Thanks, Rick 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!
Reasonably Related Threads
- win 10 client on linux pdc, join domain ok, logon script fails to run
- win 10 client on linux pdc, join domain ok, logon script fails to run
- win 10 client on linux pdc, join domain ok, logon script fails to run
- win 10 client on linux pdc, join domain ok, logon script fails to run
- win 10 client on linux pdc, join domain ok, logon script fails to run