Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142489 - Tenshi looses read access to log files
Summary: Tenshi looses read access to log files
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Tenshi (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Tenshi Group User
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-01 18:28 UTC by George Clark
Modified: 2006-08-02 03:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Clark 2006-08-01 18:28:04 UTC
After upgrade, tenshi looses read access to the system log files.  Another user reported the same issue on the forums and a reply suggested to bypass the problem by commenting out a line in /usr/sbin/tenshi and made the below report:

> I commented out line 631 in /usr/sbin/tenshi:
> Code:
> $) = "$gid $gid"            or die RED "[ERROR] can't reset supplementary groups: $!\n";
> 
> I believe it resets the groups the tenshi process belongs to. In my case it causes tenshi to lose rights to read log files.

This solved the problem on my system as well.
Comment 1 Rob Holland 2006-08-02 02:55:39 UTC
There was a bug in previous versions of tenshi which allowed it to continue to run as root, when it should not have done so. That line of code fixes the problem.

If tenshi is no longer able to read log files after you remove that line, you should adjust the permissions on your log files so that tenshi can read them.

Running in group root is not secure.
Comment 2 Andrea Barisani (RETIRED) gentoo-dev 2006-08-02 03:04:43 UTC
Closing as INVALID.