Samba...aber ich sehe nix unter XP

xcvb

Well-Known Member
Hallo liebe Leute.

Folgendes Szenario:

Ich habe ein WinXP-Notebook mit welchem ich einfach auf meinen FBSD-Samba-Server zugreifen will, damit ich dort Dateien hin- und herschieben kann. Nix großes also....keine Domäne oder ähnliches.

meine smb.conf:
Code:
[global]
	workgroup = CAPITOL
	server string = FreeBSD Samba Server
	security = SHARE
	log file = /var/log/samba/log.%m
	max log size = 50
	comment = Samba3.0.24
	hosts allow = 192.168.1., 127.

[users]
	comment = bhd Service
	path = /home/bhd
	valid users = bhd
	admin users = bhd
	force user = bhd
	read only = No

[printers]
	comment = All Printers
	path = /var/spool/samba
	printable = Yes
	browseable = No

Konfiguration habe ich mit "testparm" getestet....OK

Ausgabe von "smbclient -L localhost"
Code:
Domain=[CAPITOL] OS=[Unix] Server=[Samba 3.0.24]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (FreeBSD Samba Server)
        users           Disk      bhd Service
Domain=[CAPITOL] OS=[Unix] Server=[Samba 3.0.24]

        Server               Comment
        ---------            -------
        FUCKUP               FreeBSD Samba Server

        Workgroup            Master
        ---------            -------
        CAPITOL              FUCKUP

Auf der XP-Kiste hab ich als Arbeitsgruppe "CAPITOL" eingetragen. Zudem Datei- und Druckerfreigabe und Client für MS-Netzwerke aktiviert.

Ich kann auch vom Notebook aus auf SWAT zugreifen, mich dort mit "bhd" oder "root" anmelden und dann alles sehen.

Aber ich sehe in meiner Netzwerkumgebung nichts, außer die Arbeitsgruppe "CAPITOL". Dort steht aber nichts drin :-(

Hab schon HOWTOS geguckt und ein paar Sachen umkonfiguriert, aber hat alles nix gebracht.

Hat jemand ne Idee wie ich weiter vorgehen kann? Sitz auch schon den ganzen Tag dabei, hab wahrscheinlich schon Tomaten auf den Augen und des Rätsels Lösung liegt direkt vor mir und ich sehe es nur nicht mehr :zitter:

Gruß an alle...
xcvb
 
Manchmal funktioniert diese Netzwerkumgebung nicht sauber. Probier doch mal durch Eingabe von \\FUCKUP\bhd auf die Freigabe zuzugreifen. Haeufig funktioniert das wesentlich zuverlaessiger als die Netzwerkumgebung.

HTH
 
Hallo xbit.

Code:
\\[I]IP-Adresse[/I]\bhd

bzw.

Code:
\\[I]IP-Adresse[/I]\users
es muss doch dann "users" heißen, oder?

....funktioniert nicht. Bekomme dann ein "Das Netzlaufwerk ist nicht erreichbar"


Hier noch mal meine Arbeitsschritte (evtl. hab ich was vergessen)

Server:
Samba aus den Ports installiert
smb.conf angepasst
bhd per smbpasswd hinzugefügt
per testparm und smbclient getestet
SWAT aktiviert
Dienste neu gestartet

Auf XP:
Netbios aktiviert
Client für MS-Netzwerk
Datei- u. Druckerfreigabe

:confused:
 
bhd per smbpasswd hinzugefügt

Moin. Vielleicht solltest du das auch der smb.conf mitteilen.
Code:
   passdb backend = smbpasswd
   encrypt passwords = yes

security würde ich statt share auf user umstellen. Die Freigabe würde mit Schreibrechten wie folgt aussehen:
Code:
[bla]
   comment = bla
   path = /usr/pub/bla
   public = no
   browsable = yes
   writable = yes
   write list = @bla
   valid users = bla1,bla2
 
es muss doch dann "users" heißen, oder?

Vermutlich liegst Du richtig. Ich hab leider kein aktuelles Samba am Laufen, aber es gab da mal ein spezielles Share [home], um die Home Verzeichnisse zu exportieren und das hatte ich nun hinter [users] vermutet.
 
Moin. Vielleicht solltest du das auch der smb.conf mitteilen.
Code:

passdb backend = smbpasswd encrypt passwords = yes

security würde ich statt share auf user umstellen. Die Freigabe würde mit Schreibrechten wie folgt aussehen:
Code:

[bla] comment = bla path = /usr/pub/bla public = no browsable = yes writable = yes write list = @bla valid users = bla1,bla2

Hab ich gemacht, hilft mir bei meinem Problem aber auch nicht weiter. Muss nochmal erwähnen das ich XP-Home-Edition einsetze und gestern irgendwo gelesen habe das Home nicht Samba-fähig ist....:confused:

Noch jemand ne Idee?
 
....... Muss nochmal erwähnen das ich XP-Home-Edition einsetze und gestern irgendwo gelesen habe das Home nicht Samba-fähig ist....:confused:

Noch jemand ne Idee?

also das ist absolut Unfug! Mit XP Home kann man sehr wohl genauso auf Samba zugreifen. Habe ich hier von mehreren PCs ebenso wie mit XP Pro ebenso wie diverse Linuxe im Einsatz.

nur noch ne kleine Nachfrage, da das bei mir 2 Stellen waren, wo es erst gehakelt hatte:
- in der /etc/rc.conf hast du "samba_enable="YES"" eingetragen?
- hast du geprüft, ob smbd auch läuft?

Gruß
Axel
 
Der sollte eigentlich laufen, da er ja schreibt, dass der Zugriff via smbclient funktioniert.

Gibt das Log vom smbd oder nmbd irgendetwas her?
 
ich denke, es ist der Kampf und den "Masterbrowser" das Problem.

Sind denn deine Variablen auch alle richtig belegt -> testparm -v | more
 
Samba ist in meiner rc.conf enabled und die entsprechenden Dienste smbd & nmbd laufen...

hier noch mal ein Snip der Logdateien:

log.nmbd:
Code:
 *****
[2007/03/24 00:29:47, 0] nmbd/nmbd.c:terminate(58)
  Got SIGTERM: going down...
[2007/03/24 00:57:30, 0] nmbd/nmbd.c:main(699)
  Netbios nameserver version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/03/24 01:03:20, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  
  Samba name server FUCKUP is now a local master browser for workgroup CAPITOL on subnet 192.168.1.86
  
  *****
[2007/03/24 01:32:03, 0] nmbd/nmbd.c:terminate(58)
  Got SIGTERM: going down...
[2007/03/24 11:45:13, 0] nmbd/nmbd.c:main(699)
  Netbios nameserver version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/03/24 11:51:02, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  
  Samba name server FUCKUP is now a local master browser for workgroup CAPITOL on subnet 192.168.1.86
  
  *****
[2007/03/24 11:57:31, 0] nmbd/nmbd.c:terminate(58)
  Got SIGTERM: going down...
[2007/03/24 11:57:31, 0] nmbd/nmbd.c:main(699)
  Netbios nameserver version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/03/24 11:59:34, 0] nmbd/nmbd.c:terminate(58)
  Got SIGTERM: going down...
[2007/03/25 12:00:28, 0] nmbd/nmbd.c:main(699)
  Netbios nameserver version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/03/25 12:06:17, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  
  Samba name server FUCKUP is now a local master browser for workgroup CAPITOL on subnet 192.168.1.86

log.smbd:
Code:
[2007/03/23 22:52:27, 1] smbd/files.c:file_init(195)
  file_init: Information only: requested 10000 open files, 3558 are available.
[2007/03/23 23:13:12, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/23 23:13:12, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/23 23:13:12, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/23 23:13:12, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/24 00:57:31, 0] smbd/server.c:main(847)
  smbd version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/03/24 00:57:32, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/24 00:57:32, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/24 00:57:32, 1] smbd/files.c:file_init(195)
  file_init: Information only: requested 10000 open files, 3558 are available.
[2007/03/24 11:45:14, 0] smbd/server.c:main(847)
  smbd version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/03/24 11:45:14, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/24 11:45:14, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/24 11:45:14, 1] smbd/files.c:file_init(195)
  file_init: Information only: requested 10000 open files, 3558 are available.
[2007/03/24 11:52:03, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/24 11:52:03, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/24 11:57:31, 0] smbd/server.c:main(847)
  smbd version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/03/24 11:57:31, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/24 11:57:31, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/24 11:57:31, 1] smbd/files.c:file_init(195)
  file_init: Information only: requested 10000 open files, 3558 are available.
[2007/03/25 12:00:28, 0] smbd/server.c:main(847)
  smbd version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/03/25 12:00:28, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/25 12:00:28, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/03/25 12:00:28, 1] smbd/files.c:file_init(195)
  file_init: Information only: requested 10000 open files, 3558 are available.
okay, das mit CUPS kann ich noch verstehen, das müsste ich noch alles aus der smb.conf entfernen, da ich nicht mal einen Drucker habe.....

testparm -v | more
Code:
Load smb config files from /usr/local/etc/smb.conf
Processing section "[users]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
        dos charset = CP850
        unix charset = UTF-8
        display charset = LOCALE
        workgroup = CAPITOL
        netbios name = FUCKUP
        netbios aliases = 
        netbios scope = 
        server string = FreeBSD Samba Server
        interfaces = 
        bind interfaces only = No
        security = USER
        auth methods = 
        encrypt passwords = Yes
        update encrypted = No
        client schannel = Auto
        server schannel = Auto
        allow trusted domains = Yes
        map to guest = Never
        null passwords = No
        obey pam restrictions = No
        password server = *
        smb passwd file = /usr/local/etc/samba/smbpasswd
        private dir = /usr/local/etc/samba
        passdb backend = smbpasswd
        algorithmic rid base = 1000
        root directory = 
        guest account = nobody
        enable privileges = Yes
        pam password change = No
        passwd program = 
        passwd chat = *new*password* %n\n *new*password* %n\n *changed*
        passwd chat debug = No
        passwd chat timeout = 2
        check password script = 
        username map = 
        password level = 0
        username level = 0
        unix password sync = No
        restrict anonymous = 0
        lanman auth = Yes
        ntlm auth = Yes
        client NTLMv2 auth = No
        client lanman auth = Yes
        client plaintext auth = Yes
        preload modules = 
        use kerberos keytab = No
        log level = 0
        syslog = 1
        syslog only = No
        log file = /var/log/samba/log.%m
        max log size = 50
 debug timestamp = Yes
        debug hires timestamp = No
        debug pid = No
        debug uid = No
        enable core files = Yes
        smb ports = 445 139
        large readwrite = Yes
        max protocol = NT1
        min protocol = CORE
        read bmpx = No
        read raw = Yes
        write raw = Yes
        disable netbios = No
        reset on zero vc = No
        acl compatibility = auto
        defer sharing violations = Yes
        nt pipe support = Yes
        nt status support = Yes
        announce version = 4.9
        announce as = NT
        max mux = 50
        max xmit = 16644
        name resolve order = lmhosts wins host bcast
        max ttl = 259200
        max wins ttl = 518400
        min wins ttl = 21600
        time server = No
        unix extensions = Yes
        use spnego = Yes
        client signing = auto
        server signing = No
        client use spnego = Yes
        enable asu support = No
        svcctl list = 
        deadtime = 0
        getwd cache = Yes
        keepalive = 300
        kernel change notify = Yes
        fam change notify = Yes
        lpq cache time = 30
        max smbd processes = 0
        paranoid server security = Yes
        max disk size = 0
        max open files = 10000
        open files database hash size = 10007
        socket options = TCP_NODELAY
 use mmap = Yes
        hostname lookups = No
        name cache timeout = 660
        load printers = Yes
        printcap cache time = 750
        printcap name = 
        cups server = 
        iprint server = 
        disable spoolss = No
        addport command = 
        enumports command = 
        addprinter command = 
        deleteprinter command = 
        show add printer wizard = Yes
        os2 driver map = 
        mangling method = hash2
        mangle prefix = 1
        max stat cache size = 0
        stat cache = Yes
        machine password timeout = 604800
        add user script = 
        rename user script = 
        delete user script = 
        add group script = 
        delete group script = 
        add user to group script = 
        delete user from group script = 
        set primary group script = 
        add machine script = 
        shutdown script = 
        abort shutdown script = 
        username map script = 
        logon script = 
        logon path = \\%N\%U\profile
        logon drive = 
        logon home = \\%N\%U
        domain logons = No
        os level = 20
        lm announce = Auto
        lm interval = 60
        preferred master = Auto
        local master = Yes
        domain master = Auto
        browse list = Yes
        enhanced browsing = Yes
        dns proxy = Yes
        wins proxy = No
        wins server = 
        wins support = No
        wins hook = 
        kernel oplocks = Yes
 lock spin count = 3
        lock spin time = 10
        oplock break wait time = 0
        ldap admin dn = 
        ldap delete dn = No
        ldap group suffix = 
        ldap idmap suffix = 
        ldap machine suffix = 
        ldap passwd sync = no
        ldap replication sleep = 1000
        ldap suffix = 
        ldap ssl = 
        ldap timeout = 15
        ldap page size = 1024
        ldap user suffix = 
        add share command = 
        change share command = 
        delete share command = 
        eventlog list = 
        config file = 
        preload = 
        lock directory = /var/db/samba
        pid directory = /var/run
        utmp directory = 
        wtmp directory = 
        utmp = No
        default service = 
        message command = 
        get quota command = 
        set quota command = 
        remote announce = 
        remote browse sync = 
        socket address = 0.0.0.0
        homedir map = 
        afs username map = 
        afs token lifetime = 604800
        log nt token command = 
        time offset = 0
        NIS homedir = No
        usershare allow guests = No
        usershare max shares = 0
        usershare owner only = Yes
        usershare path = /var/db/samba/usershares
        usershare prefix allow list = 
        usershare prefix deny list = 
        usershare template share = 
        panic action = 
        host msdfs = Yes
        passdb expand explicit = No
        idmap backend = 
        idmap uid =  idmap gid = 
        template homedir = /home/%D/%U
        template shell = /bin/false
        winbind separator = \
        winbind cache time = 300
        winbind enum users = No
        winbind enum groups = No
        winbind use default domain = No
        winbind trusted domains only = No
        winbind nested groups = Yes
        winbind nss info = template
        winbind refresh tickets = No
        winbind offline logon = No
        comment = Samba3.0.24
        path = 
        username = 
        invalid users = 
        valid users = 
        admin users = 
        read list = 
        write list = 
        printer admin = 
        force user = 
        force group = 
        read only = Yes
        acl check permissions = Yes
        acl group control = No
        acl map full control = Yes
        create mask = 0744
        force create mode = 00
        security mask = 0777
        force security mode = 00
        directory mask = 0755
        force directory mode = 00
        directory security mask = 0777
        force directory security mode = 00
        force unknown acl user = No
        inherit permissions = No
        inherit acls = No
        inherit owner = No
        guest only = No
        guest ok = No
        only user = No
        hosts allow = 192.168.1., 127.
        hosts deny = 
        allocation roundup size = 1048576
        aio read size = 0
        aio write size = 0
        aio write behind = 
        ea support = No
        nt acl support = Yes
  profile acls = No
        map acl inherit = No
        afs share = No
        block size = 1024
        change notify timeout = 60
        max connections = 0
        min print space = 0
        strict allocate = No
        strict sync = No
        sync always = No
        use sendfile = No
        write cache size = 0
        max reported print jobs = 0
        max print jobs = 1000
        printable = No
        printing = cups
        cups options = 
        print command = 
        lpq command = %p
        lprm command = 
        lppause command = 
        lpresume command = 
        queuepause command = 
        queueresume command = 
        printer name = 
        use client driver = No
        default devmode = Yes
        force printername = No
        default case = lower
        case sensitive = Auto
        preserve case = Yes
        short preserve case = Yes
        mangling char = ~
        hide dot files = Yes
        hide special files = No
        hide unreadable = No
        hide unwriteable files = No
        delete veto files = No
        veto files = 
        hide files = 
        veto oplock files = 
        map archive = Yes
        map hidden = No
        map system = No
        map readonly = yes
        mangled names = Yes
        mangled map = 
        store dos attributes = No
        dmapi support = No
        browseable = Yes
        blocking locks = Yes
      csc policy = manual
        fake oplocks = No
        locking = Yes
        oplocks = Yes
        level2 oplocks = Yes
        oplock contention limit = 2
        posix locking = Yes
        strict locking = Auto
        share modes = Yes
        dfree cache time = 0
        dfree command = 
        copy = 
        include = 
        preexec = 
        preexec close = No
        postexec = 
        root preexec = 
        root preexec close = No
        root postexec = 
        available = Yes
        volume = 
        fstype = NTFS
        set directory = No
        wide links = Yes
        follow symlinks = Yes
        dont descend = 
        magic script = 
        magic output = 
        delete readonly = No
        dos filemode = No
        dos filetimes = Yes
        dos filetime resolution = No
        fake directory create times = No
        vfs objects = 
        msdfs root = Yes
        msdfs proxy = 

[users]
        comment = bhd Service
        path = /home/bhd
        valid users = bhd
        admin users = bhd
        force user = bhd
        read only = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No

WINS habe ich auf beiden Seiten nicht konfiguriert, aber das ist glaub ich auch nicht wirklich nötig, oder?
 
Hi,

hier mal zum Vergleich meine bewusst einfach gehaltene smb.conf, die aber für Zugriff von mehreren Win XP's funktioniert:

Code:
freebsd# testparm -v
Load smb config files from /usr/local/etc/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Processing section "[fabian]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        dos charset = CP850
        unix charset = UTF-8
        display charset = LOCALE
        workgroup = DEBIAN
        netbios name = FREEBSD
        netbios aliases =
        netbios scope =
        server string = Samba 3.0.23d
        interfaces =
        bind interfaces only = No
        security = SHARE
        auth methods =
        encrypt passwords = Yes
        update encrypted = No
        client schannel = Auto
        server schannel = Auto
        allow trusted domains = Yes
        map to guest = Never
        null passwords = No
        obey pam restrictions = Yes
        password server = *
        smb passwd file = /usr/local/etc/samba/smbpasswd
        private dir = /usr/local/etc/samba
        passdb backend = smbpasswd
        algorithmic rid base = 1000
        root directory =
        guest account = nobody
        enable privileges = Yes
        pam password change = No
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
        passwd chat debug = No
        passwd chat timeout = 2
        check password script =
        username map =
        password level = 0
        username level = 0
        unix password sync = No
        restrict anonymous = 0
        lanman auth = Yes
        ntlm auth = Yes
        client NTLMv2 auth = No
        client lanman auth = Yes
        client plaintext auth = Yes
        preload modules =
        use kerberos keytab = No
        log level = 0
        syslog = 0
        syslog only = No
        log file = /var/log/samba/log.%m
        max log size = 1000
        debug timestamp = Yes
        debug hires timestamp = No
        debug pid = No
        debug uid = No
        enable core files = Yes
        smb ports = 445 139
        large readwrite = Yes
        max protocol = NT1
        min protocol = CORE
        read bmpx = No
        read raw = Yes
        write raw = Yes
        disable netbios = No
        reset on zero vc = No
        acl compatibility = auto
        defer sharing violations = Yes
        nt pipe support = Yes
        nt status support = Yes
        announce version = 4.9
        announce as = NT
        max mux = 50
        max xmit = 16644
        name resolve order = lmhosts wins host bcast
        max ttl = 259200
        max wins ttl = 518400
        min wins ttl = 21600
        time server = No
        unix extensions = Yes
        use spnego = Yes
        client signing = auto
        server signing = No
        client use spnego = Yes
        enable asu support = No
        svcctl list =
        deadtime = 0
        getwd cache = Yes
        keepalive = 300
        kernel change notify = Yes
        fam change notify = Yes
        lpq cache time = 30
        max smbd processes = 0
        paranoid server security = Yes
        max disk size = 0
        max open files = 10000
        open files database hash size = 10007
        socket options = TCP_NODELAY
        use mmap = Yes
        hostname lookups = No
        name cache timeout = 660
        load printers = Yes
        printcap cache time = 750
        printcap name =
        cups server =
        iprint server =
        disable spoolss = No
        addport command =
        enumports command =
        addprinter command =
        deleteprinter command =
        show add printer wizard = Yes
        os2 driver map =
        mangling method = hash2
        mangle prefix = 1
        max stat cache size = 0
        stat cache = Yes
        machine password timeout = 604800
        add user script =
        rename user script =
        delete user script =
        add group script =
        delete group script =
        add user to group script =
        delete user from group script =
        set primary group script =
        add machine script =
        shutdown script =
        abort shutdown script =
        username map script =
        logon script =
        logon path = \\%N\%U\profile
        logon drive =
        logon home = \\%N\%U
        domain logons = No
        os level = 20
        lm announce = Auto
        lm interval = 60
        preferred master = Auto
        local master = Yes
        domain master = Auto
        browse list = Yes
        enhanced browsing = Yes
        dns proxy = No
        wins proxy = No
        wins server =
        wins support = No
        wins hook =
        kernel oplocks = Yes
        lock spin count = 3
        lock spin time = 10
        oplock break wait time = 0
        ldap admin dn =
        ldap delete dn = No
        ldap group suffix =
        ldap idmap suffix =
        ldap machine suffix =
        ldap passwd sync = no
        ldap replication sleep = 1000
        ldap suffix =
        ldap ssl = no
        ldap timeout = 15
        ldap page size = 1024
        ldap user suffix =
        add share command =
        change share command =
        delete share command =
        eventlog list =
        config file =
        preload =
        lock directory = /var/db/samba
        pid directory = /var/run
        utmp directory =
        wtmp directory =
        utmp = No
        default service =
        message command =
        get quota command =
        set quota command =
        remote announce =
        remote browse sync =
        socket address = 0.0.0.0
        homedir map =
        afs username map =
        afs token lifetime = 604800
        log nt token command =
        time offset = 0
        NIS homedir = No
        usershare allow guests = No
        usershare max shares = 0
        usershare owner only = Yes
        usershare path = /var/db/samba/usershares
        usershare prefix allow list =
        usershare prefix deny list =
        usershare template share =
        panic action = /usr/share/samba/panic-action %d
        host msdfs = Yes
        passdb expand explicit = No
        idmap backend =
        idmap uid =
        idmap gid =
        template homedir = /home/%D/%U
        template shell = /bin/false
        winbind separator = \
        winbind cache time = 300
        winbind enum users = No
        winbind enum groups = No
        winbind use default domain = No
        winbind trusted domains only = No
        winbind nested groups = Yes
        winbind nss info = template
        winbind refresh tickets = No
        winbind offline logon = No
        comment =
        path =
        username =
        invalid users =
        valid users =
        admin users =
        read list =
        write list =
        printer admin =
        force user =
        force group =
        read only = Yes
        acl check permissions = Yes
        acl group control = No
        acl map full control = Yes
        create mask = 0744
        force create mode = 00
        security mask = 0777
        force security mode = 00
        directory mask = 0755
        force directory mode = 00
        directory security mask = 0777
        force directory security mode = 00
        force unknown acl user = No
        inherit permissions = No
        inherit acls = No
        inherit owner = No
        guest only = No
        guest ok = No
        only user = No
        hosts allow =
        hosts deny =
        allocation roundup size = 1048576
        aio read size = 0
        aio write size = 0
        aio write behind =
        ea support = No
        nt acl support = Yes
        profile acls = No
        map acl inherit = No
        afs share = No
        block size = 1024
        change notify timeout = 60
        max connections = 0
        min print space = 0
        strict allocate = No
        strict sync = No
        sync always = No
        use sendfile = No
        write cache size = 0
        max reported print jobs = 0
        max print jobs = 1000
        printable = No
        printing = cups
        cups options =
        print command =
        lpq command = %p
        lprm command =
        lppause command =
        lpresume command =
        queuepause command =
        queueresume command =
        printer name =
        use client driver = No
        default devmode = Yes
        force printername = No
        default case = lower
        case sensitive = Auto
        preserve case = Yes
        short preserve case = Yes
        mangling char = ~
        hide dot files = Yes
        hide special files = No
        hide unreadable = No
        hide unwriteable files = No
        delete veto files = No
        veto files =
        hide files =
        veto oplock files =
        map archive = Yes
        map hidden = No
        map system = No
        map readonly = yes
        mangled names = Yes
        mangled map =
        store dos attributes = No
        dmapi support = No
        browseable = Yes
        blocking locks = Yes
        csc policy = manual
        fake oplocks = No
        locking = Yes
        oplocks = Yes
        level2 oplocks = Yes
        oplock contention limit = 2
        posix locking = Yes
        strict locking = Auto
        share modes = Yes
        dfree cache time = 0
        dfree command =
        copy =
        include =
        preexec =
        preexec close = No
        postexec =
        root preexec =
        root preexec close = No
        root postexec =
        available = Yes
        volume =
        fstype = NTFS
        set directory = No
        wide links = Yes
        follow symlinks = Yes
        dont descend =
        magic script =
        magic output =
        delete readonly = No
        dos filemode = No
        dos filetimes = Yes
        dos filetime resolution = No
        fake directory create times = No
        vfs objects =
        msdfs root = Yes
        msdfs proxy =

[printers]
        comment = All Printers
        path = /tmp
        create mask = 0700
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

[fabian]
        comment = fabian's daten
        path = /mnt/DATA-MAXTOR/fabian
        read only = No
        guest ok = Yes
 
Ich werd bekloppt, hab es nun endlich hinbekommen nachdem ich mich dran erinnern konnte, das ich vor gut einem Jahr mal was an meiner NetBIOS-Konfiguration von XP rumgebastelt habe (nicht bei TCP/IP sondern im Gerätemanager). Dort hatte ich seinerzeit den Treiber deaktiviert (steht stardardmäßig auf "Automatsich"). Jetzt ist er wieder aktiv und die Sache läuft rund.

Zudem habe ich aber noch in der smb.conf "os level = 34" gesetzt.

Ich danke euch allen für eure Antworten und die Mühe.

Gruß
xcvb
 
Hallo Leute,

ich würde mir auch gerne ein Netzlaufwerk einrichten. Reicht es wirklich einfach nur die genannten Schritte durchzuführen?

Server:
Samba aus den Ports installieren
smb.conf angepassen
user per smbpasswd hinzugefügen
per testparm und smbclient testen
SWAT aktivieren
Dienste neu starten

Auf XP:
Netbios aktivieren
Client für MS-Netzwerk &
Datei- u. Druckerfreigabe aktivieren

Der Eintrag in der rc.conf wäre sicherlich auch noch sinnvoll, oder?

Ist es auch möglich samba ohne cups zu installieren?
Was ist dieses SWAT? Und was bedeutet dieses "os level = 34"?

Viele Grüße
 
Fangen wir mal oben an:
- Die Liste ist OK, allerdings kann man auf SWAT (ein Webinterface zu Samba) auch gut verzichten. Wenn die Konfiguraation statisch ist, erzeugt es nur sinnlosen Overhead.
- In die rc.conf kommt natürlich ein samba_enable="YES"
- Ohne CUPS sollte gehen. Mal mit make config im Portsdir schauen oder direkt in die Makefile gucken.
- Der Wert den OS Level ist wichtig, wenn SMB den Master Broser im Netz aushandelt. Sollte für kleinere oder triviale Setups egal sein.
 
@BrainPain:

Ja so ist im generellen die Vorgehensweise. Musst natürlich die einzelnen smb.conf-Sektionen an deine Bedürfnisse anpassen.

SWAT brauchst du nicht zwingend einrichten (ich finde das Tool nicht so überragend). CUPS kann man auch außen vor lassen. make wird dich beim übersetzten danach fragen was du haben willst und was nicht. Folgende Links kann ich dir noch empfehlen:

http://samba.sernet.de/uploads/media/skript.pdf
http://gertranssmb3.berlios.de/output/

Und natürlich hier im Wiki lesen....

Gruß
xcvb
 
Vielen Dank für die Antworten.

- Der Wert den OS Level ist wichtig, wenn SMB den Master Broser im Netz aushandelt. Sollte für kleinere oder triviale Setups egal sein.

Bei mir wäre es wohl ein kleineres Setup, da max. 5 Rechner(FreeBSD-Server, 2x FreeBSD-Desktop, 2x WinXP-Home-Notebook) dieses Netzlaufwerk nutzen würden.
Was ist denn ein Master Browser?

Viele Grüße
 
Hallo Leute,

ich habe jetzt mal einen Samba-Server mit zwei Shares aufgesetzt. Ich kann die Shares auch schon unter XP-Home sehen. Jedoch habe ich keine Schreibrechte darauf. Weis jemand woran das liegen kann?

smb.conf:
Code:
[global]
	workgroup = WORKGROUP
	netbios name = SambaServer
	server string = Samba 3
	guest account = nobody
	keep alive = 30
	os level = 65
	kernel oplocks = Yes
	security = share
	show add printer wizard = No
	encrypt passwords = yes
	obey pam restrictions = Yes
	smb passwd file = /usr/local/etc/samba/smbpasswd
	private dir = /usr/local/etc/samba
	passdb backend = smbpasswd
	pam password change = No
	passwd program = /usr/bin/passwd %u
	passwd chat = *new*password* %n\n *new*password* %n\n *changed*
	name cache timeout = 660
	mangling method = hash2
	mangle prefix = 1
	max stat cache size = 0
	stat cache = Yes
	machine password timeout = 604800
	lm announce = Auto
	lm interval = 60
	preferred master = Auto
	local master = Yes
	domain master = Auto
	browse list = Yes
	enhanced browsing = Yes
	lock directory = /var/db/samba
	pid directory = /var/run
	hosts allow = 172.16.100., 127.
	available = Yes
	fstype = NTFS
	set directory = No
	wide links = Yes
	follow symlinks = Yes
	delete readonly = No
	dos filemode = No
	dos filetimes = Yes
	dos filetime resolution = No
	fake directory create times = No
	msdfs root = Yes
	socket options = TCP_NODELAY
	map to guest = Never
	wins support = no

[transfer]
	comment = transfer
	path = /mnt/transfer
	read only = No
	guest ok = Yes

[backup]
	comment = server-backup
	path = /mnt/backup
	read only = Yes
	guest ok = Yes
Ich hoffe ich habe nicht zuviel Überflüssiges in der Datei. :)

bisherige Vorgehensweise:
1. samba installiert aus /usr/ports/net/samba3 (in den optionen alles deaktiviert)
2. smb.conf nach /usr/local/etc/smb.conf kopiert
3. eintrag in /etc/rc.conf: samba_enable="YES"
4. dienste gestartet mit /usr/local/etc/rc.d/samba

Netbios brauchte ich unter XP-Home nicht aktivieren, da es scheinbar bei statischer Adressenvergabe automatisch aktiv ist. Wie gesagt konnte ich bereits lesend auf die Shares zugreifen nur nicht schreibend.

Viele Grüße
 
Ich hoffe ich habe nicht zuviel Überflüssiges in der Datei. :)

Hi. Doch, das hast du.. :eek:

Hier eine minimale Konfiguration wie sie ähnlich bei mir laufen:
Code:
   workgroup = BLA
   security = user
   passdb backend = smbpasswd
   encrypt passwords = yes
   hosts allow = 192.168.1.
   interfaces = 192.168.1.0/24
   bind interfaces only = yes
   load printers = no
   log file = /var/log/samba/log.%m
   max log size = 50
   dns proxy = no

Und die entsprechende Freigabe, in der Group und User die schreiben dürfen bekannt gegeben werden sollten:
Code:
[bla]
   comment = BLA
   path = /usr/bla
   public = no
   browsable = yes
   writable = yes
   printable = no
   write list = @group
   valid users = user,user

Vielleicht hilft dir das Beispiel weiter..
 
Hmmm...ich dachte wenn ich
Code:
security = share
angebe kann ich mir diese group/user-Angaben sparen. Ist dies nicht der Fall?
Ich will eigentlich nur dass alle User aus dem 172.16.100.-Netz auf dieses Share schreiben können. Eine Einschränkung auf spezielle User ist bei mir überflüssig.

Viele Grüße
 
Hi Leutz, es gibt immer mit dem Samba Probleme, wenn man das NetBios ausschaltet und das DNS in beide Richtungen nicht richtig geht.

WinXP unterstuetzt ja 'schon' die SMB Abfrage per DNS.
Laeuft also im Netz ein 'richtiger' DNS (Bind) oder so ist das kein Problem den doofen NetBios Dienst zu killen. Ansonsten braucht man den aus alten Zeiten.

Alter hast du 1000 geile Options fuer 3 aufgaben in Deiner smb.conf.

guest account = nobody
map to guest = Bad User

Das sind die Options an denen es wohl krankt bei Dir.

[global]
workgroup = Arbeitsgruppe
server string = SERVER
interfaces = IP oder Interfacename (fxp0) zum Beispiel, nur noetig bei mehreren Karten
bind interfaces only = Yes Nur noetig bei mehreren...
encrypt passwords = Yes
security = user
log file = /var/log/samba/log.%m
syslog = 4
max log size = 500
load printers = No
preferred master = Yes
domain master = Yes
ldap ssl = no
guest account = nobody
map to guest = Bad User


Natuerlich nicht zu vergessen: hosts allow = 172.16.100., 127. Deine Bereichs Option.


Soo und schon sollte alles laufen. Was mir aufgefallen ist, dass NIEMAND mal den Netlogon Service erwaehnt hat.
Der ist fuer WinBuechsen doch Voraussetzung, dass die Netzwerkumgebung ueberhaupt gescheit funzt.

Also eine Freigabe like:

[netlogon]
comment = Network Logon Service
path = /usr/local/netlogon
guest ok = Yes
browseable = No

Ist unausweichlich.

Eine Freigabe fuer alle User einfach sieht dann so aus:

[Temp]
comment = temp (wo files nur kurz liegen ;o)
path = /data2/temp
read only = No
create mask = 0777
directory mask = 0777
guest ok = YES

Natuerlich kann man da auch noch 4000 andere Options reinbasteln, Du wolltest aber quick & dirty, right? :o)

Und dann rennt die Muehle.

/usr/local/etc/rc.d/samba restart und alles ist rund.


MFG der Domain Master....

CAT *g :o)
 
Danke für die Tipps, aber leider hat sich am Problem nix geändert.

meine jetzige smb.conf:
Code:
[global]
	workgroup = WORKGROUP
	netbios name = SambaServer
	server string = Samba 3
	encrypt passwords = Yes
	security = user
	log file = /var/log/samba/log.%m
	syslog = 4
	max log size = 500
	load printers = No
	preferred master = Yes
	domain master = Yes
	ldap ssl = no
	guest account = nobody
	map to guest = Bad User
	hosts allow = 172.16.100., 127.

[netlogon]
	comment = Network Logon Service
	path = /usr/local/netlogon
	guest ok = Yes
	browseable = No

[transfer]
	comment = transfer
	path = /mnt/transfer
	read only = No
	create mask = 0777
	directory mask = 0777
	guest ok = YES

[backup]
	comment = server-backup
	path = /mnt/backup
	read only = Yes
	guest ok = Yes

Mache ich vielleicht einen Fehler in XP? Reicht es nicht einfach im Explorer \\<SERVERNAMEN>\<SHARENAMEN> einzugeben? Wie gesagt bekomme ich den Inhalt angezeigt. Ich kann nur nicht schreibend zugreifen.

Viele Grüße
 
Jaaa ganz einfach.

Du musst Deine Berechtigung in deinem Verzeichnis auch noch setzen.

ist der Pfad /mnt/transfer denn tatsaechlich vorhanden?
/mnt ist eigentlich fuer zusaetzliche Laufwerke oder aehnliches.
aber ok.

Also die Rechte musst Du auch im BSD verteilen...

http://www.freebsd.org/doc/de_DE.ISO8859-1/books/handbook/permissions.html

chmod -R 777 /dein/verzeichnis

Damit werden alle Rechten auf schreiben und lesen und ausfuehren im BSD Filesystem gesetzt. Versuch das mal.
 
Vielen Dank,

genau das war es das gefehlt hat. Mich wundert es zwar ein wenig dass das Ausführungsrecht benötigt wird aber egal...es geht.

Viele Grüße
 
Zurück
Oben