SUMMARY: df permissions

From: Jacques Rall (jacques.rall@za.eds.com)
Date: Thu Jan 23 1997 - 22:08:11 CST


Original question:

Dear SMs,

Why do I get a permission denied when a do a df?

$ df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 1609613 547295 901358 38% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
swap 334600 24 334576 1% /tmp
/dev/dsk/c0t1d0s0 480919 300141 132688 70% /mimsprd
df: cannot statvfs /mimsprd/mims_run/data1: Permission denied
df: cannot statvfs /mimsprd/mims_run/data2: Permission denied
df: cannot statvfs /mimsprd/mims_run/data3: Permission denied
df: cannot statvfs /mimsprd/mims_run/reclog: Permission denied
df: cannot statvfs /mimsprd/mims_run/work: Permission denied
df: cannot statvfs /mimsprd/mincom_tp: Permission denied
/dev/dsk/c0t3d0s3 892470 494000 309230 62% /mimsdev
df: cannot statvfs /mimsdev/mims_run/data: Permission denied
df: cannot statvfs /mimsdev/mims_run/data1: Permission denied
df: cannot statvfs /mimsdev/mims_run/reclog: Permission denied
/dev/dsk/c0t10d0s1 384871 282425 63966 82% /mimstst
df: cannot statvfs /mimstst/mims_run/data: Permission denied
df: cannot statvfs /mimstst/mims_run/reclog: Permission denied
/dev/dsk/c0t10d0s0 577695 307235 212700 60% /corvu
$

and also another one:

$ df -k /mimsprd/mims_run/data1
df: (/mimsprd/mims_run/data1) not a block device, directory or mounted
resource
$

I'm in group 'staff' and the permissions set to the above filesystem
is 750 (with group "dev"). Do I need read permissions on a filesystem
to do a df?

Thanks

Summary:

The user that executes 'df' need to have read permissions on a file
system to see positive results. In my case the user was in group
'staff' which didn't have any permissions on the specific file
systems.

statvfs man page:

        statvfs() fails if one or more of the following are true:

        EACCES Search permission is denied on a com-
                        ponent of the path prefix.

Thanks to *



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:43 CDT