public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] RFC: are you able to use "elogv" as a non-root user?
@ 2012-02-18 20:28 Nikos Chantziaras
  2012-02-18 20:37 ` Alan McKinnon
  2012-02-20 16:54 ` [gentoo-user] " Todd Goodman
  0 siblings, 2 replies; 6+ messages in thread
From: Nikos Chantziaras @ 2012-02-18 20:28 UTC (permalink / raw
  To: gentoo-user

This isn't an important issue, but it still bugs me a bit (curiosity 
killed the cat.)  Some while ago (no idea when exactly, could be 6 
months ago or a year ago), I stopped being able to use "elogv" as a 
regular user.  Something had changed the permissions of the 
"/var/log/portage" and  "/var/log/portage/elog" directories.  The only 
thing I know for sure, is that it wasn't me who changed them (and I'm 
the only user of that machine.)

See the related bug report:

   https://bugs.gentoo.org/show_bug.cgi?id=404413

So I have a question: did anyone else here notice this as well?  What is 
the output of:

   ls -ld /var/log/portage /var/log/portage/elog

on your system?




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] RFC: are you able to use "elogv" as a non-root user?
  2012-02-18 20:28 [gentoo-user] RFC: are you able to use "elogv" as a non-root user? Nikos Chantziaras
@ 2012-02-18 20:37 ` Alan McKinnon
  2012-02-19  2:00   ` Dale
  2012-02-20 16:54 ` [gentoo-user] " Todd Goodman
  1 sibling, 1 reply; 6+ messages in thread
From: Alan McKinnon @ 2012-02-18 20:37 UTC (permalink / raw
  To: gentoo-user

On Sat, 18 Feb 2012 22:28:11 +0200
Nikos Chantziaras <realnc@arcor.de> wrote:

> This isn't an important issue, but it still bugs me a bit (curiosity 
> killed the cat.)  Some while ago (no idea when exactly, could be 6 
> months ago or a year ago), I stopped being able to use "elogv" as a 
> regular user.  Something had changed the permissions of the 
> "/var/log/portage" and  "/var/log/portage/elog" directories.  The
> only thing I know for sure, is that it wasn't me who changed them
> (and I'm the only user of that machine.)
> 
> See the related bug report:
> 
>    https://bugs.gentoo.org/show_bug.cgi?id=404413
> 
> So I have a question: did anyone else here notice this as well?  What
> is the output of:
> 
>    ls -ld /var/log/portage /var/log/portage/elog
> 
> on your system?
> 
> 

I use elogviewer in preference to elogv, no issues here. My perms:

# ls -ld /var/log/portage /var/log/portage/elog
drwxrws--- 3 portage portage 315392 Feb 18 12:19 /var/log/portage
drwxrwsr-x 2 portage portage  24576 Feb 18 12:19 /var/log/portage/elog


-- 
Alan McKinnnon
alan.mckinnon@gmail.com




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] RFC: are you able to use "elogv" as a non-root user?
  2012-02-18 20:37 ` Alan McKinnon
@ 2012-02-19  2:00   ` Dale
  2012-02-19  3:08     ` [gentoo-user] " Nikos Chantziaras
  0 siblings, 1 reply; 6+ messages in thread
From: Dale @ 2012-02-19  2:00 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon wrote:
> On Sat, 18 Feb 2012 22:28:11 +0200
> Nikos Chantziaras <realnc@arcor.de> wrote:
> 
>> This isn't an important issue, but it still bugs me a bit (curiosity 
>> killed the cat.)  Some while ago (no idea when exactly, could be 6 
>> months ago or a year ago), I stopped being able to use "elogv" as a 
>> regular user.  Something had changed the permissions of the 
>> "/var/log/portage" and  "/var/log/portage/elog" directories.  The
>> only thing I know for sure, is that it wasn't me who changed them
>> (and I'm the only user of that machine.)
>>
>> See the related bug report:
>>
>>    https://bugs.gentoo.org/show_bug.cgi?id=404413
>>
>> So I have a question: did anyone else here notice this as well?  What
>> is the output of:
>>
>>    ls -ld /var/log/portage /var/log/portage/elog
>>
>> on your system?
>>
>>
> 
> I use elogviewer in preference to elogv, no issues here. My perms:
> 
> # ls -ld /var/log/portage /var/log/portage/elog
> drwxrws--- 3 portage portage 315392 Feb 18 12:19 /var/log/portage
> drwxrwsr-x 2 portage portage  24576 Feb 18 12:19 /var/log/portage/elog
> 
> 


I changed mine to run as root a long time ago.  I could view the logs
but I could not delete the old ones when I was done.  That would give a
permissions error.  I just tried it again just now as a user and it
spits out this when I try to clear the logs:

OSError: [Errno 13] Permission denied: <some file name here>

I would think that is normal.  Viewing logs can be done by everyone but
clearing requires more permissions.

Hope that helps.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: RFC: are you able to use "elogv" as a non-root user?
  2012-02-19  2:00   ` Dale
@ 2012-02-19  3:08     ` Nikos Chantziaras
  2012-02-19  3:18       ` Dale
  0 siblings, 1 reply; 6+ messages in thread
From: Nikos Chantziaras @ 2012-02-19  3:08 UTC (permalink / raw
  To: gentoo-user

On 19/02/12 04:00, Dale wrote:
> Alan McKinnon wrote:
>> On Sat, 18 Feb 2012 22:28:11 +0200
>> Nikos Chantziaras<realnc@arcor.de>  wrote:
>>
>>> This isn't an important issue, but it still bugs me a bit (curiosity
>>> killed the cat.)  Some while ago (no idea when exactly, could be 6
>>> months ago or a year ago), I stopped being able to use "elogv" as a
>>> regular user.  Something had changed the permissions of the
>>> "/var/log/portage" and  "/var/log/portage/elog" directories.  The
>>> only thing I know for sure, is that it wasn't me who changed them
>>> (and I'm the only user of that machine.)
>>>
>>> See the related bug report:
>>>
>>>     https://bugs.gentoo.org/show_bug.cgi?id=404413
>>>
>>> So I have a question: did anyone else here notice this as well?  What
>>> is the output of:
>>>
>>>     ls -ld /var/log/portage /var/log/portage/elog
>>>
>>> on your system?
>>>
>>>
>>
>> I use elogviewer in preference to elogv, no issues here. My perms:
>>
>> # ls -ld /var/log/portage /var/log/portage/elog
>> drwxrws--- 3 portage portage 315392 Feb 18 12:19 /var/log/portage
>> drwxrwsr-x 2 portage portage  24576 Feb 18 12:19 /var/log/portage/elog
>>
>>
>
>
> I changed mine to run as root a long time ago.  I could view the logs
> but I could not delete the old ones when I was done.  That would give a
> permissions error.  I just tried it again just now as a user and it
> spits out this when I try to clear the logs:
>
> OSError: [Errno 13] Permission denied:<some file name here>
>
> I would think that is normal.  Viewing logs can be done by everyone but
> clearing requires more permissions.

No, it's not normal.  If your user is in the portage group, then you 
should be able to delete portage logs.  So it seems your system is 
suffering from the same thing.

The fix for this is in the bug report I linked to, btw.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Re: RFC: are you able to use "elogv" as a non-root user?
  2012-02-19  3:08     ` [gentoo-user] " Nikos Chantziaras
@ 2012-02-19  3:18       ` Dale
  0 siblings, 0 replies; 6+ messages in thread
From: Dale @ 2012-02-19  3:18 UTC (permalink / raw
  To: gentoo-user

Nikos Chantziaras wrote:
> On 19/02/12 04:00, Dale wrote:

>> I changed mine to run as root a long time ago.  I could view the logs
>> but I could not delete the old ones when I was done.  That would give a
>> permissions error.  I just tried it again just now as a user and it
>> spits out this when I try to clear the logs:
>>
>> OSError: [Errno 13] Permission denied:<some file name here>
>>
>> I would think that is normal.  Viewing logs can be done by everyone but
>> clearing requires more permissions.
> 
> No, it's not normal.  If your user is in the portage group, then you
> should be able to delete portage logs.  So it seems your system is
> suffering from the same thing.
> 
> The fix for this is in the bug report I linked to, btw.
> 
> 
> 

I don't have my user is the portage group so for my system, it is
normal.  I didn't realize you put your user in the portage group.  That
changes things.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] RFC: are you able to use "elogv" as a non-root user?
  2012-02-18 20:28 [gentoo-user] RFC: are you able to use "elogv" as a non-root user? Nikos Chantziaras
  2012-02-18 20:37 ` Alan McKinnon
@ 2012-02-20 16:54 ` Todd Goodman
  1 sibling, 0 replies; 6+ messages in thread
From: Todd Goodman @ 2012-02-20 16:54 UTC (permalink / raw
  To: gentoo-user

* Nikos Chantziaras <realnc@arcor.de> [120218 14:59]:
> This isn't an important issue, but it still bugs me a bit (curiosity 
> killed the cat.)  Some while ago (no idea when exactly, could be 6 
> months ago or a year ago), I stopped being able to use "elogv" as a 
> regular user.  Something had changed the permissions of the 
> "/var/log/portage" and  "/var/log/portage/elog" directories.  The only 
> thing I know for sure, is that it wasn't me who changed them (and I'm 
> the only user of that machine.)
> 
> See the related bug report:
> 
>    https://bugs.gentoo.org/show_bug.cgi?id=404413
> 
> So I have a question: did anyone else here notice this as well?  What is 
> the output of:
> 
>    ls -ld /var/log/portage /var/log/portage/elog
> 
> on your system?
> 

I seem to remember an emerge that changed the permissions of some log
files (I had to change /etc/syslog-ng/syslog-ng.conf to add the
owner(root) and group(logcheck) options.)

I don't know if other files changed or if the directory permissions
changed at that time?

Todd



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-20 17:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-18 20:28 [gentoo-user] RFC: are you able to use "elogv" as a non-root user? Nikos Chantziaras
2012-02-18 20:37 ` Alan McKinnon
2012-02-19  2:00   ` Dale
2012-02-19  3:08     ` [gentoo-user] " Nikos Chantziaras
2012-02-19  3:18       ` Dale
2012-02-20 16:54 ` [gentoo-user] " Todd Goodman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox