非 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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.