Click to See Complete Forum and Search --> : the system cannot log you on now because the domain "XXX" is not avaiable.


Godish
11-27-2002, 01:47 PM
ok this is seriously annoying me... i have a linux box running as my pdc. i have 2 computers hooked up to it and it all ran fine untill my computer died. (raid 0 aint that reliable :D ) so i reinstalled windows on that machine. now i can join the domain with the root password and it says "welcome to MYWORKGROUP" press ok, then i reboot. now, when i goto log on, i use the previous password and username and it says "The system cannot log you on now because the domain "MYWORKGROUP" is not avaiable. now that i do not get. i can initially log on with my root username and password and then when i reboot it wont let me. I did the registry hack things like i did previously. then i removed the usernames and machine accounts and that didnt help. What am i missing or should i just reinstall windows 2000 adv. server where i can set it up in like 2 minutes :mad:

Godish
11-27-2002, 01:55 PM
My computer ip is 192.168.0.30 /computer1
i set my computer name to computer 1 too
Here are my files:

/etc/samba/smb.conf
#/etc/samba/smb.conf
#Samba config file
#From IBM http://www-1.ibm.com/servers/esdd/tutorials/samba/index.html
#last updated: 11/9/2002
#Note: PDC = Personal Domain Controller
######################Begin Config####################

[global]
#Basic Server Settings
workgroup = MYWORKGROUP
netbios name = SuperServer
server string = Samba PDC Running %v
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192

#PDC and master browser settings
os level = 64
preferred master = yes
local master = yes
domain master = yes

#Security and logging settings
#Must be user for PDC
security = user
encrypt passwords = yes
domain logons = yes
# hosts allow = 127.0.0.1 192.168.0.0/255.255.255.0
hosts allow = 192.168.0.30 127.0.0.1
log file = /etc/samba/log.%m
log level = 2
max log size = 50

#User profiles and home directory's
#%L = Samba server's netbios name
#%U = username requesting the share
logon home = \\%L\%U\.profile
logon drive = H:
logon path = \\%L\profiles\%U

#Enable Netlogon Script
logon script = netlogon.bat

#Auto Machine Script
add user script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u

#Auto User Sync
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *Enter*new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd: *all*authentication*tokens*updated*successfully*


#==================Shares==================

[homes]
comment = Home Directories
browseable = yes
writeable = yes

[tmp]
comment = Public files
path = /home/samba/tmp
public = yes
writable = yes
printable = no

[profiles]
path = /home/samba/profiles
writeable = yes
browseable = no
create mask = 0600
directory mask = 0700
# profiles acls = yes

[netlogon]
comment = Network Logon Service
path = /home/netlogon
read only = yes
browseable = no


/etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
news:x:9:13:news:/etc/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
rpm:x:37:37::/var/lib/rpm:/bin/bash
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
gdm:x:42:42::/var/gdm:/sbin/nologin
Godish:x:500:900::/home/Godish:/bin/bash
Player:x:502:900::/home/Player:/bin/bash
computer2$:x:503:201:computer2:/dev/null:/bin/false
Mother:x:504:900::/home/Mother:/bin/bash
hithere$:x:505:201::/dev/null:/bin/false
computer1$:x:506:201::/dev/null:/bin/false


/etc/samba/smbusers
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest
Player = Player
Mother = Mother


/etc/samba/lmhosts
127.0.0.1 localhost
192.168.0.1 SuperServer
192.168.0.30 computer1
192.168.0.29 computer2
192.168.0.28 computer3
192.168.0.27 computer4
192.168.0.26 computer5
192.168.0.25 computer6
192.168.0.24 computer7
192.168.0.23 computer8
192.168.0.22 computer9
192.168.0.21 computer10
192.168.0.20 computer11
192.168.0.19 computer12
192.168.0.18 computer13
192.168.0.17 computer14
192.168.0.16 computer15
192.168.0.15 computer16
192.168.0.14 computer17
192.168.0.13 computer18
192.168.0.12 computer19
192.168.0.11 computer20
192.168.0.10 computer21
192.168.0.9 computer22
192.168.0.8 computer23
192.168.0.7 computer24
192.168.0.6 computer25
192.168.0.5 computer26
192.168.0.4 computer27
192.168.0.3 computer28
192.168.0.2 computer29

/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.1 SuperServer
192.168.0.2 computer29
192.168.0.3 computer28
192.168.0.4 computer27
192.168.0.5 computer26
192.168.0.6 computer25
192.168.0.7 computer24
192.168.0.8 computer23
192.168.0.9 computer22
192.168.0.10 computer21
192.168.0.11 computer20
192.168.0.12 computer19
192.168.0.13 computer18
192.168.0.14 computer17
192.168.0.15 computer16
192.168.0.16 computer15
192.168.0.17 computer14
192.168.0.18 computer13
192.168.0.19 computer12
192.168.0.20 computer11
192.168.0.21 computer10
192.168.0.22 computer9
192.168.0.23 computer8
192.168.0.24 computer7
192.168.0.25 computer6
192.168.0.26 computer5
192.168.0.27 computer4
192.168.0.28 computer3
192.168.0.29 computer2
192.168.0.30 computer1





/home/netlogon/Netlogon.bat

@echo off
rem Sync time :-D
NET TIME \\SuperServer /set /yes

REM Clear Any Current Drive Maps!
NET USE * /d /y

REM Map Some Drives!
NET USE H: \\SuperServer\Homes /yes
NET USE T: \\SuperServer\tmp /yes
NET USE M: \\SuperServer\Homes\MP3 /yes


This is soo annoying, i had it working fine but now it wont work!
How do people actually use this program in a environment that actually requires it to work flawlessly. i have literally spent 100+ hours just getting it to work right the first time.