RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1804782 - Unprivileged podman using: cannot lock /etc/passwd; try again later.
Summary: Unprivileged podman using: cannot lock /etc/passwd; try again later.
Keywords:
Status: CLOSED DUPLICATE of bug 1802907
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: podman
Version: 8.1
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Tom Sweeney
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-19 15:55 UTC by Konstantin Ryadov
Modified: 2020-02-19 16:48 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-19 16:48:49 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Konstantin Ryadov 2020-02-19 15:55:52 UTC
Description of problem:
Unable to operate with /etc/passwd, /etc/group and others from podman centos7/8 container when running under unprivileged user.

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux release 8.1 (Ootpa)

How reproducible:
Install and update RHEL 8.1 to the latest updates with "dnf update".

Steps to Reproduce:
1. "dnf update"
2. "dnf install podman"
3. "podman -v" => podman version 1.6.4
4. "adduser test" => login as test
5. "testpodman run -it --rm centos:8 /bin/bash"
6. "[root@2135a6a15a0f /]# adduser user" =>
adduser: /etc/passwd.14: lock file already used
adduser: cannot lock /etc/passwd; try again later.

Actual results:
adduser: /etc/passwd.14: lock file already used
adduser: cannot lock /etc/passwd; try again later.

Expected results:
No errors.

Additional info:
Problem is not reproduced on clean RHEL 8.1 installation without updates and under "root" user.

Comment 1 Matthew Heon 2020-02-19 16:46:41 UTC
I think this may be a known (and already fixed) fuse-overlayfs issue; tagging Giuseppe to make sure

Comment 2 Giuseppe Scrivano 2020-02-19 16:48:49 UTC
it is already tracked here: https://bugzilla.redhat.com/show_bug.cgi?id=1802907

*** This bug has been marked as a duplicate of bug 1802907 ***


Note You need to log in before you can comment on or make changes to this bug.