Bug 1831986
Summary: | unprivileged user should be able to read-only to gencache.tdb instead of permission denied | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ding-Yi Chen <dchen> | |
Component: | samba | Assignee: | Andreas Schneider <asn> | |
Status: | CLOSED ERRATA | QA Contact: | sssd-qe <sssd-qe> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 7.8 | CC: | adzilsky, asn, dkarpele, gdeschner, iboukris, jarrpa, wrydberg | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | samba-4.10.15-5.el7 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1859277 1962350 (view as bug list) | Environment: | ||
Last Closed: | 2020-09-29 20:19:10 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1859277 |
Description
Ding-Yi Chen
2020-05-06 04:30:56 UTC
What is the exact issue you're having that you need access to gencache.tdb as a user? Hey Andreas, On samba-client-4.9.1 ( RHEL 7.7 ) net commands like net ads status, net ads search etc works fine as an normal user However on samba-client-4.10.4 ( RHEL 7.8 ) net commands has issues opening "gencache.tdb" as normal users _________________________________________________________________ tdb(/var/lib/samba/lock/gencache.tdb): tdb_open_ex: could not open file /var/lib/samba/lock/gencache.tdb: Permission denied Opening /var/lib/samba/lock/gencache.tdb failed: Permission denied Opening cache file at /var/lib/samba/lock/gencache.tdb tdb(/var/lib/samba/lock/gencache.tdb): tdb_open_ex: could not open file /var/lib/samba/lock/gencache.tdb: Permission denied Opening /var/lib/samba/lock/gencache.tdb failed: Permission denied Opening cache file at /var/lib/samba/lock/gencache.tdb tdb(/var/lib/samba/lock/gencache.tdb): tdb_open_ex: could not open file /var/lib/samba/lock/gencache.tdb: Permission denied Opening /var/lib/samba/lock/gencache.tdb failed: Permission denied Opening cache file at /var/lib/samba/lock/gencache.tdb tdb(/var/lib/samba/lock/gencache.tdb): tdb_open_ex: could not open file /var/lib/samba/lock/gencache.tdb: Permission denied Opening /var/lib/samba/lock/gencache.tdb failed: Permission denied _________________________________________________________________ "With the previous Samba version I believe it was able to lookup the AD sitename from gencache.tdb so that it knows to send the query to the servers that are appropriate for the site. With the latest version it fails getting the site name so it wastes a large amount of time querying DC's all over the world, many of which are unreachable or unresolvable." Regards, Billy Red Hat, Inc. From CU: _________________________________________________________________ Ok, for the time being we can work around by adding the "password server" option to smb.conf and keep it maintained with a cron job. We have to omit the "*" from the line though, because that causes the net command to lookup all DC's in the company. But with just the DC's from the local site listed the net command returns output like normal: [rigs@hbl1099 ~]# time net ads search samaccountname=worksys cn Got 1 replies cn: worksys real 0m0.102s user 0m0.047s sys 0m0.015s _________________________________________________________________ I've found a solution for the issue which is currently reviewed upstream. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: samba security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:3981 |