LoginSignup
5
4

More than 5 years have passed since last update.

特定のPathまでのディレクトリ、ファイルの権限を一度に表示する

Posted at

特定のPathまでの権限を確認 したいことがある。 HTTPサーバで権限エラー , SSH キーの権限 を確認したりするときに使えます。
一括で該当ディレクトリまでの権限を確認する方法を紹介します。

$namei -l [path]

結果は以下のように表示されます。

root@host ~# namei -l ~/.ssh/id_rsa
f: /root/.ssh/id_rsa
drwxr-xr-x root root /
drwx------ root root root
drwx------ root root .ssh
-rw------- root root id_rsa
5
4
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
5
4