debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #06263
[Bug 2115274] Re: ls -l returns permission denied errors on NFS share to /home
Regressions seem to be caused by issues with the builders and are
unrelated to the patch. Below is sample of the errors:
```
1418s Creating nova instance adt-noble-arm64-dgit-20250827-182406-juju-7f2275-prod-proposed-migration-environment-20-10e4c119-0f54-49e5-9707-91cf3c87d58f from image adt/ubuntu-noble-arm64-server-20250807.img (UUID 0dd19007-bb3f-463e-b324-c6c52a81375f)...
3116s <VirtSubproc>: failure: timed out waiting for testbed to complete boot
3116s autopkgtest [21:13:10]: ERROR: testbed failure: eof from the virtualisation server
```
```
2799s autopkgtest-virt-ssh [01:09:40]: ------- nova console-log c2cb0ebd-b963-4575-b4d2-304e584eab8c (adt-noble-amd64-linux-hwe-6.11-20250827-221639-juju-7f2275-prod-proposed-migration-environment-20-28096176-eeb8-457e-8fb4-562a170547cb) ------
2799s ERROR (CommandError): No server with a name or ID of 'c2cb0ebd-b963-4575-b4d2-304e584eab8c' exists.
2799s ---------------------------------------------------
2799s ------- nova show c2cb0ebd-b963-4575-b4d2-304e584eab8c (adt-noble-amd64-linux-hwe-6.11-20250827-221639-juju-7f2275-prod-proposed-migration-environment-20-28096176-eeb8-457e-8fb4-562a170547cb) ------
2799s ERROR (CommandError): No server with a name or ID of 'c2cb0ebd-b963-4575-b4d2-304e584eab8c' exists.
2799s ---------------------------------------------------
2799s
3342s autopkgtest [01:18:43]: ERROR: testbed failure: testbed auxverb failed with exit code 255
```
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2115274
Title:
ls -l returns permission denied errors on NFS share to /home
Status in coreutils package in Ubuntu:
Fix Committed
Status in coreutils source package in Noble:
Fix Committed
Status in coreutils source package in Oracular:
Won't Fix
Status in coreutils source package in Plucky:
Fix Committed
Status in coreutils source package in Questing:
Fix Committed
Bug description:
Thank you @joalif for troubleshooting the issue and finding the
required commit.
[impact]
When hosting an NFS share that is sharing the home directory of users
(e.g. /home), doing an "ls -l" on a client that has access to this
share will return permission denied errors for each user before
showing the output of the command. Below is an example output of the
current version of ls:
ghadi@nfs-client:/mnt/nfs_clientshare$ ls -l
ls: test_user1: Permission denied
ls: test_user2: Permission denied
total 12
drwxr-x--- 5 ghadi ghadi 4096 May 7 18:17 ghadi
drwxr-x--- 2 1001 1001 4096 Jun 17 15:25 test_user1
drwxr-x--- 2 1002 1002 4096 Jun 17 15:27 test_user2
There has been a patch upstream to resolve this issue that I have
already backported after some modifications to fit the current version
of coreutils being used:
https://cgit.git.savannah.gnu.org/cgit/coreutils.git/commit/?id=b58e321c8d5dd841f4170312692035a66b5ac149
[Test Plan]
1. On the NFS server create a few users and make sure they have a home directory:
$ sudo useradd -m test_user1
$ sudo useradd -m test_user2
2. Then setup the NFS server and make sure to share /home
3. On the client machine, mount the NFS share and run "ls -l"
4. With the current version of coreutils you will see the following
output:
$ ghadi@nfs-client:/mnt/nfs_clientshare$ ls -l
ls: test_user1: Permission denied
ls: test_user2: Permission denied
total 12
drwxr-x--- 5 ghadi ghadi 4096 May 7 18:17 ghadi
drwxr-x--- 2 1001 1001 4096 Jun 17 15:25 test_user1
drwxr-x--- 2 1002 1002 4096 Jun 17 15:27 test_user2
However in the patched version you will see the following:
$ ghadi@nfs-client:/mnt/nfs_clientshare$ ls -l
total 12
drwxr-x--- 5 ghadi ghadi 4096 May 7 18:17 ghadi
drwxr-x---? 2 1001 1001 4096 Jun 17 15:25 test_user1
drwxr-x---? 2 1002 1002 4096 Jun 17 15:27 test_user2
[Where problems could occur]
* The patch adds "?" symbols when it cannot get the metadata which could cause issues with some scripts
* Some errors that should be displayed might stop being displayed specially if they are related to reading file attributes (operations that involve the listxattr syscall)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2115274/+subscriptions
References