Bug 178883 - net-p2p/mldonkey-2.8.5 - mldonkey command line fails to read /etc/conf.d/mldonkey with normal user
Bug#: 178883 Product:  Gentoo Linux Version: 2006.1 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: net-p2p@gentoo.org Reported By: simpledark@gmail.com
Component: Applications
URL: 
Summary: net-p2p/mldonkey-2.8.5 - mldonkey command line fails to read /etc/conf.d/mldonkey with normal user
Keywords:  
Status Whiteboard: 
Opened: 2007-05-17 14:31 0000
Description:   Opened: 2007-05-17 14:31 0000
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 From Raúl Porcel 2007-05-17 15:26:18 0000 -------
The mldonkey script is useless.

mlnet already creates the needed dirs.

Removed, thanks.