Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: RFC: are you able to use "elogv" as a non-root user?
Date: Sun, 19 Feb 2012 03:10:12
Message-Id: jhpp2v$tc1$1@dough.gmane.org
In Reply to: Re: [gentoo-user] RFC: are you able to use "elogv" as a non-root user? by Dale
1 On 19/02/12 04:00, Dale wrote:
2 > Alan McKinnon wrote:
3 >> On Sat, 18 Feb 2012 22:28:11 +0200
4 >> Nikos Chantziaras<realnc@×××××.de> wrote:
5 >>
6 >>> This isn't an important issue, but it still bugs me a bit (curiosity
7 >>> killed the cat.) Some while ago (no idea when exactly, could be 6
8 >>> months ago or a year ago), I stopped being able to use "elogv" as a
9 >>> regular user. Something had changed the permissions of the
10 >>> "/var/log/portage" and "/var/log/portage/elog" directories. The
11 >>> only thing I know for sure, is that it wasn't me who changed them
12 >>> (and I'm the only user of that machine.)
13 >>>
14 >>> See the related bug report:
15 >>>
16 >>> https://bugs.gentoo.org/show_bug.cgi?id=404413
17 >>>
18 >>> So I have a question: did anyone else here notice this as well? What
19 >>> is the output of:
20 >>>
21 >>> ls -ld /var/log/portage /var/log/portage/elog
22 >>>
23 >>> on your system?
24 >>>
25 >>>
26 >>
27 >> I use elogviewer in preference to elogv, no issues here. My perms:
28 >>
29 >> # ls -ld /var/log/portage /var/log/portage/elog
30 >> drwxrws--- 3 portage portage 315392 Feb 18 12:19 /var/log/portage
31 >> drwxrwsr-x 2 portage portage 24576 Feb 18 12:19 /var/log/portage/elog
32 >>
33 >>
34 >
35 >
36 > I changed mine to run as root a long time ago. I could view the logs
37 > but I could not delete the old ones when I was done. That would give a
38 > permissions error. I just tried it again just now as a user and it
39 > spits out this when I try to clear the logs:
40 >
41 > OSError: [Errno 13] Permission denied:<some file name here>
42 >
43 > I would think that is normal. Viewing logs can be done by everyone but
44 > clearing requires more permissions.
45
46 No, it's not normal. If your user is in the portage group, then you
47 should be able to delete portage logs. So it seems your system is
48 suffering from the same thing.
49
50 The fix for this is in the bug report I linked to, btw.

Replies

Subject Author
Re: [gentoo-user] Re: RFC: are you able to use "elogv" as a non-root user? Dale <rdalek1967@×××××.com>