Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Proper permissions for /var/log/portage/elog/summary.log?
Date: Sun, 24 Jun 2012 22:50:57
Message-Id: 4FE79941.7010700@gmail.com
In Reply to: Re: [gentoo-user] Proper permissions for /var/log/portage/elog/summary.log? by Mick
1 Mick wrote:
2 > On Sunday 24 Jun 2012 19:27:36 Dale wrote:
3 >> Jarry wrote:
4 >>> Hi,
5 >>> I have just checked my machines and I found I have basically
6 >>> two groups of settings ("ls -al" in /var/log/portage/elog/):
7 >>>
8 >>> A)
9 >>> drwxrws--- 2 portage root 4096 Jun 24 03:10 .
10 >>> drwxr-xr-x 3 root root 4096 Apr 7 2009 ..
11 >>> -rw-rw-r-- 1 portage root 57760 Jun 22 15:11 summary.log
12 >>>
13 >>> B)
14 >>> drwxrwsr-x 2 portage portage 4096 Jun 24 13:30 .
15 >>> drwxrws--- 3 portage portage 4096 Nov 3 2011 ..
16 >>> -rw-rw-r-- 1 portage portage 1132 Jun 22 17:28 summary.log
17 >>>
18 >>> Not only "summary.log", but also /var/log/portage/ and
19 >>> /var/log/portage/elog/ have quite different permissions.
20 >>> I'm sure I never changed it manually, the only difference
21 >>> is that "A" group has been installed 3 yers ago, while "B"
22 >>> just recently (but both regulary updated).
23 >>>
24 >>> So is the "B-version" correct one?
25 >>>
26 >>> Jarry
27 >> This is my thinking on why it may be different for different folks.
28 >> This first tho. I run emerge as root. I have not added my regular user
29 >> to the portage group. I have no memory of messing with the permissions
30 >> either.
31 >>
32 >> I think that if you use a regular user to emerge some things, it gets
33 >> set to portage:portage or some mix of portage:root. If you always run
34 >> emerge as root, then you get root:root. It may be that this is only set
35 >> once or that it could be modified if you run as root then later on run
36 >> as a user.
37 >>
38 >> For the record, mine is set to root:root. As mentioned above, I ALWAYS
39 >> run emerge as root.
40 >>
41 >> Any one have thoughts on this?
42 >>
43 >> Dale
44 >>
45 >> :-) :-)
46 > I always run emerge as root.
47 >
48 > elog is owned by portage:root, summary.log within it as portage:root, other
49 > log files within /var/log/portage are owned by portage:portage.
50
51 So those that allow users to run would have the same permissions as
52 everyone else. Now I wonder why they vary from system to system then.
53 It seems to me, they should be the same for everyone. Just seems odd.
54
55 Dale
56
57 :-) :-)
58
59 --
60 I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
61
62 Miss the compile output? Hint:
63 EMERGE_DEFAULT_OPTS="--quiet-build=n"

Replies

Subject Author
Re: [gentoo-user] Proper permissions for /var/log/portage/elog/summary.log? Bryan Gardiner <bog@××××××.net>