LoginSignup
3
5

More than 5 years have passed since last update.

【Linux】ファイルやディレクトリのアクセス権限(パーミッション)を再帰的に変更する

Posted at

【Linux】ファイルやディレクトリのアクセス権限(パーミッション)を再帰的に変更する

メモ:所有者のみ書き込み可能にする

・chmodコマンドを実行する
chmod 変更したい権限 -R ディレクトリorファイル

・コマンド例
chmod 755 -R /var/www/htdocs/test/

上記の例を実行すると、/var/www/htdocs/test/以下のファイル、ディレクトリが
その所有者は読み出せて、書き込めて、実行できる
そのグループは、読み出せて、実行できる
その他のユーザは、読み出せて、実行できる
となる。

3
5
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
3
5