Linuxユーザーが他のユーザーのディレクトリを見るのを防ぐ方法

Linuxユーザーが他のユーザーのディレクトリを見るのを防ぐ方法

SFTPソリューションを構築していますが、group1userがgroup2userのディレクトリを表示したり、より正確にリストしたりするのを防ぐことはできません。 group1userが実際にgroup2userのディレクトリに入らないように設定しましたが、FileZillaを介して接続すると、実際にディレクトリ名を見ることができます。

ファイル構造=

             /upload/group1Directory

             /upload/group2Directory

daveは所有者であり、group1Directoryとgroup2Directoryを表示して入力できます。

現在の権限は次のとおりです。

rwxr-xr-x.   4 root root          46 Feb 17 09:55 upload

drwxr-x---. 2 dave group1     60 Feb 17 11:09   group1Directory
drwxr-x---. 2 dave group2     61 Feb 17 11:09   group2Directory

sshd_configは次のようになります

Match User dave
        ForceCommand internal-sftp -u 0002
        #PasswordAuthentication yes
        ChrootDirectory /upload
        PermitTunnel no
        AllowAgentForwarding yes
        AllowTcpForwarding yes
        X11Forwarding yes
        PubkeyAuthentication yes

Match User group1user
        ForceCommand internal-sftp -u 0002
        #PasswordAuthentication yes
        ChrootDirectory /upload
        PermitTunnel no
        AllowAgentForwarding yes
        AllowTcpForwarding yes
        X11Forwarding yes
        PubkeyAuthentication yes

Match User group2user
        ForceCommand internal-sftp -u 0002
        #PasswordAuthentication yes
        ChrootDirectory /upload
        PermitTunnel no
        AllowAgentForwarding yes
        AllowTcpForwarding yes
        X11Forwarding yes
        PubkeyAuthentication yes


    

group1userでgroup2userのディレクトリを隠す方法についてのアイデアはありますか? ...その逆?どんな助けでも大変感謝します。

ベストアンサー1

おすすめ記事