[Samba] Login Scripts won't run on W2K

Doug Campbell dcampbell at zonemail.net
Sun May 5 12:50:03 GMT 2002

Sorry to send this to the general list but I couldn't find the information
on how to send to the samba-ntdom list.

I have just setup my Samba as a PDC and I am trying to get my Windows 2000
client to login.  The client successfully logs in but does not run the login

If I log in using one of my Windows 98 clients, the login scripts run every
time with no problems.

Also, I noticed that if I try to type the following from the W2K command

net use h: /home

It gives the following error:

The user's home directory has not been specified.

This also works on my Windows 98 clients.  Any idea what I am doing wrong?

One more thing.  I can run the login script batch file after logging in so I
have the permissions to access it.

My smb.conf is attached to the end of this e-mail.  Also, if you notice why
I can't get profiles to function, I would appreciate that as well.

Thanks for any help that is provided!

Doug Campbell

My smb.conf:

    ; Basic server settings
    netbios name=snoopy

    ; Miscellaneous settings
    dos filetime resolution = True
    dos filetimes = True
    time server = True
    wins support=yes

    ; Printer Share settings
    printcap name=/etc/printcap
    printer driver file=/etc/samba/printers.def

    ; we should act as the domain and local master browser
    os level=64
    preferred master=yes
    domain master=yes
    local master=yes

    ; security settings (must use security = user)
    security = user

    ; encrypted passwords are a requirement for a PDC
    encrypt passwords = yes

    ; support domain logins
    domain logons=yes

    ; support for allowing client machines to join our domain.
    ; use root account and password to allow joining
    ; hopefully this will change in the future so that I can
    ; use a none root account
    domain admin group = root at snoopy

    ; where to store user profiles
    logon path = \\%L\profiles\%U

    ; where is a user's home directory and where should it
    ; be mounted at?

    logon drive = P:
    logon home = \\%L\%U

    ; specify a logon script location for all users
    logon script=scripts\%U.bat

    ; used for "on-the-fly" creation of machine trust accounts
    add user script = /usr/sbin/useradd -d /dev/null - g 100 -s /bin/false -
M %u

    ; Guest Access settings
    map to guest=bad user

; share for storing user profiles
    path = /data/smb/ntprofile
    read only = no
    create mask = 0600
    directory mask = 0700

path = %H/samba
browseable = no
valid users = %U
read only = No
create mask = 700
writeable = Yes
recycle bin = .recycled

path = /data/tempint/%U
valid users = %U
read only = No
create mask = 700

read only=yes
guest ok=no
create mask=774
write list=@scriptadmin
force group=scriptadmin
recycle bin = .recycled

read only=no
admin users=doug,travis
create mask=770
directory mask=770
force group=sambauser
recycle bin = .recycled

read only=yes
valid users=@finance
write list=@finance
create mask=770
directory mask=770
force group=finance
recycle bin = .recycled

read only=yes
valid users=@ops
write list=@ops
create mask=770
directory mask=770
force group=ops
recycle bin = .recycled

read only=yes
valid users=@ituser
write list=@ituser
create mask=770
directory mask=770
force group=ituser
recycle bin = .recycled

    force user=root
    read only=yes

guest ok=yes
print ok=yes

guest ok=yes
read only=no
admin users=doug
recycle bin = .recycled

path = /tmp
guest ok=yes
force user=nobody
print command=/usr/bin/printpdf %s
printer driver = HP LaserJet 5P/5MP PostScript
printer driver location=\\%h\printer$

guest ok=yes

; File share to allow clients to download printer drivers
   guest ok=yes
   read only=yes

More information about the samba mailing list