1 |
On 24-Jun-12 20:27, Dale wrote: |
2 |
>> I have just checked my machines and I found I have basically |
3 |
>> two groups of settings ("ls -al" in /var/log/portage/elog/): |
4 |
>> |
5 |
>> A) |
6 |
>> drwxrws--- 2 portage root 4096 Jun 24 03:10 . |
7 |
>> drwxr-xr-x 3 root root 4096 Apr 7 2009 .. |
8 |
>> -rw-rw-r-- 1 portage root 57760 Jun 22 15:11 summary.log |
9 |
>> |
10 |
>> B) |
11 |
>> drwxrwsr-x 2 portage portage 4096 Jun 24 13:30 . |
12 |
>> drwxrws--- 3 portage portage 4096 Nov 3 2011 .. |
13 |
>> -rw-rw-r-- 1 portage portage 1132 Jun 22 17:28 summary.log |
14 |
>> |
15 |
>> So is the "B-version" correct one? |
16 |
> |
17 |
> This is my thinking on why it may be different for different folks. |
18 |
> This first tho. I run emerge as root. I have not added my regular user |
19 |
> to the portage group. I have no memory of messing with the permissions |
20 |
> either. |
21 |
> |
22 |
> I think that if you use a regular user to emerge some things, it gets |
23 |
> set to portage:portage or some mix of portage:root. If you always run |
24 |
> emerge as root, then you get root:root. It may be that this is only set |
25 |
> once or that it could be modified if you run as root then later on run |
26 |
> as a user. |
27 |
|
28 |
I always run emerge as root. But back to my question: on all |
29 |
boxes with "A" access rights I can not rotage portage logs. |
30 |
All I get is mail from my cron saying: "error setting owner |
31 |
of /var/log/portage/elog/summary.log-20110803.gz: Operation |
32 |
not permitted..." |
33 |
|
34 |
On the other side, on boxes with "B" access rights (see above) |
35 |
logs are rotated without problem. Logrotate-script is the same: |
36 |
|
37 |
/var/log/portage/elog/summary.log { |
38 |
su portage portage |
39 |
missingok |
40 |
nocreate |
41 |
delaycompress } |
42 |
|
43 |
So I suppose either there is something wrong with "A", or logrotate |
44 |
script must be modified (although it works for "B")... |
45 |
|
46 |
Jarry |
47 |
|
48 |
-- |
49 |
_______________________________________________________________ |
50 |
This mailbox accepts e-mails only from selected mailing-lists! |
51 |
Everything else is considered to be spam and therefore deleted. |