Answer the question
In order to leave comments, you need to log in
How to set up netlogon samba DC?
There is a domain on samba, users are created, everyone enters, rejoices, drinks tea. But!
I would like to execute some commands when a user enters the domain, for example: net use x: //192.168.0.2
You need to automatically mount network resources, maybe there is another way - tell me, but executing commands during authorization will be convenient!
there is smb.conf, it says:
# Global parameters
[global]
workgroup = WG
realm = WG.LOCAL
netbios name = UBUNTU
server role = active directory domain controller
dns forwarder = 192.168.0.1
allow dns updates = nonsecure and secure
printing = bsd
printcap name = /dev/null
[netlogon]
# path = /usr/local/samba/var/locks/sysvol/btgp.local/scripts
path = /usr/local/samba/etc/scripts
read only = No
logon path = \\%N\profiles\%U
logon script = logon.bat
logon drive = H:
Answer the question
In order to leave comments, you need to log in
Install Microsoft RSAT and configure domain policies
https://wiki.samba.org/index.php/Installing_RSAT
Incl. you can use logon scripts, exactly the same as on a Windows domain - they must be located on a sphere accessible to users and computers of the domain.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question