zugriff auf eine Datei per Samba

L

Lord_x

Hallo zusammen :)

Ich habe mir gerade Samba installiert. Ich wollte eigentlich Samba nur verwenden, um mir ein Netzlaufwerk zu mappen.
Auf diesem Laufwerk liegt nichts anderes wie eine Access-Datenbank.
So jetzt kommt der lustige Teil. Ich kann bei einem Rechner unter WinXP
problemlos auf diese Datei zugreifen. Wenn ich aber noch mit einem zweiten Rechner zugreifen will, bekomme ich eine Fehlermeldung,
dass die Datei schreibgeschützt ist. Ich weiss das das unter Windows funktioniert!
Die Frage ist jetzt geht das unter Samba auch oder ist das eine Einschränkung dessen?

Danke
Lord_x
 
Per Default sperrt Samba Dateien, die geöffnet sind. Das läßt sich unterbinden indem für die Freigabe 'locking = No' in die smb.conf eingetragen wird.
 
Dann setze noch 'blocking locks = No' und 'strict locking = No' und falls das immernoch nicht reicht 'oplocks = No'. Allerdings würde ich das Locking an lassen, da im Fall eines zufällig gleichzeitigen Schreib-Zugriffs auf die Datei, diese beschädigt werden kann. Besser ist es, wenn man level2 oplocks aktiviert, so daß die Clients den Status ihres Locks ändern können:

Code:
       level2 oplocks (S)
              This parameter controls whether Samba supports level2 (read-only) oplocks on a share.

              Level2, or read-only oplocks allow Windows NT clients that have an oplock on a file to  downgrade  from  a
              read-write  oplock  to  a  read-only  oplock once a second client opens the file (instead of releasing all
              oplocks on a second open, as in traditional, exclusive oplocks). This allows all openers of the file  that
              support  level2  oplocks  to  cache  the  file  for read-ahead only (ie. they may not cache writes or lock
              requests) and increases performance for many accesses of files that are  not  commonly  written  (such  as
              application .EXE files).

              Once  one  of  the  clients  which have a read-only oplock writes to the file all clients are notified (no
              reply is needed or waited for) and told to break their oplocks to "none" and delete any read-ahead caches.

              It is recommended that this parameter be turned on to speed access to shared executables.
 

Ähnliche Themen

Keine grafische Oberfläche (Debian Installation)

Samba Datentransfer bricht ab

CentOS - Samba Einrichtung will einfach nicht funktionieren

Samba 4 Gast Zugang unter Ubuntu funktioniert nicht

Windows clients können nicht mehr auf lange laufendes System zugreifen

Zurück
Oben