Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465768 - net-dialup/freeradius - init script should default to radiusd user, not root
Summary: net-dialup/freeradius - init script should default to radiusd user, not root
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-13 10:46 UTC by Jaco Kroon
Modified: 2016-11-26 22:29 UTC (History)
2 users (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 Jaco Kroon 2013-04-13 10:46:35 UTC
The default init.d/radiusd defaults to assuming that radiusd will run as root.  This is probably a bad idea and should probably default to the created radius user.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-03 16:35:33 UTC
For the init script to work with the radiusd user as default, we would also need the conf.d script to have that as default, and /etc/raddb/radiusd.conf should set the user = and group = accordingly. Additionally, pkg_config() should change the ownership after ./bootstrap has run.

It kind of makes sense to do this when the ebuild introduces the user and group in the first place.
Comment 2 Matt Turner gentoo-dev 2016-11-26 22:29:28 UTC
Should be fixed by

commit 9a502883369ac2d353e09468aa6d0ac71c5b73a2
Author: Matt Turner <mattst88@gentoo.org>
Date:   Wed Nov 23 10:19:55 2016 -0800

    net-dialup/freeradius: Run service as radius user by default.