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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1905623

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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to