Sambaサーバーを介してNAS共有のファイル/フォルダ属性を変更することはできません。

Sambaサーバーを介してNAS共有のファイル/フォルダ属性を変更することはできません。

私の状況:

  • クライアント (Windows 10) -> サーバー (Debian 10 / Samba バージョン 4.9.5-Debian) -> NAS (Lenovo ix2)

  • クライアント(Windows 10)では、問題なくファイルやフォルダを作成、名前変更、削除、変更できますが、DOS / Windowsファイルのプロパティ情報(読み取り、書き込み、非表示、システム)を取得または設定することはできません!

  • Windows 10ではSMBv1が有効になっています。

  • サーバーDebianが8から10.10に更新されました(新しいハードウェアシステム、新しくインストール、最初から起動)。バージョン 8.0 ではこの問題は発生しません。

  • サーバーマウント - 通過したがfstabNAS共有と同じプロンプト:

    //NAS/STORAGE  /mnt/STORAGE  cifs  username=...,password=...,rw,dir_mode=0777,file_mode=0666,uid=...,gid=...,noauto,noserverino,nounix,vers=1.0
    

    vers=2.0vers=3.0および他の多くのことを試しましたが...オプションを省略しましたが、何も試みませんでした。

  • サーバー(Debian 10)は他の多くのWindows共有(Windows 10、Windows 7、Windows NT 4.0)を(「/ mnt」パスサブフォルダに)マウントしますが、問題はありません。 NAS(Lenovo ix2)でのみ可能です。動作しません。

  • smb.conf:

    [global]
    workgroup = WORKGROUP
    # *** I have tried many parameter for protocol:
    #client min protocol = SMB2
    #server min protocol = SMB2
    #client max protocol = NT1
    #server max protocol = NT1
    #max protocol = NT1
    interfaces = 127.0.0.0/8 enp11s0f0 enp11s0f1 10.9.8.1
    bind interfaces only = yes
    log file = /var/log/samba/log.%m
    max log size = 1000
    server role = standalone server
    netbios name = PIGRECO
    server string = Distributed File Server - Samba %v (%h)
    interfaces = lo enp11s0f0 enp11s0f1
    local master = yes
    domain master = yes
    preferred master = yes
    os level = 35
    encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd
    guest account = studio
    ldap ssl = no
    client lanman auth = yes
    client plaintext auth = yes
    wins support = yes
    dfree command = /usr/local/bin/dfree
    
    [COMMON]
    comment = Common PIGRECO Archive
    path = /mnt
    force user = studio
    read only = No
    create mask = 0777
    directory mask = 0777
    guest ok = Yes
    hosts allow = 192.168.0. 172.0.0. 10.9.8.
    strict locking = No
    browsable = Yes
    # The "ea support" set to "no" don't solve the problem:
    #ea support = no
    vfs objects = recycle
    recycle:repository = /mnt/STORAGE/Trash
    recycle:keeptree = Yes
    recycle:versions = Yes
    recycle:maxsize = 104857600
    
  • CIFSデバッグ(を使用して)を試みましたが、次のecho 7 > /proc/fs/cifs/cifsFYIエラーが発生しました。

    Status code returned 0xc000004f NT_STATUS_EAS_NOT_SUPPORTED
    

    しかし、オンラインでは何の情報も見つけることができません。

  • /mnt他のフォルダ(権限と所有者)と同様に、NAS用の新しいサブフォルダを作成しましたが、Linuxのプロパティ/所有者を変更すると、読み取り/書き込みファイルの作成権限のみが影響を受けました。

どんな提案がありますか?

ベストアンサー1

Sambaプロフィール()の設定が見つかりました/etc/samba/smb.conf

[global]
  client min protocol = SMB2_10
  client max protocol = SMB3_11
  
  client ipc min protocol = SMB2_10
  client ipc max protocol = SMB3_11

  server min protocol = SMB2_10
  server max protocol = SMB3_11

  map readonly = permissions
  store dos attributes = no

これで、Windows 7/10でファイル権限を変更できるようになりました。

おすすめ記事