LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-25-2003, 07:53 AM   #1
colpaarm
LQ Newbie
 
Registered: Jun 2003
Posts: 22

Rep: Reputation: 15
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.
 
Old 07-25-2003, 09:12 AM   #2
colpaarm
LQ Newbie
 
Registered: Jun 2003
Posts: 22

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba & netlogon problem CarLost Linux - Networking 8 09-15-2005 04:28 AM
Samba Netlogon from win98-client lars12 Linux - Networking 0 07-21-2004 07:41 AM
Netlogon issues > Samba 3.02a w/ Win98 HiroMasaki Linux - Networking 17 05-15-2004 05:28 AM
Samba Netlogon - Driving me mad!!! ndprichardson Linux - Networking 12 10-25-2003 02:38 AM
Help! Premature Logoff, Samba [netlogon] scooter549 Linux - General 4 09-10-2003 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration