Corbin wrote: >> You only gave a partial answer. What user are you running as when you >> get the error, and what user/group owns those dirs? >> >> Unless you are running as the user who owns /usr/portage or as root, you >> will clearly get a permission denied. (and that assumes there are no >> ACLs involved.) > Normally I do the updates as 'root'. ( su -l ) > Root is/was set as the 'owner / group' on all three directories. > > Corbin > >
I run emerge as root but the proper permissions, or at least was several years ago, is portage:portage and rwx access for both. This is my settings. root@fireball / # ls -al /var/cache/portage total 160 drwxr-xr-x 5 portage portage 4096 Dec 20 2012 . drwxr-xr-x 13 root root 4096 Jan 11 05:13 .. drwxrwxr-x 3 portage portage 143360 Jan 6 01:33 distfiles drwxrwxr-x 109 portage portage 4096 Jan 6 01:38 packages drwxrwxr-x 175 portage portage 4096 Jan 5 18:41 tree root@fireball / # I moved the portage directory to /var/cache but no matter where it is, the permissions should be the same. Those settings have worked here for a long time so if you duplicate that, it should work fine for you as well since you also run emerge as root. If I recall correctly, if you add your user to the portage group, you can run a lot of commands as user. I think you have to be root to actually install something tho. Hope that helps. Dale :-) :-)