Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189625 - net-p2p/mldonkey default initscript runs it with root privileges
Summary: net-p2p/mldonkey default initscript runs it with root privileges
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Default Configs (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-20 18:15 UTC by Anatoly
Modified: 2007-08-20 18:51 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 Anatoly 2007-08-20 18:15:12 UTC
After default installation of net-p2p/mldonkey it runs as root regardless of settings in config files because of a bug in initscript:

currently /etc/init.d/mldonkey looks like:
start() {
  ...
  start-stop-daemon --start --user $USER
  ...
}

should be:

start() {
  ...
  start-stop-daemon --start --chuid $USER
  ...
}
Comment 1 Anatoly 2007-08-20 18:26:04 UTC
update to initial post:

should be:

MLDONKEY_USER="p2p"
start() {
  ...
  start-stop-daemon --start --chuid $MLDONKEY_USER ...
  ...
}

my mistake :)
Comment 2 Anatoly 2007-08-20 18:51:55 UTC
that was for 2.9.0-r1
2.9.0-r2 works just fine