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 1962350 - unprivileged user should be able to read-only to gencache.tdb instead of permission denied
Summary: unprivileged user should be able to read-only to gencache.tdb instead of perm...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: samba
Version: 7.6
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Andreas Schneider
QA Contact: sssd-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-19 19:37 UTC by Eugene Keck
Modified: 2024-10-01 18:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1831986
Environment:
Last Closed: 2021-07-07 09:48:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eugene Keck 2021-05-19 19:37:46 UTC
Description of problem:
unprivileged user should be able to read-only to gencache.tdb instead of permission denied

Version-Release number of selected component (if applicable):
4.10.16-13.el7_9 

How reproducible:
Always

Steps to Reproduce:
1. su - user
2. net ads status

Actual results:
Work

Expected results:
tdb(/var/lib/samba/lock/gencache.tdb): tdb_open_ex: could not open file /var/lib/samba/lock/gencache.tdb: Permission denied

Additional info:
This might be a regression of 

unprivileged user should be able to read-only to gencache.tdb instead of permission denied
 https://bugzilla.redhat.com/show_bug.cgi?id=1831986

# ls -lZ /var/lib/samba/lock/
-rw-r--r-- root root ?                                brlock.tdb
-rw-r--r-- root root ?                                gencache.tdb
-rw-r--r-- root root ?                                leases.tdb
-rw-r--r-- root root ?                                locking.tdb
drwxr-xr-x root root ?                                msg.lock
-rw-rw---- root root ?                                names.tdb
-rw-r--r-- root root ?                                printer_list.tdb
-rw------- root root ?                                smbXsrv_client_global.tdb
-rw------- root root ?                                smbXsrv_open_global.tdb
-rw------- root root ?                                smbXsrv_session_global.tdb
-rw------- root root ?                                smbXsrv_tcon_global.tdb
-rw------- root root ?                                smbXsrv_version_global.tdb
-rw-r--r-- root root ?                                smbd_cleanupd.tdb

# rpm -V samba-common
S.5....T.  c /etc/samba/smb.conf

# rpm -V filesystem
#

Comment 3 Andreas Schneider 2021-07-07 09:48:43 UTC
This is a RFE. This is an improvement as there is not bug it if can't access the gencache.

This has been addressed in RHEL8, see https://bugzilla.redhat.com/show_bug.cgi?id=1859277


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