LoginSignup
8
7

More than 3 years have passed since last update.

【chmod】現在のディレクトリすべてのファイルパーミッションを変更する

Posted at
$ chmod -R 744 .

こうなります。
image.png

必要になった動機

Ubuntu18.04(WSL2)環境で作成したRailsアプリをcloneして、bin/railsをつかおうとしたら実行権限がなかったため。

参考

数値は2進数で権限を与えたい部分をコントロールする

読み取り 書きこみ 実行
r w x
4 2 1
数値 所有者 グループ その他
000 --- --- ---
700 rwx --- ---
744 rwx r-- r--
8
7
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
8
7