特定のユーザー権限を持つAutoF

特定のユーザー権限を持つAutoF

私のautofsはうまくいきます。問題なくLinuxサーバーにWindows共有をマウントできます。

しかし、問題があります。マウントされた共有はすべてのLinuxユーザーに公開されるのではなく、少数または一意のユーザーグループにのみ公開されることを願っています。

  • 自動.マスターファイル: /mnt /etc/auto.cifs --timeout=60 --ghost

  • auto.cifsファイル: MountedPoint -fstype=cifs,username=JohnDoe,password=password,uid=108956,gid=540,forceuid,forcegid ://server.com/share$

  • autofs共有をマウントしてい/mnt/MountedPointますが、権限があります。

    dr-xr-xr-x 2 root root
    
  • 私はこれを試しましたが、chmod 700次のような結果を得ました。

    chmod: changing permissions of ‘/mnt/MountedPoint/’: Permission denied
    
  • また試しましたが、chown userid:gid /mnt/MountedPoint/「許可を拒否しました」というメッセージが表示されました。

ルート以外の特定のユーザーのみがアクセスできるWindows共有をマウントするようにAutoFを設定する方法はありますか?

Red Hat Enterprise Linux バージョン 7.9 を使用しています。

ベストアンサー1

おすすめ記事