Translated message

A translation of this page exists in English.

CIFS Permission denied または "cifs_mount failed w/return code = -13" エラーの診断

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content