LoginSignup
30
26

More than 5 years have passed since last update.

【Linux】ファイルの所有者を再帰的に変更する

Last updated at Posted at 2016-06-20

【Linux】ファイルの所有者を再帰的に変更する

メモ:

・スーパーユーザになる
sudo su -

・以下のコマンドを実行する
chown -R 変更したユーザ名:変更したいグループ名 ディレクトリ

・コマンド例
chown -R testuser:testuser /var/www/htdocs/test/

上記の例を実行すると、/var/www/htdocs/test/以下のファイルの所有者が全て「testuser」となる。

30
26
1

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
30
26