LoginSignup
0
0

【bash】root権限をローカルユーザーに切り替えるコマンド

Posted at

Command

用法・用量を守って正しくお使いください。
責任は負いかねます。

指定したディレクトリorファイルの所有権を、現在のユーザーに変更します。

sudo chown -R $(whoami):$(whoami) <ディレクトリ or ファイル名>
# ex.) sudo chown -R $(whoami):$(whoami) root_file.txt
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