[Samba] Re: Logon scripts not working on all users

Boaz boaz at mirrotek.com
Mon Jun 11 12:27:42 GMT 2007


Matt Anderson wrote:
> Boaz Bezborodko <boaz <at> mirrotek.com> writes:
> 
>> I have set up a logon script to run when users login.  It works for me
>> when I log in, but my user ID is mapped to a root group as well as
>> administrative privileges.  But it is not executing for regular users.
>>
>> What am I doing wrong?
>>
>> Thanks in advance,
>> Boaz
>>
>>         logon script = stdlogon.bat
>>     logon home =
>>     logon path =
>>     security = user
>>     preferred master = yes
>>     domain logons = yes
>>         time server = yes
>>     guest ok = no
>>     domain master = yes
>>     writable = no
>>     path = /data/printspool
>>
>> [netlogon]
>>
>> ; comment = Network Logon Service
>>         path = /var/lib/samba/netlogon
>>
> 
> Hi Boaz,
> 
> A couple things to check:
> 1) Check out the file system permissions on the folder /var/lib/samba/netlogon
> on the server (cd to /var/lib/samba/ and do an ls -l).  Make sure that everyone
> has Read access... it should look something like drwxr-xr-x.  (It should look
> the same for stdlogon.bat inside that folder as well, or -rwxr--r-- instead)
> 2) If that's setup correctly, then, do you have any BDCs setup as well?  If so,
> then the login script needs to be in both in the netlogon share for both the PDC
> and BDC.
> 
> Hopefully that helps...
> 
> -Matt

stdlogon.bat was -rwxr-xr-x (755), but /var/lib/samba/netlogon was
drwxr-xr-- (754).  When I changed it to drwxr-xr-x (755) then it worked.
 It looks like the version of Samba I'm using (RHEL's 3.10.....)
requires the executable bit be set in order to run.

Thanks for the help.

Boaz


More information about the samba mailing list