Translated message

A translation of this page exists in English.

非 root ユーザーが df を実行すると Permission denied エラーが出力されるのはなぜですか?

Solution Verified - Updated -

Issue

非 root ユーザーが df を実行すると、マウントポイントがファイルシステムの統計を表示せず、Permission denied error が出力される場合があります。

[testusr1@vm15 ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/vda1              30G   25G  3.9G  87% /
tmpfs                 939M     0  939M   0% /dev/shm
df:`/data/project/vol1':Permission denied

root ユーザーが df を実行すると、期待した結果が得られます。

[root@vm15 /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/vda1              30G   25G  3.9G  87% /
tmpfs                 939M     0  939M   0% /dev/shm
/dev/vdc              9.9G  151M  9.2G   2% /data/project/vol1

Environment

Red Hat Enterprise Linux (すべてのバージョン)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content