LoginSignup
6

More than 5 years have passed since last update.

カレント以下のフォルダ/ファイルのパーミッションを変更したい

Posted at

カレント以下のフォルダ/ファイルのパーミッションを変更したい

(ただし基本的に既存の設定は保持したい)

対象ディレクトリに移動後、

  • カレント以下のディレクトリに対してグループの読み書き権を付与
    find . -type d -print | xargs chmod g+rw

  • カレント以下のファイルに対してグループの読み書き権を付与
    find . -type f -print | xargs chmod g+rw

※chmod 664などと決め打ちではないので、既存パーミッションの意図せぬ変更をなるべく防げる

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
6