Why is 'df' giving 'Permission denied' errors for a non-root user?

Solution Verified - Updated -

Issue

When a non-root user runs 'df', some mount points give a 'Permission denied error, rather than display the filesystem statistics:

[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

Running 'df' as the root user gives the expected results:

[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

All versions of RHEL

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