0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

NASをUbuntuにmountしようとしてPermission Errorが消えない場合はdomainに注意

Last updated at Posted at 2024-09-16

問題

やりたいこと

  • 研究室の共有フォルダ (Synology NASK) をUbuntu 20.04でマウントしたい

伏線

  • 研究室はドメイン管理?されていて、【ドメイン名】\【ユーザ名】が名前として割り当てられている

やったこと

  • mountする際、ぐぐると出てくるこのコマンドを実行していた
sudo mount -t cifs /path/to/nask /path/to/local -o username="username",password="password"

参考:https://xn--v6q832hwdkvom.com/post/ubuntu%E3%81%A7nas%E5%86%85%E3%81%AE%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AB%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%99%E3%82%8B/

エラー

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

解決方法

  • ドメインをusernameに含めるのではなく、別途記載するとマウントに成功
sudo mount -t cifs /path/to/nask /path/to/local -o username="username",password="password",domain="domain"

おまけ

読み書き権限を与える場合、以下を-oとして追記しておく

,file_mode=0777,dir_mode=0777
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?