Hi everyone, I'm having trouble in deploying by group sambaLogonScript. My scripts consist only im mapping network folders. I'm using Samba 3.4.7. Is there a way to debug this? The logs does not show anything about the logon scripts. All my users are set with "%G.bat" in the ldap backend, but the vast majority of the users are not running the scripts, or running partially. Tks in advance. -- Leonardo Carneiro
On Sat, Jul 3, 2010 at 10:10 AM, Leonardo Carneiro - Veltrac <lscarneiro at veltrac.com.br> wrote:> Hi everyone, > > I'm having trouble in deploying by group sambaLogonScript. > > My scripts consist only im mapping network folders. > > I'm using Samba 3.4.7. Is there a way to debug this? The logs does not show > anything about the logon scripts. > > All my users are set with "%G.bat" in the ldap backend, but the vast > majority of the users are not running the scripts, or running partially. >Put a pause command at the end of the login script. That way the window will not close. John
On 07/03/2010 09:10 AM, Leonardo Carneiro - Veltrac wrote:> Hi everyone, > > I'm having trouble in deploying by group sambaLogonScript. > > My scripts consist only im mapping network folders. > > I'm using Samba 3.4.7. Is there a way to debug this? The logs does not > show anything about the logon scripts. > > All my users are set with "%G.bat" in the ldap backend, but the vast > majority of the users are not running the scripts, or running partially. > > Tks in advance.Leonardo, How are you using a local account on the MS Windows client, or are your users logging into the MS Windows client using the Samba user account? - John T.
> All my users are set with "%G.bat" in the ldap backend, but the vast > majority of the users are not running the scripts, or running partially.I also have my logon scripts set to "%G.bat" and they run perfectly. Are your scripts in DOS format? They must be, because they are read by the Windows side. Use the command unix2dos to make sure that all lines end with CR+LF, as used by standard text files under DOS/Windows. One thing I once noticed was that the Samba account attribute "sambaLogonScript" must ONLY be set for a user if it DIFFERS from what is specified in "smb.conf". Otherwise, the script wouldn't run. I found this with the Samba 3.1x family, I don't know if that still applies.
One more thing: are your permissions correct? The users must have Read access to the logon script files.
On Sat, Jul 3, 2010 at 10:10 AM, Leonardo Carneiro - Veltrac <lscarneiro at veltrac.com.br> wrote:> I'm having trouble in deploying by group sambaLogonScript. > > My scripts consist only im mapping network folders. > > I'm using Samba 3.4.7. Is there a way to debug this? The logs does not show > anything about the logon scripts. > > All my users are set with "%G.bat" in the ldap backend, but the vast > majority of the users are not running the scripts, or running partially.First debugging step, if you haven't done this already, would be to verify a specifically named logon script, that is one that doesn't use a variable, such as "testlogon.cmd" runs properly. Chris
On 07/05/2010 08:28 AM, Miguel Medalha wrote:> Did you verify that end lines of the scripts are in DOS format (CR+LF)? > > You can use unix2dos to convert them from Unix format (LF) to DOS > format (CR+LF). > > %G.bat is working correctly for me. Samba PDC over CentOS 5.5 with > LDAP back end. > > Pardon me for being so obvious, but of course your scripts have the > exact same name as the groups, don't they? > > Regards > MiguelHi Miguel, i doubt that this could be the problem, since when i specify the name of the script, it runs OK. And yes, the names of the scripts are ok. Tks again.