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?

More than 3 years have passed since last update.

Unable to write file '/Users/user/projects/SampleProject_server/database/my_conf/aaa' (NoPermissions (FileSystemError): Error: EACCES: permission denied, open '/Users/user/projects/SampleProject_server/database/my_conf/aaa') の解決方法

Posted at

いつ起きた?

ダウンロードフォルダに新しくvscodeを使ってファイルを追加しようとしたら出ました

原因は?

フォルダ内の編集にはrootだけしかできなくなっていたためでした(そうなった理由は不明です;)

解決方法

下記のコマンドを打ったことでvscodeで編集が可能になりました

% chmod -R 775 SampleProject_server
このコマンドの詳細は下記のような内容になっています
  • chmod: 権限を与える
  • -R: フォルダ名(ここではSampleProject_server)以下のフォルダ、ファイルに同じコマンドを反映させる
  • 775: ①所有者が全ての権限(7) ②グループ(vscodeはこれ)が全ての権限(7) ③その他のユーザーが実行・読み取り可能(5)

参考にさせてもらったサイト

パーミッションに関する詳しい解説が記載されているサイト:
https://linuxfan.info/chmod

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?