[Howto] DOS-Attribute

  • Durch ein Befehl und ein paar Änderungen an der smb.conf,
    kann man DOS-Attribute direkt in die Datei-Attribute auslagern und nicht wie zur Zeit in den Execute-Bits gespeichert.


    Damit es funltioniert. muß man das Dateisystem dazu bringen, weitere Attribute zu speichern bzw. anzunehmen.
    Das geschieht mit tune2fs:
    fü Single disk:

    Code
    tune2fs -o +user_xattr /dev/sda3


    bzw.
    für RAID 0/1/5/6 :

    Code
    tune2fs -o +user_xattr /dev/md0


    Nun müssen noch ein paar Parameter in der smb.conf angepaßt werden:

    Code
    store dos attributes = yesmap archive = nomap system = nomap hidden = nomap read only = no


    bzw. mit diesen Befehlen:

    Code
    setcfg global "store dos attributes" "yes" -f /etc/smb.conf -c
    setcfg global "map archive" "no" -f /etc/smb.conf -c
    setcfg global "map system" "no" -f /etc/smb.conf -c
    setcfg global "map hidden" "no" -f /etc/smb.conf -c
    setcfg global "map read only" "no" -f /etc/smb.conf -c


    !Die Änderungen erfolgen auf eigene Gefahr!


    Schönen Dank an warpcam.


    EDIT:
    "map read only = no" hinzugefügt