Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425420 - net-dialup/freeradius-2.1.11 and 2.1.12 radius / radiusd user and group mismatch
Summary: net-dialup/freeradius-2.1.11 and 2.1.12 radius / radiusd user and group mismatch
Status: RESOLVED DUPLICATE of bug 397609
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-09 09:07 UTC by Radek Sipka
Modified: 2012-07-11 10:40 UTC (History)
1 user (show)

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 Radek Sipka 2012-07-09 09:07:04 UTC
Hello, there is bug which affects 2.1.11 and 2.1.12 radius ebuilds:

In pkg_setup() :
        enewgroup radiusd
        enewuser radiusd -1 -1 /var/log/radius radiusd

in src_install() :
       diropts -m0750 -o root -g radius
        dodir /etc/raddb
        diropts -m0750 -o radius -g radius

So, the install fails on dodir because there is mixup of users (gentoo creates radiusd:radiusd vs radius in the later step)



Reproducible: Always

Steps to Reproduce:
1. emerge net-dialup/freeradius
2.
3.
Actual Results:  
Install fails on dodir step (user radius does not exists)

Expected Results:  
freeradius installed

The issue can be fixed by creating user and group radius before installation.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-07-09 09:34:32 UTC

*** This bug has been marked as a duplicate of bug 397609 ***
Comment 2 Spooky Ghost 2012-07-11 10:40:12 UTC
Older ebuilds for freeradius used radiusd for the user group.  After updating to the latest version I now have two users radius and radiusd and groups radius and radiusd, the installed files are now mixed between the accounts.  Surely the best solution would have been to stick with groups/users used by the older ebuilds?