LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   WinXP pro don't run "logon script = logon.bat" (https://www.linuxquestions.org/questions/linux-server-73/winxp-pro-dont-run-logon-script-%3D-logon-bat-634549/)

Bengt7jqb 04-10-2008 10:41 PM

WinXP pro don't run "logon script = logon.bat"
 
Hi, thanks for reading!

I run Debian Linux with samba and it work just fine, but
WinXP Profesional don't run the logon.bat script.
Windows98 in the same box do?
If I run it manualy evrything works just fine.
I have a feeling I forgot somthing?

Here is my smb.conf
Code:

#  smb.conf
# Samba config file created using kate
# Global parameters continiue
[global]
# Basic server settings
netbios name = HUGO
workgroup = BENGT7JQB
security = user
server string = Debian Samba %a %v %L

# We shuld act as the domain and local master browser
os level = 64
preferred master = yes
domain master = yes
domain logons = yes
time server = yes

# security settings
smb ports = 139
hosts allow = ***.***.***.***/** 127.0.0.1/8
hosts deny = ALL
interfaces = eth1 lo
bind interfaces only = Yes

# encrypt passworsd are a requirement for a PDC
encrypt passwords = yes

# were to store user profiles
# logon path tells Samba where to put \
Windows NT/2000/XP roaming profiles
logon drive = V:
logon path = \\HUGO\profiles\
logon script = logon.bat

# were is a users home directory and\
 where shuld it be mounted at?
;logon home = \\%N\profiles
logon home = \\HUGO\profiles

passwd program = /usr/bin/passwd %u
# Enable the windows support
wins support = yes

hide unreadable = yes
browseable = yes
hide dot files = no
dos filetime resolution = yes

# Logfile options here
debug timestamp = yes
log file = /var/log/samba/%m_%U.log
log level = 2
max smbd processes = 20

socket options = SO_KEEPALIVE \
TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
dns proxy = no
printcap name = cups

# preload = program

printcap = CUPS
printcap name = cups
load printers = yes
restrict anonymous = no
show add printer wizard = no
max protocol = NT
ldap ssl = No
; server signing = Auto



[netlogon]
# necessary share for domain controller
comment = LogOn for U-%U u-%u at m-%m N-%N
path = /home/samba/netlogon/%m/%U
browseable = No
writable = No
guest ok = Yes
locking = No

[profiles]
# share for storing user profiles
comment = Profiles for u-%u
path = /home/samba/profile/%u
browseable = No
writable = yes
create mask = 0600
directory mask = 0700
profile acls = Yes

[homes]
comment = home for U-%U S-%S m-%m a-%a
path = /home/%S/.%m
valid users = %S
read only = No
browseable = No
map archive = Yes
hide dot files = No
dos filemode = yes
dos filetime resolution = yes
case sensitive = no

[resurs]
comment = Extra %U at %m on %L %a
path = /home/samba/user/.%m
force group = users
read only = No
writable = Yes
create mask = 0664
directory mask = 0775
hide dot files = no
dos filemode = yes
dos filetime resolution = yes
case sensitive = no

[program]
comment = Programm for %m with %a
path = /pub/disk1/%a/Program
; - path = /pub/disk1/Program
browseable = yes
read only = no
writable = yes
create mask = 0660
directory mask = 0770
force group = users
dos filemode = yes
dos filetime resolution = yes

[www]
browseable = no
writable = no
path = /home/samba/tmp
include = /home/%U/smb.conf.www

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
printable = yes
use client driver = Yes

And some intresting output
Quote:

sm7jqb:/# smbtree
Password:
BENGT7JQB
\\HUGO Debian Samba UNKNOWN 3.0.24 hugo
\\BENGTSHPXP Arbets daror
cli_rpc_pipe_open: cli_nt_create failed on pipe \srvsvc to machine BENGTSHPXP. Error was NT_STATUS_ACCESS_DENIED
sm7jqb:/#
I don't understan that error msg, cant find any useful information, yet.

I wanted to put a picture here but
Here is a link to it http://old.sm7jqb.se/bild/Hugo.jpg
How that looks in my WinXP box.

blackfish 04-12-2008 02:05 PM

possibly asking the obvious here but is the xp workstation actually joined to the samba server?

BlackFish

Bengt7jqb 04-13-2008 12:11 PM

Hi,

Yes, evrything works exept that he never run the \\hugo\netlogon\login.bat script.
I have to do it manually.

Windows 98 in the same box do it OK all the time.


All times are GMT -5. The time now is 10:12 AM.