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 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.