Red Hat Enterprise Linux 7 - Windows共有の問題のインストール

Red Hat Enterprise Linux 7 - Windows共有の問題のインストール

既に共有とNTFS権限があります。すべて - すべての権限//10.180.102.11/Data

//10.180.102.11/Data参加済みファイルサーバードメインの下に共有を設定しました。

訪問したいです//10.180.102.11/Data/IT_Folder/Projects

mount -t cifs //10.180.102.11/Data/IT_Folder/Projects /share -o username=guest,password="",vers=1.0

入ります(状態 NT_STATUS_ACCESS_DENIED

他のものをインストールする必要がありますか?何かを構成する必要がありますか?

最近の更新:

 SMB Session Authentication Failure

Client Name: \\xx.xx.xx.xx
Client Address: xx.xx.xx.xx:40006
User Name: 
Session ID: 0x204029000002D
Status: The user account has been automatically locked because too many invalid logon attempts or password change attempts have been requested. (0xC0000234)
SPN: session setup failed before the SPN could be queried
SPN Validation Policy: SPN optional / no validation

Guidance:

You should expect this error when attempting to connect to shares using incorrect credentials.

This error does not always indicate a problem with authorization, but mainly authentication. It is more common with non-Windows clients.

This error can occur when using incorrect usernames and passwords with NTLM, mismatched LmCompatibility settings between client and server, an incorrect service principal name, duplicate Kerberos service principal names, incorrect Kerberos ticket-granting service tickets, or Guest accounts without Guest access enabled

ベストアンサー1

最初にすべきことは、有効なユーザー名とパスワードを使用することで、2番目は古いSMB v1の使用を中止することです。

contoso.comこのようなものをADドメイン、realuser実際の有効なユーザー名、および対応するwhateverパスワードに置き換えてください。サポートされているすべてのWindowsサーバーがこの問題を直接処理するため、この例ではSMB v3.0を使用しました。

mount -t cifs //10.180.102.11/Data/IT_Folder/Projects /share -o 'domain=contoso.com,username=realuser,password=whatever,vers=3.0'

これが成功したら、資格情報をコマンドラインからセキュリティファイルに移動することをお勧めします。パスワードはまだプレーンテキストで保存されますが、少なくとも一般的に読めるファイルには保存されません。

cat >/etc/smb_credentials <<'EOF'
domain=contoso.com
username=realuser
password=whatever
EOF

chown root:root /etc/smb_credentials
chmod 600 /etc/smb_credentials          # user: read/write, group+others: no access

mount -t cifs //10.180.102.11/Data/IT_Folder/Projects /share -o 'credentials=/etc/smb_credentials,vers=3.0'

おすすめ記事