I am running Samba4 on a Debian/Jessie AD DC. I have a network netlogon share with a single script in it. This .bat file is referenced in the ADUC profile and I can navigate to the netlogon share and run it, where it does what it is supposed to do. However when I log onto the workstation, it never executes. For example, it maps a drive but the drive is not mapped after a logon.
Hi, The samba logs shows any info?. Are you using the script name or the full path?. You only have to put the script name (for example logon.bat). Can you map that drive using a GPO?, is better than use a logon script. A suggestion is to use a GPO to run logon scripts, because you can add multiple scripts and if you change the name of one script then you only have to change the GPO script, instead all users logon script. Greetings!! 2015-07-04 5:28 GMT+02:00 Gary Dale <garydale at torfree.net>:> I am running Samba4 on a Debian/Jessie AD DC. I have a network netlogon > share with a single script in it. This .bat file is referenced in the ADUC > profile and I can navigate to the netlogon share and run it, where it does > what it is supposed to do. > > However when I log onto the workstation, it never executes. For example, > it maps a drive but the drive is not mapped after a logon. > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
On 04/07/15 03:31 AM, Daniel Carrasco Mar?n wrote:> Hi, > > The samba logs shows any info?. > Are you using the script name or the full path?. You only have to put the > script name (for example logon.bat). > Can you map that drive using a GPO?, is better than use a logon script. > > A suggestion is to use a GPO to run logon scripts, because you can add > multiple scripts and if you change the name of one script then you only > have to change the GPO script, instead all users logon script. > > Greetings!! >Thanks Daniel. You got it in one and gave me another reason to dislike M$. The script doesn't run when I give the full path but does run when I just specify the name, while the box above it seems to require the full path to the profile (according to M$ documentation anyway). Who thought up this nonsense? :) So far as GPO goes, when I try to enable a GPO while logged in as a domain administrator, I get a permissions error. There is something going wrong even though I followed the Samba howto on provisioning Samba4, including passing all the suggested tests, and the stuff I need is currently working (roaming profiles and logon scripts). The good part is that logons are currently a lot faster than under Samba3.