FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 02-18-2012, 07:28 PM
Nikos Chantziaras
 
Default RFC: are you able to use "elogv" as a non-root 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?
 
Old 02-18-2012, 07:37 PM
Alan McKinnon
 
Default RFC: are you able to use "elogv" as a non-root 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
 
Old 02-19-2012, 01:00 AM
Dale
 
Default RFC: are you able to use "elogv" as a non-root 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"
 
Old 02-19-2012, 02:08 AM
Nikos Chantziaras
 
Default RFC: are you able to use "elogv" as a non-root 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.
 
Old 02-19-2012, 02:18 AM
Dale
 
Default RFC: are you able to use "elogv" as a non-root 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"
 
Old 02-20-2012, 03:54 PM
Todd Goodman
 
Default RFC: are you able to use "elogv" as a non-root 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
 

Thread Tools




All times are GMT. The time now is 08:50 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org