Summary: | Portage warning message when running as unprivileged user - Directory initialization failed: '/var/lib/portage' | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Francesco Turco <fturco> |
Component: | Core - Interface (emerge) | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | info.txt |
Description
Francesco Turco
2019-05-25 20:07:34 UTC
Created attachment 577798 [details]
info.txt
emerge --info -v
I looks like your user has write access to the root directory /, so you're triggering unprivileged mode (bug 433453): > # If the current user is not root, but has write access to the > # EROOT directory (not due to the 0002 bit), then use "unprivileged" > # mode which sets secpass = 2 and uses the UID and GID of the EROOT > # directory to generate default PORTAGE_INST_GID, PORTAGE_INST_UID, > # PORTAGE_USERNAME, and PORTAGE_GRPNAME settings. > def _unprivileged_mode(eroot, eroot_st): > return os.getuid() != 0 and os.access(eroot, os.W_OK) and \ > not eroot_st.st_mode & 0o0002 You're right. My root directory (/) had fturco:fturco user and group permissions. I fixed that with: # chown root:root / Thank you! I feel I can now close this bug. |