LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-15-2003, 06:07 PM   #1
synfield
LQ Newbie
 
Registered: Mar 2003
Location: Auckland, New Zealand
Distribution: RH 7.3
Posts: 15

Rep: Reputation: 0
samba logon script win xp


I'm running samba-2.2.8a on my RH7.3 as a PDC domain controller, which is working fine, but I'm having problems getting my logon script to map network drives automatically work on my windows XP client .

The smb.conf file is as follows;

# Samba config file created using SWAT
# from localhost.polecat.com (127.0.0.1)
# Date: 2003/06/28 08:11:58

# Global parameters
[global]
netbios name = alinghi
workgroup = POLECAT
;server string = Samba Server on Alinghi
encrypt passwords = yes
wins support = yes
domain master = yes
local master = yes
preferred master = yes
os level = 65

security = user
domain logons = yes

;passwd program = /usr/bin/passwd %u
;passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
;unix password sync = yes
log file = /var/log/samba/log.%m
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
;dns proxy = no
;hosts allow = 192.168.100.
;printing = lprng

logon path = \\%L\profiles\%u\%m
logon home = \\%L\%u\.win_profile\%m
logon script = logon.bat

logon drive = H:
time server = yes

domain admin group = root brice

;add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u

[netlogon]
path = /usr/local/samba/lib/netlogon
writeable = no
browsable = no

[profiles]
path = /home/samba-ntprof
browsable = no
writable = yes
create mask = 0600
directory mask = 0700

[homes]
comment = Home Directories
valid users = %S
writable = yes
read only = No
create mask = 0664
directory mask = 0775
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

#=============================================

logon.bat script is as follows;

@echo off

NET TIME \\alinghi /SET /YES

NET USE H: /HOME /YES

#========================

As always any assistance would be appreciated

Cheers

Synfield
 
Old 07-16-2003, 01:04 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Does the script run at all?
 
Old 07-16-2003, 05:51 PM   #3
synfield
LQ Newbie
 
Registered: Mar 2003
Location: Auckland, New Zealand
Distribution: RH 7.3
Posts: 15

Original Poster
Rep: Reputation: 0
tried to execute the logon.bat script on the windows xp box and got the following messages;

"users directory has not been specified"

current time at \\alinghi is 1/16/2003 5.59pm

local time at \\alinghi is 7/16/2003 12.59 pm

and I get a confirmation that the script executed successfully??

I also have the problem of that the xp box gets set to the current time which should have been 12.59pm, as in the local time, not 5.59pm ???
 
Old 08-20-2003, 10:24 AM   #4
pretoriano
LQ Newbie
 
Registered: Jul 2003
Location: Italy
Distribution: Debian Sid
Posts: 9

Rep: Reputation: 0
My logon script are a bit different:

net time \\server /set /yes
net use u: \\server\public

so if you want to map a unit for home's dir

net use z: \\server\home\%u

For "net time" is maybe possible that the xp machines are set to obtain the time by a time server (this setting is on time settings in control panel)?

I hope what I say is ok and an help for you...excuse me for poor english.
 
  


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 as PDC: can it just run logon script, not host profiles? hamish Linux - Networking 0 09-09-2005 09:44 AM
Win XP cannot logon to LM 9.1 seanfitz Mandriva 1 09-01-2003 05:18 PM
Samba Logon script not mapping Drives automatically! kofi Linux - Software 0 07-21-2003 03:06 PM
Samba: how to create a logon script file when i add a system user. heero82 Linux - Software 2 06-19-2003 08:29 PM
samba logon script question kcourser Linux - Networking 2 04-24-2003 12:45 PM


All times are GMT -5. The time now is 11:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration