Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178883 - net-p2p/mldonkey-2.8.5 - mldonkey command line fails to read /etc/conf.d/mldonkey with normal user
Summary: net-p2p/mldonkey-2.8.5 - mldonkey command line fails to read /etc/conf.d/mldo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-17 14:31 UTC by Renato Alves
Modified: 2007-05-17 15:26 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 Renato Alves 2007-05-17 14:31:09 UTC
Since /etc/conf.d/mldonkey has -rw------- 1 root root permissions, starting mldonkey with the supplied script fails with error message:

$ mldonkey 
/usr/bin/mldonkey: line 3: /etc/conf.d/mldonkey: Permission denied

Since the user is not root and the script tries to read the conf.d/mldonkey file, the error pops up.

Suggestions to workaround:
1. Start the app with mlnet
2. Make the conf.d file with perms -rw-r----- 1 p2p p2p and create the p2p group
3. Remove the 3rd line from /usr/bin/mldonkey (not sure what the line is needed for)

Reproducible: Always

Steps to Reproduce:
1. Login as normal user
2. type mldonkey in console

Actual Results:  
$ mldonkey 
/usr/bin/mldonkey: line 3: /etc/conf.d/mldonkey: Permission denied


Expected Results:  
$ mldonkey 
2007/05/17 15:25:33 [cO] Starting MLDonkey 2.8.5 ... 
2007/05/17 15:25:33 [cO] Language PT, locale UTF-8, ulimit for open files 1024
2007/05/17 15:25:33 [cO] MLDonkey is working in /home/user/.mldonkey
2007/05/17 15:25:33 [cO] creating new MLDonkey base directory in /home/user/.mldonkey
2007/05/17 15:25:33 [cO] loaded language resource file
(...)

Ebuild reports:
 * Running `mldonkey' will start the server inside ~/.mldonkey/

Working only for root ATM.
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2007-05-17 15:26:18 UTC
The mldonkey script is useless.

mlnet already creates the needed dirs.

Removed, thanks.