Red Hat Bugzilla – Bug 1432319
[RFE] Configuration option so that normal users can use the root yum cache in "/var/cache/yum"
Last modified: 2018-04-10 11:07:11 EDT
Description of problem: The issue is where my /var/tmp partition gets filled up by users running yum search/list/whatever. Every user running yum get his own complete cache instead of using the system wide cache.It seems there is no configuration fix for this problem. This behavior leads to yum being unusable if /var/tmp is full. So enhancement request is to have a configuration option so that all users use the root yum cache in /var/cache/yum As a workaround is to discourage users from running yum with users other than root. Version-Release number of selected component (if applicable): Red Hat Enterprise Linux Server release 7.3 (Maipo) # rpm -qa|grep yum yum-plugin-priorities-1.1.31-40.el7.noarch yum-plugin-versionlock-1.1.31-40.el7.noarch yum-utils-1.1.31-40.el7.noarch yum-3.4.3-150.el7.noarch yum-metadata-parser-1.1.4-10.el7.x86_64 yum-rhn-plugin-2.0.1-6.el7.noarch Actual results: yum being unusable if /var/tmp is full. Expected results: Shouldn't be full Additional info: Have a configuration option so that all users use the root yum cache in /var/cache/yum
If we introduce an option to enforce the usage of root's cache for regular users, would regular users be able to force the metadata download (again) e.g. via --setopt ? IMHO it would be reasonable.
(In reply to Karel Srot from comment #6) > If we introduce an option to enforce the usage of root's cache for regular > users, > would regular users be able to force the metadata download (again) e.g. via > --setopt ? IMHO it would be reasonable. Good point, I think that's a good reason to make this a config option rather than a cmdline option so that users can override it with --setopt if they wish. The default will probably stay the same (i.e. preload enabled), so they will be able to enable it again.
Hi, I have a question about the proposed possibility to allow a user to force metadata download. Do you want a user to be able to refresh the "global" cache in /var/cache/yum? That shouldn't be possible in yums current form because its not setuid and the cache is not writeable for other users than root. Or do you simply want to enable them to override the "use root cache" option and fall back to the current behaviour of creating a user owned cache? Greetings Klaas
(In reply to Klaas Demter from comment #8) > Hi, > I have a question about the proposed possibility to allow a user to force > metadata download. Do you want a user to be able to refresh the "global" > cache in /var/cache/yum? That shouldn't be possible in yums current form > because its not setuid and the cache is not writeable for other users than > root. Yup, that's correct, see below. > > Or do you simply want to enable them to override the "use root cache" option > and fall back to the current behaviour of creating a user owned cache? > > Greetings > Klaas This. I imagine the semantics of the new option to be something like "don't preload anything, just use the root cache directly", of which the opposite (and the default) is "preload stuff from the root cache to the user cache". I'll have to think about it more deeply once I'm at it, though, but it probably will be done along these lines.
*** Bug 1500666 has been marked as a duplicate of this bug. ***
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, 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/RHBA-2018:0845