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

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xdg-desktop-portal in Ubuntu.
https://bugs.launchpad.net/bugs/1905623

Title:
  df: /run/user/1000/doc: Operation not permitted

Status in xdg-desktop-portal package in Ubuntu:
  Triaged

Bug description:
  /run/user/1000/doc is a fuse.portal mount point, but statfs() return
  EPERM, hence df produces an error message. Maybe statfs() is not
  implemented, but it would be good to quieten this down (df even does
  not allow me to ignore it, probably because it looks at statfs to find
  out fs type, so my fs type ignoring doesn't work).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-portal/+bug/1905623/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to