LoginSignup
2
1

More than 5 years have passed since last update.

Rails x Cloudinaryでパーミッションエラーが出た時の対処

Posted at

Cloudinaryに画像をアップロードするアプリケーションを作っていた時に起きた問題

エラー内容

以下のようなエラーが出た。

Netrc::Error: Permission bits for '/Users/username/.netrc' should be 0600, but are 644
from /Users/username/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/netrc-0.11.0/lib/netrc.rb:45:in `check_permissions'

対処法

エラーメッセージの通り、644権限でエラーになってるので、600にファイルのパーミッションレベルを変更する

$ chmod 600 /Users/username/.netrc
2
1
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
2
1