4 debian server
120 win98 rechner
2500 user
alles funktioniert prima wennn nicht windows XP gekommen wäre.
Ich habe einen grossen dell rackserver den ich erst auf potato laufen hatte dann
upgegradet auf woody. Danach habe ich
smb.conf, passwd, shadow, ......
also alle password dateien von meinem alten potato server auf den neuen kopiert
Alles funktioniert gut bis auf windows XP.
Mit windows XP kan ich mich auf meinem schulserver nicht einloggen.
(No Domain controller found)
ich habe meine smb.conf vom Schulserver mit nach hause genommen und da funktioniert es ohne probleme.
Also ich bin mir mittlerweile sicher, das es nicht an der smb.conf liegt.
Mein schulserver heisst debianpdc und der samba name ist samba
der samba name samba taucht nicht!! inder wins.dat datei auf. obwohl samba wins server ist.
Alle anderen linux (mit samba) und windows rechner sind gelistet.
Wenn ich versuch via smbclient zu connecten passiert folgendes:
Code: Alles auswählen
debianpdc:/admin# smbclient -L samba -N
added interface ip=172.16.0.10 bcast=172.16.0.255 nmask=255.255.255.0
error connecting to 227.60.222.68:139 (Connection refused)
Error connecting to 227.60.222.68 (Connection refused)
Connection to samba failed
debianpdc:/admin#
warum ?
Das macht smbclient auch wenn ich einen nichtexistierenden namen benutze.
Code: Alles auswählen
debianpdc:/admin# smbclient -L windows -N
added interface ip=172.16.0.10 bcast=172.16.0.255 nmask=255.255.255.0
error connecting to 227.60.222.68:139 (Connection refused)
Error connecting to 227.60.222.68 (Connection refused)
Connection to windows failed
debianpdc:/admin#
Der netbios name IST samba!!
Code: Alles auswählen
debianpdc:/admin# cat /etc/samba/smb.conf | grep samba
netbios name = samba
Code: Alles auswählen
debianpdc:/admin# smbclient -L samba-old -N
added interface ip=172.16.0.10 bcast=172.16.0.255 nmask=255.255.255.0
Got a positive name query response from 127.0.0.1 ( 172.16.0.5 )
Anonymous login successful
Domain=[SERVER331] OS=[Unix] Server=[Samba 2.2.3a-6 for Debian]
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (samba-pdc server (Samba 2.2.3a-6 for Debian))
ADMIN$ Disk IPC Service (samba-pdc server (Samba 2.2.3a-6 for Debian))
Server Comment
--------- -------
BRN_324671
BRO_0378B6
BRO_037ABC
BRO_037AC5
BRO_053055
SAMBA samba-deb
SAMBA-OLD samba-pdc server (Samba 2.2.3a-6 for Debian)
Workgroup Master
--------- -------
SERVER331 SAMBA
debianpdc:/admin#
Alle die bro sind printer. warum samba-pdc die mitauflistet ist mir auch en rätsel.
Um die Verwirrung komplet zu machen schau Dir das mal an:
Wenn ich versuche mit smbclient debianpdc zu erreichen (debianpdc ist NICHT samba-name sondern der linux name) passiert folgendes:
Code: Alles auswählen
debianpdc:/admin# smbclient -L debianpdc -N
added interface ip=172.16.0.10 bcast=172.16.0.255 nmask=255.255.255.0
session setup failed: NT_STATUS_LOGON_FAILURE
debianpdc:/admin#
(ich habe 4 ip's 172.16.0.7 , 17, 10 , 14
Code: Alles auswählen
debianpdc:/admin# smbclient -L debianpdc -N
added interface ip=172.16.0.10 bcast=172.16.0.255 nmask=255.255.255.0
session setup failed: NT_STATUS_LOGON_FAILURE
debianpdc:/admin# smbclient -L 172.16.0.10 -N
added interface ip=172.16.0.10 bcast=172.16.0.255 nmask=255.255.255.0
session setup failed: NT_STATUS_LOGON_FAILURE
debianpdc:/admin# smbclient -L 172.16.0.14 -N
added interface ip=172.16.0.10 bcast=172.16.0.255 nmask=255.255.255.0
session setup failed: NT_STATUS_LOGON_FAILURE
debianpdc:/admin# smbclient -L 172.16.0.17 -N
added interface ip=172.16.0.10 bcast=172.16.0.255 nmask=255.255.255.0
session setup failed: NT_STATUS_LOGON_FAILURE
debianpdc:/admin# smbclient -L 172.16.0.7 -N
added interface ip=172.16.0.10 bcast=172.16.0.255 nmask=255.255.255.0
session setup failed: NT_STATUS_LOGON_FAILURE
debianpdc:/admin#
Code: Alles auswählen
debianpdc:/admin# cat /etc/samba/smb.conf | grep interface
;interfaces = 172.16.0.7/24 172.16.0.17/24 172.16.0.10/24
interfaces = 172.16.0.10/24
debianpdc:/admin#
Ich bin kurz davor aufzugeben, seit dem sommer schlage ich mich mit diesem probelm rum und ich bin kurz davor alles rauszuschmeisssen und die chose von vorne neuzu installieren. aber irgenwie müsste es doch zu knacken sein.
Ich habe einen DNS server auf 172.16.0.1 aber braucht samba DNS ?
Code: Alles auswählen
debianpdc:/admin# cat /etc/samba/smb.conf | grep wins
wins support = yes
name resolve order = wins lmhosts host bcast
; name resolve order = lmhosts host wins bcast
; name resolve order = host wins bcast
;wins proxy = yes
debianpdc:/admin#
Code: Alles auswählen
debianpdc:/admin# ifconfig
eth2 Link encap:Ethernet HWaddr 00:D0:B7:82:87:D4
inet addr:172.16.0.10 Bcast:172.16.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15526125 errors:0 dropped:0 overruns:0 frame:0
TX packets:16971307 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1105655728 (1.0 GiB) TX bytes:702289636 (669.7 MiB)
Interrupt:25 Base address:0x4000
eth2:1 Link encap:Ethernet HWaddr 00:D0:B7:82:87:D4
inet addr:172.16.0.14 Bcast:172.16.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:25 Base address:0x4000
eth3 Link encap:Ethernet HWaddr 00:D0:B7:82:87:D5
inet addr:172.16.0.7 Bcast:172.16.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1218301 errors:0 dropped:0 overruns:0 frame:0
TX packets:1857 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:137584602 (131.2 MiB) TX bytes:635182 (620.2 KiB)
Interrupt:26 Base address:0x6000
eth3:1 Link encap:Ethernet HWaddr 00:D0:B7:82:87:D5
inet addr:172.16.0.17 Bcast:172.16.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:26 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5106 errors:0 dropped:0 overruns:0 frame:0
TX packets:5106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:336536 (328.6 KiB) TX bytes:336536 (328.6 KiB)
debianpdc:/admin#
Code: Alles auswählen
;
; /etc/smb.conf
;
; Sample configuration file for the Samba suite for Debian GNU/Linux
;
; Please see the manual page for smb.conf for detailed description of
; every parameter.
;
[global]
printing = cups
netbios name = samba
; printcap name = /etc/printcap
print command = perl /var/pkonto/pakke/pkonto.pl -ip %I -job %s -tid %T -mask %m -bruger %U -sti %p
load printers = yes
guest account = nobody
; invalid users = root
logon script = %G.bat
; logon script = script.kix
; "security = user" is always a good idea. This will require a Unix account
; in this server for every user accessing the server.
security = user
username map = /etc/samba/users.map
domain logons = yes
; Change this for the workgroup your Samba server will part of
workgroup = SERVER331
# <...remainder of parameters...>
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
server string = samba-deb
; %server string = %h server (Samba %v)
; If you want Samba to log though syslog only then set the following
; parameter to 'yes'. Please note that logging through syslog in
; Samba is still experimental.
syslog only = no
; We want Samba to log a minimum amount of information to syslog. Everything
; should go to /var/log/{smb,nmb} instead. If you want to log through
; syslog you should set the following parameter to something higher.
syslog = 3;
; This socket options really speed up Samba under Linux, according to my
; own tests.
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
; Passwords are encrypted by default. This way the latest Windows 95 and NT
; clients can connect to the Samba server with no problems.
encrypt passwords = yes
null passwords = yes
; It's always a good idea to use a WINS server. If you want this server
; to be the WINS server for your network change the following parameter
; to "yes". Otherwise leave it as "no" and specify your WINS server
; below (note: only one Samba server can be the WINS server).
; Read BROWSING.txt for more details.
wins support = yes
; If this server is not the WINS server then specify who is it and uncomment
; next line.
;j wins server = 172.16.0.5
; Please read BROWSING.txt and set the next four parameters according
; to your network setup. There is no valid default so they are commented
; out.
os level = 128
domain master = yes
local master = yes
preferred master = yes
encrypt passwords = true
;interfaces = 172.16.0.7/24 172.16.0.17/24 172.16.0.10/24
interfaces = 172.16.0.10/24
; What naming service and in what order should we use to resolve host names
; to IP addresses
name resolve order = wins lmhosts host bcast
; name resolve order = lmhosts host wins bcast
; name resolve order = host wins bcast
;wins proxy = yes
; This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no
; Name mangling options
preserve case = yes
short preserve case = yes
default case = lower
; This boolean parameter controlls whether Samba attempts to sync. the Unix
; password with the SMB password when the encrypted SMB password in the
; /etc/samba/smbpasswd file is changed.
unix password sync = true
; For Unix password sync. to work on a Debian GNU/Linux system, the following
; parameters must be set (thanks to Augustin Luton
; <aluton@hybrigenics.fr> for sending the correct chat script for
; the passwd program in Debian Potato).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
;from redhat
pam password change = yes
obey pam restrictions = yes
;nt acl support = no
; The following parameter is useful only if you have the linpopup package
; installed. The samba maintainer and the linpopup maintainer are
; working to ease installation and configuration of linpopup and samba.
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
; The default maximum log file size is 5 MBytes. That's too big so this
; next parameter sets it to 1 MByte. Currently, Samba rotates log
; files (/var/log/{smb,nmb} in Debian) when these files reach 1000 KBytes.
; A better solution would be to have Samba rotate the log file upon
; reception of a signal, but for now on, we have to live with this.
max log size = 100000
logon home = \\samba\%U
[homes]
comment = "Hjemme Mappe for : %u"
browseable = no
; By default, the home directories are exported read only. Change next
; parameter to "no" if you want to be able to write to them.
read only = no
; File creation mask is set to 0700 for security reasons. If you want to
; create files with group=rw permissions, set next parameter to 0775.
create mask = 0755
; Directory creation mask is set to 0700 for security reasons. If you want to
; create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 0755
; include = /etc/samba/smb.conf.cr
[printers]
comment = "Printers"
browseable = no
path = /tmp
printable = yes
print command = /usr/bin/lpr -r %s
printer = hp330-1
create mode = 700
read only = yes
guest ok = yes
create mode = 0700
load printers = yes
[netlogon]
comment = domain login service
path = /home/samba/export/logon
public = no
writable = no
browsable = no
[profiles]
path = /home/samba/export/profiles
read only = no
create mask = 0600
directory mask = 0700
[faelles]
comment = faelles
path = /home/samba/faelles
; public = no
writable = yes
; browsable = yes
read only = no
create mask = 0775
force create mode = 0775
directory mask = 0775
force directory mode = 0775
[prog]
comment = programmer
path = /usr/ydrev
public = yes
writable = yes
browsable = yes
read only = no
create mask = 0755
directory mask = 0755
[cd-tower]
comment = cd-tower
; path = /cdtower
path = /cdtower
public = yes
writable = yes
browsable = yes
read only = no
create mask = 0755
directory mask = 0755
[tar]
comment = debian-archive-system
writable = yes
locking = no
path = /home/tar/
public = no
scincierily
Christoph