roadracer
14.10.09, 23:13
Hallo,
ich versuche auf meinem PC Samba vernünftig zum fliegen zu kriegen, und hänge dabei an folgendem Problem: NetBIOS löst die Hostnames falsch auf.
Ich habe meine Samba-Konfiguration irgendwie schon einmal total versaut, weil ich mit meinem OpenSUSE 11.1 versucht habe mich à-la-windows in ein lokales Windows-Netzwerk ( 2 mal WinXP und ein OpenSUSE 11.1) anzumelden. Da das dann irgentwie nicht geklappt hat und ich auch keinen Bock hatte da weiter dran rumzufummeln ist es praktisch im Nur-Dran-Rumgespielt Status verblieben.
Inzwischen hat sich Situation aber verändert: Ich brauche Samba und das Windows-Netzwerk hat sich verändert (ein WinXP und 2 mal OpenSUSE 11.1).Auf dem anderen PC mit OpenSUSE habe ich das ganze mit dieser Hilfe (http://de.opensuse.org/SDB:Auf_Windows-Freigaben_zugreifen) konfiguriert und es läuft. Das habe ich auch auf meinem PC probiert, aber nun wollte Samba nicht mehr per init starten und da habe ich kurzer hand mit
su -c 'rm -r /etc/samba' die Samba-Config-Files alle gelöscht und Samba neu installiert. Samba startet jetzt wieder problelos und alles ist gut. Dann hab' ich es wieder versucht, nur werden jetzt die ganzen NetBIOS-Hostnames falsch aufgelöst. Mit dem Befehl
su -c 'smbclient -L PC_Leo -N (Der OpenSUSE PC) kommt nur folgendes
timeout connecting to 80.156.86.78:445
timeout connecting to 80.156.86.78:139
timeout connecting to 62.157.140.133:445
timeout connecting to 62.157.140.133:139
Connection to PC_Leo failed (Error NT_STATUS_ACCESS_DENIED), selbiges beim WinXP-Computer.
Jetzt wird der Hostname scheinbar in irgenteine IP aufgelöst, die ich überhaupt nicht kenne, denn sie ist weder eine der lokal vergebenen IPs der Fritz-Box, noch die IP, die www.wieistmeineip.de (http://www.wieistmeineip.de) mir sagt. :eek:
Gebe ich jedoch
su -c 'smbclient -L [lokal-zugewiesene-IP-der-Fritz-Box] -N ein fuktioniert es mit beiden PCs.
Hier meine /etc/samba/smb.conf
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2009-06-24
[global]
workgroup = Msheimnetz
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
netbios name = Morphy
passdb backend = smbpasswd
usershare max shares = 100
wins support = No
security = user
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
idmap gid = 10000-20000
idmap uid = 10000-20000
ldap suffix =
wins server =
## Share disabled by YaST
# [homes]
# comment = Home Directories
# valid users = %S, %D%w%S
# browseable = No
# read only = No
# inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
## Share disabled by YaST
# [groups]
# comment = All groups
# path = /home/groups
# read only = No
# inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
## Share disabled by YaST
# [netlogon]
Habt ihr eine Idee woran das liegen könnte ??
Ich würde mich über rasche Antworten freuen.
MfG
PS.: Das nmb-init-skript ist beim Start aktiviert und der Zugriff auf meinen PC klappt auch.
ich versuche auf meinem PC Samba vernünftig zum fliegen zu kriegen, und hänge dabei an folgendem Problem: NetBIOS löst die Hostnames falsch auf.
Ich habe meine Samba-Konfiguration irgendwie schon einmal total versaut, weil ich mit meinem OpenSUSE 11.1 versucht habe mich à-la-windows in ein lokales Windows-Netzwerk ( 2 mal WinXP und ein OpenSUSE 11.1) anzumelden. Da das dann irgentwie nicht geklappt hat und ich auch keinen Bock hatte da weiter dran rumzufummeln ist es praktisch im Nur-Dran-Rumgespielt Status verblieben.
Inzwischen hat sich Situation aber verändert: Ich brauche Samba und das Windows-Netzwerk hat sich verändert (ein WinXP und 2 mal OpenSUSE 11.1).Auf dem anderen PC mit OpenSUSE habe ich das ganze mit dieser Hilfe (http://de.opensuse.org/SDB:Auf_Windows-Freigaben_zugreifen) konfiguriert und es läuft. Das habe ich auch auf meinem PC probiert, aber nun wollte Samba nicht mehr per init starten und da habe ich kurzer hand mit
su -c 'rm -r /etc/samba' die Samba-Config-Files alle gelöscht und Samba neu installiert. Samba startet jetzt wieder problelos und alles ist gut. Dann hab' ich es wieder versucht, nur werden jetzt die ganzen NetBIOS-Hostnames falsch aufgelöst. Mit dem Befehl
su -c 'smbclient -L PC_Leo -N (Der OpenSUSE PC) kommt nur folgendes
timeout connecting to 80.156.86.78:445
timeout connecting to 80.156.86.78:139
timeout connecting to 62.157.140.133:445
timeout connecting to 62.157.140.133:139
Connection to PC_Leo failed (Error NT_STATUS_ACCESS_DENIED), selbiges beim WinXP-Computer.
Jetzt wird der Hostname scheinbar in irgenteine IP aufgelöst, die ich überhaupt nicht kenne, denn sie ist weder eine der lokal vergebenen IPs der Fritz-Box, noch die IP, die www.wieistmeineip.de (http://www.wieistmeineip.de) mir sagt. :eek:
Gebe ich jedoch
su -c 'smbclient -L [lokal-zugewiesene-IP-der-Fritz-Box] -N ein fuktioniert es mit beiden PCs.
Hier meine /etc/samba/smb.conf
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2009-06-24
[global]
workgroup = Msheimnetz
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
netbios name = Morphy
passdb backend = smbpasswd
usershare max shares = 100
wins support = No
security = user
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
idmap gid = 10000-20000
idmap uid = 10000-20000
ldap suffix =
wins server =
## Share disabled by YaST
# [homes]
# comment = Home Directories
# valid users = %S, %D%w%S
# browseable = No
# read only = No
# inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
## Share disabled by YaST
# [groups]
# comment = All groups
# path = /home/groups
# read only = No
# inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
## Share disabled by YaST
# [netlogon]
Habt ihr eine Idee woran das liegen könnte ??
Ich würde mich über rasche Antworten freuen.
MfG
PS.: Das nmb-init-skript ist beim Start aktiviert und der Zugriff auf meinen PC klappt auch.