Samba Fehler

Probleme mit Samba, NFS, FTP und Co.
Antworten
Benutzeravatar
MarcMarin
Beiträge: 272
Registriert: 13.04.2004 08:53:14
Wohnort: Köln

Samba Fehler

Beitrag von MarcMarin » 29.06.2004 07:44:05

Hallo ich möchte gerne eine Domäne erstellen habe Samba.conf glaube ich richtig eingestellt schaut mal:

Code: Alles auswählen

[global]
        load printers = yes
        netbiosname = dragon
        domain master = yes
        encrypt passwords = true
        passdb backend = tdbsam guest
        wins support = true
        unix extensions = no
        netbios name = dragon
        printing = cups
        logon script = %U_netlogon.bat
        local master = yes
        workgroup = NOETZEL
        os level = 255
        printcap name = cups
        panic action = /usr/share/samba/panic-action %d
        domain logons = yes

[homes]
        browseable = no
        writeable = yes

        create mode = 755
        available = yes
[netlogon]
        path = /home/netlogon
        browsable = no
        public = no
        writable = no
        create mode = 755
        directory mode = 755

[pub]
        path = /home/GLOBAL
        writable = yes
        comment = Public Stuff
        create mode = 755
        directory mode = 755
        preexec = bash -c 'echo \"Welcome to %S!\" | /usr/bin/smbclient -M %m -I                                             %I' &
        postexec = bash -c 'echo \"%u disconnected from %S from %m (%I)\" | /usr                                            /bin/smbclient -M %m -I %I' &

Aber wenn ich von nem anderen Computer auf die Domäne dragon zugreifen möchte schreibt er direkt Domäne nicht gefunden!Und in den logs sind so seltsame Fehler

Samba log:

Code: Alles auswählen

dragon:/var/log/samba# cat log.nmbd
[2004/06/28 20:37:30, 0] nmbd/nmbd.c:main(664)
  Netbios nameserver version 3.0.4-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2004/06/28 20:43:15, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****

  Samba name server DRAGON is now a local master browser for workgroup DRAGON on subnet 192.168.0.171

  *****
[2004/06/28 20:43:27, 0] nmbd/nmbd.c:terminate(54)
  Got SIGTERM: going down...
[2004/06/28 20:43:31, 0] nmbd/nmbd.c:main(664)
  Netbios nameserver version 3.0.4-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2004/06/28 20:43:31, 0] param/loadparm.c:map_parameter(2428)
  Unknown parameter encountered: "        load printers"
[2004/06/28 20:43:31, 0] param/loadparm.c:lp_do_parameter(3118)
  Ignoring unknown parameter "        load printers"
[2004/06/28 20:43:31, 0] param/loadparm.c:map_parameter(2428)
  Unknown parameter encountered: "        netbiosname"
[2004/06/28 20:43:31, 0] param/loadparm.c:lp_do_parameter(3118)
  Ignoring unknown parameter "        netbiosname"
[2004/06/28 20:43:31, 0] param/loadparm.c:map_parameter(2428)
  Unknown parameter encountered: "        domain master"
[2004/06/28 20:43:31, 0] param/loadparm.c:lp_do_parameter(3118)
  Ignoring unknown parameter "        domain master"
[2004/06/28 20:43:31, 0] param/loadparm.c:map_parameter(2428)
  Unknown parameter encountered: "        encrypt passwords"
...
[2004/06/28 20:43:31, 0] param/loadparm.c:lp_do_parameter(3118)
  Ignoring unknown parameter "        domain logons"
[2004/06/28 20:49:16, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****

  Samba name server DRAGON is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.171

  *****
[2004/06/29 07:23:36, 0] nmbd/nmbd.c:main(664)
  Netbios nameserver version 3.0.4-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2004/06/29 07:23:36, 0] param/loadparm.c:map_parameter(2428)
  Unknown parameter encountered: "        load printers"
[2004/06/29 07:23:36, 0] param/loadparm.c:lp_do_parameter(3118)
  Ignoring unknown parameter "        load printers"
...
[2004/06/29 07:26:44, 0] param/loadparm.c:lp_do_parameter(3118)
  Ignoring unknown parameter "        domain logons"
[2004/06/29 07:32:29, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****

  Samba name server DRAGON is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.171

  *****
Wisst ihr was das sein könnte?

edit bert: listing gekürzt

Benutzeravatar
Bert
Beiträge: 3751
Registriert: 16.07.2002 14:06:52
Wohnort: Dresden
Kontaktdaten:

Beitrag von Bert » 29.06.2004 09:37:53

Hallo marco-bormann,

ich habe mir erlaubt Dein log drastisch zu kürzen. 3 Km Logauszug machen das Post nicht leserlicher und bringen auch nicht ein mehr an Informationen.
Wenn Du noch weitere Fragen hast, dann schau bitte in unsere Verhaltensregeln (siehe meine Signatur)

Achja, und von Netzwerk nach Dateiserver verschoben.

Gruß Bert
Programmer: A biological machine designed to convert caffeine into code.
xmpp:bert@debianforum.de

Benutzeravatar
Malee
Beiträge: 151
Registriert: 10.05.2004 17:28:15
Wohnort: Kabin Buri

Beitrag von Malee » 29.06.2004 17:42:54

versuchs mal mit dieser smb.conf:

Code: Alles auswählen

# Global parameters
[global]
dos charset = 850
unix charset = ISO-8859-15
display charset = ISO-8859-15
workgroup = NOETZEL
netbios name = dragon_pdc
netbios aliases = dragon
server string = %h SERVER
interfaces = eth0
update encrypted = Yes
client schannel = Yes
server schannel = Yes
obey pam restrictions = Yes
passdb backend = tdbsam, guest
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
username map = /etc/samba/smbusers
unix password sync = Yes
log level = 1
log file = /var/log/samba/%m.log
name resolve order = wins bcast hosts
time server = Yes
deadtime = 15
socket options = SO_KEEPALIVE IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
add user script = /usr/sbin/useradd -d /dev/null -g plotec -s /bin/false -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/gpasswd -a %u %g
delete user from group script = /usr/sbin/gpasswd -d %u %g
set primary group script = /usr/sbin/usermod -g '%g' '%u'
add machine script = /usr/sbin/useradd -d /dev/null -g ntadmins -s /bin/false -M %u
logon script = login.bat
logon drive = Z:
logon home = \\SERVER\%Ulogon path = \\SERVER\%U\profile
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
security = user
dns proxy = No
ldap ssl = no
panic action = /bin/sleep 90000
printer admin = root, @ntadmins
force group = ntadmins
hosts allow = 192.168.1., 127.
hosts deny = all
printing = cups
printcap = /var/run/cups/printcap
veto oplock files = /*.dbm/

[netlogon]
comment = Netzwerk Logon Service
path = /home/netlogon
guest ok = yes
writable = yes
browseable = no

[profile]
comment = Windows User Profile
path = /home/%U/profile
profile acls = yes
browseable = yes
writable = yes
create mode = 0600
directory mode = 0770

[homes]
comment = Heimatverzeichnis
valid users = %U
create mask = 0700
directory mask = 0700
browseable = no
writable = yes
Das Verzeichnis /home/netlogon sollte natürlich auch wirklich existieren .... :)
MfG Malee

Antworten