LoginSignup
0
0

ファイル所有者の変更

Posted at
# 現在のユーザーを確認
$ whoami
-> {{自分のユーザー名}}

# rootユーザーでファイル作成
$ su touch test

# ファイルの権限がrootになっていることを確認
$ ls -l test

# ファイルの権限を自分に変える
$ chown {{自分のユーザー名}}:{{自分のユーザー名}} test

# ファイルの所有者が自分になっていることを確認
$ ls -l test
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