CIFS Permission denied または "cifs_mount failed w/return code = -13" エラーの診断
Issue
- たとえば、試しに CIFS 共有を手動でマウントします。
[root@flandre-examplebox ~]# mount -t cifs -o credentials=/etc/user-file //remilia-examplebox/pachiouli /knowledge
mount error(13):Permission denied
mount -aを持つ/etc/fstabを使用してマウントしても失敗します。
[root@flandre-examplebox ~]# mount -a
mount error(13):Permission denied
- マウントしようとすると、以下のメッセージが
/var/log/messagesに記録されます。
Aug 9 22:39:39 flandre-examplebox kernel:Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Aug 9 22:39:39 flandre-examplebox kernel:CIFS VFS:Send error in SessSetup = -13
Aug 9 22:39:39 flandre-examplebox kernel:CIFS VFS: cifs_mount failed w/return code = -13
- mount コマンドの詳細な出力結果に "Credential formatted incorrectly: (null)" エラーが表示されます。
[root@flandre-examplebox ~]# mount -vvv -t cifs -o credentials=/etc/user-file //remilia-examplebox/pachiouli /knowledge
----8<---- (output trimmed)
Credential formatted incorrectly:(null)
mount.cifs kernel mount options: ip=123.123.123.123,unc=\\remilia-examplebox\pachiouli,credentials=/etc/user-file,ver=1,user=USER,domain=DOMAIN,prefixpath=DOMAIN/USER,pass=********
mount error(13):Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Environment
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
