[2] PDC 2.2.2 - W2K - Computer Password Incorrect.

Greg Wardawy gwardawy at iddmedia.com
Mon Nov 12 10:46:27 GMT 2001


Jeremy,

Let me copy my post I sent to Calvin. I'm having a "situation" here and have no time to type it again. HTH and here it goes:
###################################################################
I'm not a Samba expert and have just a trial and error experience. There are two things I can think about:
1. The add user script doesn't work from smb.conf - I switched my W2K from Domain to Workgroup and rebooted it,I deleted all Samba "regular" users from smbpasswd, recreated them (remember about root user with a different than system password) and created a trusted machine account from the shell. On the W2K machine I set the Domain Name via Network Identification->Properties (not via Network ID and this stupid wizard, I hate wizards) using root user with a different password  to join the domain. And everything was just fine, root.domainname profile has been created under Documents and Settings

2.It can be a problem with your routes in the routing table. I have a dial-up internet connection, one NIC and wanted to set Internet connection for my w2k machine (just for one at this time, to make it more readable).  I thought it's a good idea to make a static route between Linux and W2k boxes but I was wrong. I got an error saying something like this: "Domain server is down or your machine account was not found" . Everything is fine after removing the static route except reaching the Internet from W2k machine. I'll have to work on it.
Do you know any good sources about setting routes under Linux? I've read a lot but  can't figure it out.

Greg
###################################################################

>>> Jeremy Cowgar <jcowgar at bhsys.com> 11/12/01 12:24PM >>>
Greg,

Unfortunatly, it does not work either way. I had it that way originally, and on some other configs I have seen it 
/dev/null, so I gave it a try.

To make sure, I removed my maching name gray$ from both /etc/passwd and my smbpasswd file, made it a -s 
/bin/false and still no go.

Anyone?

Thanks,

Jeremy Cowgar - jcowgar at bhsys.com 


"Greg Wardawy" <gwardawy at iddmedia.com> wrote on 11/12/2001 12:54:55 PM:
>
>>>> Jeremy Cowgar <jcowgar at bhsys.com> 11/12/01 09:46AM >>>
>Greetings!
>
>I am setting up a Samba PDC, v2.2.2. I followed the PDC HowTo and I am having a problem that is not listed 
in 
>the HOWTO.
>
>My W2K computer can join the domain just fine. A computer account get's added to both /etc/passwd and 
the 
>smbpasswd files. My problem comes in when I try to log into the domain.
>
>The message I recieve is:
>
>The system cannot log you on to this domain because the system's computer account in it's primary domain is 
>missing or the password on that account is incorrect.
>
>Can anyone help me out?
>
>Here's my config.Top of Form 1
>
>
># Samba config file created using SWAT
># from 192.168.0.40 (192.168.0.40)
># Date: 2001/11/12 10:49:09
>
># Global parameters
>[global]
>	workgroup = G
>	netbios name = JOEL
>	encrypt passwords = Yes
>	update encrypted = Yes
>	add user script = /opt/samba/bin/adduser %m %u
>	logon script = logon.cmd
>	logon path = \\%N\profiles\%u
>	logon drive = H:
>	logon home = \\joel\%u
>	domain logons = Yes
>	os level = 64
>	preferred master = True
>	domain master = True
>
>[Information Technologies]
>	path = /tmp
>
>[IT_4000]
>	path = /tmp
>	printable = Yes
>
>[netlogon]
>	path = /opt/samba/lib/netlogon
>	write list = ntadmin
>
>[profiles]
>	path = /opt/samba/lib/ntprofile
>	read only = No
>	create mask = 0600
>	directory mask = 0700
>Bottom of Form 1
>
>the /opt/samba/adduser looks like:
>
>#!/bin/sh
>echo "$1 $2" > /opt/samba/bin/hi.txt
>useradd -g machines -d /dev/null -s /dev/null -c Computer $2
>
>so effectively, the add user script commadn looks like:
>
>useradd -g machines -d /dev/null -s /dev/null -c Computer %u
>
>#########################################
>Shouldn't it be:
>-s /bin/false ?
>i.e. add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
>
>HTH
>Greg
>#########################################
>
>Can anyone help me out?
>
>Thanks!
>
>Jeremy Cowgar - jcowgar at bhsys.com 







More information about the samba-ntdom mailing list