Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: [gentoo-user] User eix-sync permissions problem
Date: Mon, 10 Feb 2014 16:06:22
Message-Id: 197AEEF5-2BA3-43BF-944E-A5C4230D4CFB@stellar.eclipse.co.uk
1 Hello all,
2
3 I'm a little bit rusty, but my recollection is that I should be able to perform `eix-sync` (or `emerge --sync`?) as a user to synchronise my local copy of the portage tree with Gentoo's master portage tree.
4
5 User is in the portage group:
6
7 $ whoami
8 stroller
9 $ groups stroller
10 wheel audio video portage cron users
11 $
12
13 Yet I get these permissons denied errors:
14
15 $ eix-sync
16 * Running emerge --sync
17 >>> Synchronization of repository 'gentoo' located in '/usr/portage'...
18 >>> Starting rsync with rsync://91.186.30.235/gentoo-portage...
19 >>> Checking server timestamp …
20
21 receiving incremental file list
22 rsync: delete_file: unlink(app-accessibility/caribou/caribou-0.4.12.ebuild) failed: Permission denied (13)
23 rsync: delete_file: unlink(app-accessibility/emacspeak/files/emacspeak-33.0-respect-ldflags.patch) failed: Permission denied (13)
24 rsync: delete_file: unlink(app-accessibility/emacspeak/files/emacspeak-33.0-greader-garbage.patch) failed: Permission denied (13)
25
26 (full output attached)
27
28
29 Googling the problem I see a bunch of Gentoo Forums posts talking about changing at random the permissions of /var/tmp/ or /var/tmp/portage/, but no rationale is given, and I don't think this is the cause:
30
31 $ emerge --info | grep -i tmpdir
32 PORTAGE_TMPDIR="/var/tmp"
33 $ ls -ld /var/tmp/
34 drwxrwxrwt 3 root root 4096 Feb 5 13:47 /var/tmp/
35 $ ls -ld /var/tmp/portage/
36 drwxrwxr-x 5 portage portage 4096 Feb 5 12:32 /var/tmp/portage/
37 $
38
39
40 More likely seems to be the permissions of /usr/portage/:
41
42 $ ls -ld /usr/portage/
43 drwxr-xr-x 167 portage portage 4096 Jan 5 02:31 /usr/portage/
44 $ ls -ld /usr/portage/app-accessibility/caribou/caribou*.ebuild
45 -rw-r--r-- 1 portage portage 2432 Aug 25 23:11 /usr/portage/app-accessibility/caribou/caribou-0.4.12.ebuild
46 -rw-r--r-- 1 portage portage 2431 Dec 8 18:01 /usr/portage/app-accessibility/caribou/caribou-0.4.13.ebuild
47 $
48
49 This would seem to allow portage itself to synchronise the Portage tree, but not members of the portage group.
50
51
52 I am able to run `emerge --sync` as root, but it doesn't solve the solve the problem - next time I run `eix-sync` as user, I'm permissions denied, again.
53
54 Shouldn't a sync reset the permissions of the portage tree to be correct?
55
56
57 `emerge --info | grep -i feature` shows that FEATURES="userfetch userpriv usersandbox usersync" (and some others - see attached) are set.
58
59 I can reproduce this on a second AMD64 machine, both are running portage-2.2.7.
60
61 Thanks in advance for any help, advice or suggestions you can offer,
62
63 Stroller.

Attachments

File name MIME type
emerge_sync_perms_prob.txt text/plain
emerge_info.txt text/plain

Replies

Subject Author
Re: [gentoo-user] User eix-sync permissions problem Gleb Klochkov <glebiuskv@×××××.com>
Re: [gentoo-user] User eix-sync permissions problem Alan McKinnon <alan.mckinnon@×××××.com>
Re: [gentoo-user] User eix-sync permissions problem Kerin Millar <kerframil@×××××××××××.uk>