debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #06057
[Bug 2115274] Re: ls -l returns permission denied errors on NFS share to /home
Thanks for the extra due-diligence, Dave & Vladimir!
Build & autopkgtest now PASS in Dave's PPA (incl. riscv64).
The backport itself LGTM.
Sponsoring for Questing:
$ dput ubuntu ../coreutils_9.5-1ubuntu3_source.changes
Uploading coreutils using ftp to ubuntu (host: upload.ubuntu.com; directory: /ubuntu)
running updatemaintainer: Stop if ubuntu changes are without ubuntu maintainer.
running releasemismatch: Warn about mismatching suffixesg e.g. focal with a XX.YY not being 20.04
running checksum: verify checksums before uploading
running required-fields: check whether a field is present and non-empty in the changes file
running badauthor: Stop if uploading with root@ or ubuntu@ email adresses.
running gitubuntu: Warn if uploading without git-ubuntu Vcs-* entries.
running ppaforppaonly: Stop uploads to the archive with or to ppa without ~ppa suffix.
running supported-distribution: check whether the target distribution is currently supported (using distro-info)
{'allowed': ['release', 'proposed', 'backports', 'security'], 'known': ['release', 'proposed', 'updates', 'backports', 'security']}
running nobug: Stop if uploading without any bug reference.
running placeholderbug: Stop if using common placeholder numbers as bug reference.
running gpg: check GnuPG signatures before the upload
running suite-mismatch: check the target distribution for common errors
running check-debs: makes sure the upload contains a binary package
Uploading coreutils_9.5-1ubuntu3.dsc
Uploading coreutils_9.5-1ubuntu3.debian.tar.xz
Uploading coreutils_9.5-1ubuntu3_source.buildinfo
Uploading coreutils_9.5-1ubuntu3_source.changes
** Changed in: coreutils (Ubuntu Questing)
Status: Confirmed => In Progress
** Changed in: coreutils (Ubuntu Questing)
Status: In Progress => Fix Committed
--
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:
Confirmed
Status in coreutils source package in Oracular:
Won't Fix
Status in coreutils source package in Plucky:
In Progress
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