sabnzbd Cannot change permissions of

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
dekela
Posts: 2
Joined: Sat May 09, 2020 6:30 am

sabnzbd Cannot change permissions of

Post by dekela »

I followed the guides on this forum and made sure I chown the dir but I keep on getting this error.

May 09 07:29:09 DietPiHole python2.7[2406]: 2020-05-09 07:29:09,751::ERROR::[misc:1636] Cannot change permissions of /mnt/G2/Incomplete

mount :
//192.168.68.118/G2 on /mnt/G2 type cifs (rw,relatime,vers=3.1.1,cache=strict,username=dummy,uid=1000,forceuid,gid=1000,forcegid,addr=192.168.68.118,file_mode=0770,dir_mode=0770

Help?
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: sabnzbd Cannot change permissions of

Post by Joulinar »

Hi,

many thanks for your report. Looks like you are mounting the network drive as user dietpi with read/write permissons for user/group dietpi. So you would need to ensure that user who is running sabnzbd is part of that group.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
dekela
Posts: 2
Joined: Sat May 09, 2020 6:30 am

Re: sabnzbd Cannot change permissions of

Post by dekela »

I am already running it in dietpi group.

See:
[Unit]
Description=sabnzbd DietPi

[Service]
User=sabnzbd
Group=dietpi
Type=simple
ExecStart=/usr/bin/python2.7 /etc/sabnzbd/SABnzbd.py -f /etc/sabnzbd/sabnzbd.ini

[Install]
WantedBy=multi-user.target
/etc/systemd/system/sabnzbd.service (END)

root@DietPiHole:~# groups sabnzbd
sabnzbd : sabnzbd dietpi
root@DietPiHole:~#
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: sabnzbd Cannot change permissions of

Post by Joulinar »

Hmm usually it should work. Unfortunately I'm not able to test it fully as I don't have a Usenet account

to verify that user sabnzbd has sufficient write access, you can do following

Code: Select all

sudo -u sabnzbd touch /mnt/G2/Incomplete/test.file
sudo -u sabnzbd touch /mnt/G2/test.file
Or you can try to change primary group

Code: Select all

usermod -g dietpi sabnzbd
don't forget to restart the system afterwards
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply