Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828489 - acct-group/deluge creates users without a home directory
Summary: acct-group/deluge creates users without a home directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paolo Pedroni
URL: https://wiki.gentoo.org/wiki/Deluge
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-07 07:43 UTC by Peter Sasi
Modified: 2021-12-13 16:50 UTC (History)
4 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 Peter Sasi 2021-12-07 07:43:11 UTC
1. Seems like acct-group/deluge creates the deluge user without a home directory as part of: 
emerge --ask net-p2p/deluge
from the documentation: https://wiki.gentoo.org/wiki/Deluge
2. Next step in the documentation fails:
useradd -m -g nogroup -s /bin/nologin deluge
saying that the user already exists.
3. Step 4 in the documentation fails:
su --shell /bin/bash deluge
deluge-console
saying that /.config directory does not exist for deluge: as there is no home dir defined for deluge and it is trying to create the config in root, where deluge user has no rights to do that.

Reproducible: Always

Steps to Reproduce:
1. emerge --ask net-p2p/deluge
2. useradd -m -g nogroup -s /bin/nologin deluge
3. su --shell /bin/bash deluge
4. deluge-console
Actual Results:  
- After emerging deluge user deluge is created with no home directory
- config directory for deluge is not documented if it even exists
- remote connection to the daemon cannot be enabled according to the documentation https://wiki.gentoo.org/wiki/Deluge

Expected Results:  
Create user with the home dir pointing where deluged will store it's config so that su - deluge will be able to start deluge-console and enable remote connection to the daemon.
Comment 1 Peter Sasi 2021-12-08 03:37:29 UTC
In the meantime I found out that:
1. I have to:
mkdir /var/lib/deluge
chown deluge:deluge /var/lib/deluge

Then I can run:
deluge-console -c /var/lib/deluge

It will start, but later still fail with a python error, but that will already be a different bug report...

Let me know if I can actually help to fix the documentation instead of just submitting bugs!
Comment 2 Craig Andrews gentoo-dev 2021-12-13 16:50:50 UTC
The problem, I think, is that https://wiki.gentoo.org/wiki/Deluge is wrong. That page hasn't been updated since net-p2p/deluge was changed to create the user/group on its own way back in October 2019: https://github.com/gentoo/gentoo/commit/d137de4a30758608c28f2a6880cf91d15816ac2b

You should be able to just emerge net-p2p/deluge and be done - no need to manually create/configure a user or group.

Hopefully this resolves your issue - if not, please let me know.