Page 1 of 2

Unable to change user for services

Posted: Thu Mar 19, 2020 6:10 pm
by TheSubaruJunkie
I am running Deluge and by default it runs under the user "debian-deluged" however i need it to run under the "dietpi" user.

No matter what I do it always uses the user "debian-deluged". I have edited the deluged.service and deluge.service.d/dietpi-services_edit.conf files and they both specify user=DietPi however when the service runs it still shows running under "debian-deluged" user.

Why wont dietpi let me change users for services?

Re: Unable to change user for services

Posted: Thu Mar 19, 2020 6:13 pm
by Joulinar
Hi,

why are you need to have deluged running as dietpi user?

Re: Unable to change user for services

Posted: Thu Mar 19, 2020 6:20 pm
by TheSubaruJunkie
Because my hard drive is FAT32 and does not support permissions. So i have mounted it with DIETPI as the owner. Deluge can not write to the drive because it doesn't have the permission to do so. So I need to run Deluge as Dietpi so that it has permission to write to my FAT32 drive.

Re: Unable to change user for services

Posted: Thu Mar 19, 2020 6:22 pm
by Joulinar
better option would be to add Deluge user to DietPi group

Re: Unable to change user for services

Posted: Thu Mar 19, 2020 6:23 pm
by TheSubaruJunkie
Care to explain how?

Re: Unable to change user for services

Posted: Thu Mar 19, 2020 6:24 pm
by Joulinar

Code: Select all

usermod -a -G dietpi username

Re: Unable to change user for services

Posted: Thu Mar 19, 2020 6:30 pm
by TheSubaruJunkie
Okay I did that but it didn't fix anything. Deluge still can not download to the hard drive.

Can you tell me how to change the user for this service? Why does this work on every other distro but DietPi??

I need Deluge to run as DietPi!

Re: Unable to change user for services

Posted: Thu Mar 19, 2020 7:36 pm
by Joulinar
Did you reboot your system after you added Deluge user to dietpi group?

Re: Unable to change user for services

Posted: Thu Mar 19, 2020 7:45 pm
by TheSubaruJunkie
Joulinar wrote: Thu Mar 19, 2020 7:36 pm Did you reboot your system after you added Deluge user to dietpi group?
Yes of course I did.

Re: Unable to change user for services

Posted: Thu Mar 19, 2020 9:46 pm
by Joulinar
Hi,

are you sure your stick was mounted as dietpi user? because if I add an USB stick, it will be mounted as root user. And did you tried to format your USB drive as ext4?