Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.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:13:38
Message-Id: 201206242311.59825.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Proper permissions for /var/log/portage/elog/summary.log? by Dale
1 On Sunday 24 Jun 2012 19:27:36 Dale wrote:
2 > Jarry wrote:
3 > > Hi,
4 > > I have just checked my machines and I found I have basically
5 > > two groups of settings ("ls -al" in /var/log/portage/elog/):
6 > >
7 > > A)
8 > > drwxrws--- 2 portage root 4096 Jun 24 03:10 .
9 > > drwxr-xr-x 3 root root 4096 Apr 7 2009 ..
10 > > -rw-rw-r-- 1 portage root 57760 Jun 22 15:11 summary.log
11 > >
12 > > B)
13 > > drwxrwsr-x 2 portage portage 4096 Jun 24 13:30 .
14 > > drwxrws--- 3 portage portage 4096 Nov 3 2011 ..
15 > > -rw-rw-r-- 1 portage portage 1132 Jun 22 17:28 summary.log
16 > >
17 > > Not only "summary.log", but also /var/log/portage/ and
18 > > /var/log/portage/elog/ have quite different permissions.
19 > > I'm sure I never changed it manually, the only difference
20 > > is that "A" group has been installed 3 yers ago, while "B"
21 > > just recently (but both regulary updated).
22 > >
23 > > So is the "B-version" correct one?
24 > >
25 > > Jarry
26 >
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
47 I always run emerge as root.
48
49 elog is owned by portage:root, summary.log within it as portage:root, other
50 log files within /var/log/portage are owned by portage:portage.
51 --
52 Regards,
53 Mick

Attachments

File name MIME type
smime.p7s application/pkcs7-signature

Replies

Subject Author
Re: [gentoo-user] Proper permissions for /var/log/portage/elog/summary.log? Dale <rdalek1967@×××××.com>
Re: [gentoo-user] Proper permissions for /var/log/portage/elog/summary.log? Tanstaafl <tanstaafl@×××××××××××.org>