Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207318 - net-p2p/gnunet-0.7.3: incorrect user in the init script
Summary: net-p2p/gnunet-0.7.3: incorrect user in the init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-24 21:09 UTC by rpansky
Modified: 2008-02-04 15:24 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 rpansky 2008-01-24 21:09:22 UTC
The current ebuild creates user and group gnunetd, while /etc/init.d/gnunet tries to run gnunetd as user gnunet:

start-stop-daemon --start --quiet --background --exec /usr/bin/gnunetd \
                -- -u gnunet -c /etc/gnunetd.conf

If one keeps default user names, this problem can be more severe than it seems to be:
$ man gnunetd
...
If you start gnunetd as root (which is not required), you can use the -u option such that GNUnet runs as a different user. If a group of the same name exists, GNUnet will also change to that group. If GNUnet cannot change its UID to USER or GID to USER, a warning will be printed and gnunetd will *continue* with the rights of the user that invoked gnunetd.
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2008-02-04 15:24:23 UTC
Fixed, thanks.