Comment 2 for bug 1905623

Revision history for this message
Ryan Beisner (1chb1n) wrote :

The upstream bug is closed as working-as-designed, but this is impactful to anything that expects ```df``` to exit 0 as a non-root user.

ex.

me@here:~$ df -h
df: /run/user/1000/doc: Operation not permitted
Filesystem Size Used Avail Use% Mounted on
tmpfs 3.1G 4.6M 3.1G 1% /run
/dev/mapper/vgubuntu-root 914G 184G 684G 22% /
tmpfs 16G 810M 15G 6% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup
/dev/nvme0n1p2 705M 218M 436M 34% /boot
/dev/nvme0n1p1 511M 7.8M 504M 2% /boot/efi
tmpfs 3.1G 192K 3.1G 1% /run/user/1000
me@here:~$ echo $?
1

me@here:~$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 3.1G 4.6M 3.1G 1% /run
/dev/mapper/vgubuntu-root 914G 184G 684G 22% /
tmpfs 16G 808M 15G 6% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup
/dev/nvme0n1p2 705M 218M 436M 34% /boot
/dev/nvme0n1p1 511M 7.8M 504M 2% /boot/efi
tmpfs 3.1G 192K 3.1G 1% /run/user/1000
me@here:~$ echo $?
0

me@here:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.10
Release: 20.10
Codename: groovy

me@here:~$ uname -a
Linux p100 5.8.0-32-generic #34-Ubuntu SMP Fri Nov 27 15:10:41 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux