Public bug reported:

At https://askubuntu.com/q/1566581/1004020 , with ReadonlyRoot enabled,
I tried

# chmod -R ugo+rX /lib/python3/dist-packages/
chmod: cannot access 
'/lib/python3/dist-packages/Onboard/__pycache__/OnboardGtk.pypy311.pyc': 
Permission denied
# chmod -R ugo+rX 
/lib/python3/dist-packages/Onboard/__pycache__/OnboardGtk.pypy311.pyc
# # See there's no error

It's similar for other subdirectories. Whereas with GNU coreutils:

root@daniel-desktop3:/lib/python3/dist-packages# chmod -R ugo+rX 
/lib/python3/dist-packages/zstandard
chmod: cannot access 
'/lib/python3/dist-packages/zstandard/__pycache__/__init__.pypy311.pyc': 
Permission denied
root@daniel-desktop3:/lib/python3/dist-packages# gnuchmod -R ugo+rX 
/lib/python3/dist-packages/zstandard
gnuchmod: changing permissions of '/lib/python3/dist-packages/zstandard': 
Read-only file system
gnuchmod: changing permissions of 
'/lib/python3/dist-packages/zstandard/py.typed': Read-only file system
gnuchmod: changing permissions of 
'/lib/python3/dist-packages/zstandard/_cffi.cpython-314-x86_64-linux-gnu.so': 
Read-only file system
gnuchmod: changing permissions of 
'/lib/python3/dist-packages/zstandard/backend_cffi.py': Read-only file system
gnuchmod: changing permissions of 
'/lib/python3/dist-packages/zstandard/__init__.py': Read-only file system
gnuchmod: changing permissions of 
'/lib/python3/dist-packages/zstandard/backend_c.cpython-314-x86_64-linux-gnu.so':
 Read-only file system
gnuchmod: changing permissions of 
'/lib/python3/dist-packages/zstandard/__init__.pyi': Read-only file system
gnuchmod: changing permissions of 
'/lib/python3/dist-packages/zstandard/__pycache__': Read-only file system
gnuchmod: changing permissions of 
'/lib/python3/dist-packages/zstandard/__pycache__/backend_cffi.cpython-314.pyc':
 Read-only file system
gnuchmod: changing permissions of 
'/lib/python3/dist-packages/zstandard/__pycache__/__init__.cpython-314.pyc': 
Read-only file system
gnuchmod: changing permissions of 
'/lib/python3/dist-packages/zstandard/__pycache__/backend_cffi.pypy311.pyc': 
Read-only file system
gnuchmod: changing permissions of 
'/lib/python3/dist-packages/zstandard/__pycache__/__init__.pypy311.pyc': 
Read-only file system
root@daniel-desktop3:/lib/python3/dist-packages# gnuchmod -R ugo+rX 
/lib/python3/dist-packages/zstandard/py.typed
gnuchmod: changing permissions of 
'/lib/python3/dist-packages/zstandard/py.typed': Read-only file system

The error message should be "Read-only file system" not "Permission
denied".

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: rust-coreutils 0.8.0-0ubuntu3
ProcVersionSignature: Ubuntu 7.0.0-15.15-generic 7.0.0
Uname: Linux 7.0.0-15-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Fri May  8 12:25:55 2026
InstallationDate: Installed on 2022-11-05 (1281 days ago)
InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
SourcePackage: rust-coreutils
UpgradeStatus: Upgraded to resolute on 2026-04-24 (15 days ago)

** Affects: rust-coreutils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute wayland-session

** Summary changed:

- chmod -R: cannot access ...: Permission denied
+ chmod -R: cannot access ...: Permission denied when gnuchmod given Read-only 
file system

** Summary changed:

- chmod -R: cannot access ...: Permission denied when gnuchmod given Read-only 
file system
+ chmod -R: cannot access ...: Permission denied when gnuchmod gives Read-only 
file system

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2152057

Title:
  chmod -R: cannot access ...: Permission denied when gnuchmod gives
  Read-only file system

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2152057/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to