https://bugzilla.novell.com/show_bug.cgi?id=728577 https://bugzilla.novell.com/show_bug.cgi?id=728577#c0 Summary: 'sudo zypper ref' makes repositories inaccessible for non-root users due to wrong file permissions Classification: openSUSE Product: openSUSE 12.1 Version: RC 2 Platform: x86 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: harnold@gmx.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 When updating repository metadata using 'sudo zypper ref' (as a non-root user), files and directories created or updated under /var/cache/zypp/ become non-readable for non-root users. As a consequence, subsequent actions that do not require root permissions, such as 'zypper se', fail due to inaccessible metadata. This does not happen when repository metadata is updated from a root shell. openSUSE 12.1 RC2: - libzypp-10.3.1-2.2.i586 - zypper-1.6.16-5.2.3.i586 Reproducible: Always Steps to Reproduce: 1. As a non-root user, force an update of repository metadata: 'sudo zypper ref --force <repo>'. 2. Search for some package: 'zypper se <something>' Actual Results: The repository refreshed in step 1. becomes inaccessible for non-root users; on accessing it, zypper prints the following error message: Repository '<repo>' is out-of-date. You can run 'zypper refresh' as root to update it. Loading repository data... Retrieving repository '<repo>' data... Retrieving repository '<repo>' metadata [error] Repository '<repo>' is invalid. [|] Valid metadata not found at specified URL(s) Please check if the URIs defined for this repository are pointing to a valid repository. Problem loading data from '<repo>' Resolvables from '<repo>' not loaded because of error. Expected Results: Files under /var/cache/zypp/ should be readable for non-root users so that they can query the package db using zypper. By the way, the error message is not helpful because it wrong (the repository is not invalid) and unspecific. If the metadata files are inaccessible due to their permissions, the program should tell exactly this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.