LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   My samba netlogon script doesn't execute (https://www.linuxquestions.org/questions/linux-software-2/my-samba-netlogon-script-doesnt-execute-75806/)

colpaarm 07-25-2003 07:53 AM

My samba netlogon script doesn't execute
 
I'm making progress setting up my samba pdc, but can at least one step of the process be smooth??? Ughhh, anyway, here's my latest problem.

I'm setting up samba 2.2.7a on rh 9 as a pdc. I'm able to log into the domain (finally) and I have a homes share. I'm even able to print the the server's network printer. However, for whatever reason, my logon script doesn't appear to execute. Here are the pertinent areas of my smb.conf file.


...
logon script = netlogon.bat
...
[netlogon]
path = /home/netlogon
writable = no
browsable = no


And netlogon.bat contains two lines

net use T: \\servername\sharename
net time \\servername/set /yes

I used the unix2dos command to make sure the line endings are just the way windows likes it. I even downloaded the bat file and ran it from my xp machine just to make sure that windows liked it. Samba is running as root and has permissions on the directories.

If I can run the commands by hand from windows and even run the bat file from windows, why won't it run when I log into the domain? The logs show no errors when logging in (I have it currently at level 2). I didn't expect to get caught on what I thought was a relatively simple step. In any event, any help you can give would be greatly appreciated.

colpaarm 07-25-2003 09:12 AM

Never mind. Although I have samba running as root, when I log on as a user, that user executes the script, which makes sense. So I did not have the permissions set properly for that user.


All times are GMT -5. The time now is 09:54 AM.