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?
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.
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:~#
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
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
usermod -g dietpi sabnzbd
don’t forget to restart the system afterwards