[K12OSN] Samba / W2K login script issue

Bert Rolston bert.rolston at clear.net.nz
Thu Aug 17 20:44:07 UTC 2006


Hi Doug,

Thanks for your reply.

It's been years since I set one up samba to be a PDC. I'm exclusively
Linux at home. That's the danger of taking a couple of years away from
the industry to study business.

I can run the scripts manually, either by browsing through network
neighbourhood, or by mapping the netlogon share to a drive letter.

When I map the netlogon share to drive Z: the UNC issue is resolved.

All the paths are correct, permissions are as open as the sahara desert,
and the script exists.

The netlogon folder is located at /home/netlogon 

So I'll go through the smb.conf with a fine tooth comb and see if I've
missed something.

Cheers,
Bert


On Thu, 2006-08-17 at 11:41 -0500, Doug Simpson wrote:
> If the computer is saying there is a problem with UNC paths, likely that 
> has n othing to do woth the server.
> 
> But, make sure your path for the netlogon directory is correct and that 
> there is actually logon.bat in there and make sure your smb.conf says 
> logon.bat is the logon script to be run.
> 
> my example:
> 
> Server location for login script for group "Users"
> /samba/netlogon/users
> 
> logon script in the above listed directory:
> logon.bat
> 
> in the smb.conf file under "global" make sure there is a line:
> logon script = logon.bat
> 
> Make sure there is a [netlogon] directive.
> 
> make sure the path in it is correct for the netlogon directory.
> 
> Make sure the directory is readable by all users.
> 
> Restart samba
> 
> If you need further assistance, send me a copy of your smb.conf file and I 
> will look at it and see if I can find anything wrong with it.
> 
> Doug Simpson
> Technology Specialist
> DeQueen Public Schools
> DeQueen, AR 71832
> simpsond at leopards.k12.ar.us
> Tux for President!
> 
> On Thu, 17 Aug 2006, Bert Rolston wrote:
> 
> > Hey folks,
> > 
> > I've run into a problem with a W2K machine and winders login scripts.
> > 
> > I've tried googling Samba.org and tried a couple of the suggestions in
> > their archives, without any success.
> > 
> > I've searched through the K12OSN digests without any luck.
> > 
> > So, now I'm going to ask here.
> > 
> > I have a W2K (SP4) computer logging in to my FC5 / Samba 3.0xxxx server.
> > Samba is set up to act a the PDC. This works fine.
> > 
> > I can use network neighbourhood and see all the share. I can access all
> > the shares.
> > 
> > If I try to launch the login script from \\servername\netlogon I get an
> > error message about UNC paths, then it proceeds as below.
> > 
> > I can manually map Z: to the netlogon share and run the login script. 
> > 
> > This produces the following error message
> > 
> > "net use h: /home
> > The user's home directory could not be determined
> > More help is available by typing NET HELPMSG 3915"  (which tells me to
> > create the user's home directory)
> > 
> > The user's home directory exists. the unix permissions are 777, samba
> > permissions are RW to all known users. 
> > 
> > The rest of the login script will map all the drives.
> > 
> > The script DOESN'T run automagically when the user logs in to the
> > network. I've put a pause into the script to ensure it stays on screen.
> > It doesn't.
> > 
> > I suspect the problem lies in the [global] section of my smb.conf, but
> > please don't let that limit any help you can give.
> > 
> > Thanks,
> > Bert (long time lurking on this list)
> > 
> > _______________________________________________
> > K12OSN mailing list
> > K12OSN at redhat.com
> > https://www.redhat.com/mailman/listinfo/k12osn
> > For more info see <http://www.k12os.org>
> > 




More information about the K12OSN mailing list