[Samba] [Fwd: Samba Blues]

Alfred Payne alfred at tcsn.co.za
Fri Jun 3 13:19:19 GMT 2005


Ok...I can't believe I'm still struggling with this!!!

I've setup a SAMBA server using ARCH Linux 0.7 (Wombat) *what a 
distro!!*  and everything is fine except when it comes to adding 
machines to the domain (aaarrrgghh). When I try to do it via windows, I 
get "the domain is no longer available". So I add a machine account 
manually, then go to windows and walla, I get the same error

What I've done :

useradd -g wheel -pxxxx admin
smbpasswd -a admin

---------
I then supply this username/passwd when asked in windows while adding to 
domain -----> error
Then out of frustration I added root:
---------

smbpasswd -a root

----------------
still no joy....
Then I added the machine account manually as root
-----------------

useradd <machinename>$
smbpasswd -a -m <machinename>$

----------------
still get the error....(even after samba restart)
----------------

my smb.conf file:

[global]
workgroup = xxxxxxxx
netbios name = xxxxxxxx
passdb backend = tdbsam
printcap name = cups
hosts allow - 10.0.0.0/255.255.0.0
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/groupmod -A %u %g
delete user from group script = /usr/sbin/groupmod -R %u %g
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u
# Note: The following specifies the default logon script.
# Per user logon scripts can be specified in the user account using pdbedit
logon script = scripts\logon.bat
# This sets the default profile path. Set per user paths with pdbedit
logon path =
logon drive = H:
logon home = \\%L\%U
domain logons = Yes
os level = 35
preferred master = Yes
domain master = Yes
idmap uid = 15000-20000
idmap gid = 15000-20000
printing = cups

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

[netlogon]
comment = Network Logon Service
path = /etc/samba/netlogon
admin users = root
guest ok = Yes
browseable = No


Thanks guys!
Alfred (ready to pull his own fingernails with pliers) Payne





More information about the samba mailing list