Why is 'df' giving 'Permission denied' errors for a non-root user?
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.