Deluge cannot download to Samba CIFS share

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
peepsnet
Posts: 3
Joined: Mon Jul 22, 2019 2:14 pm

Deluge cannot download to Samba CIFS share

Post by peepsnet » Mon Jul 22, 2019 2:59 pm

I installed dietpi and added deluge and motioneye...

I then added samba mounts through the UI

I am not able to download to the Samba shares.

If I change the download folder to the /mnt/dietpi_userdata/downloads then it works fine!

Image

It is also not working to record movies in motioneye to the SAMBAs

Thanks,
Don

peepsnet
Posts: 3
Joined: Mon Jul 22, 2019 2:14 pm

Re: Deluge cannot download to Samba CIFS share

Post by peepsnet » Mon Jul 22, 2019 4:19 pm

I have a temp solution...

I went into the fstab file and changed:

file_mode=0770,dir_mode=0770

to

file_mode=0777,dir_mode=0777

then ran

Code: Select all

mount -a
as a temp solution!

User avatar
johnvick
Legend
Posts: 653
Joined: Wed Jun 08, 2016 10:53 am
Location: New Zealand

Re: Deluge cannot download to Samba CIFS share

Post by johnvick » Mon Jul 22, 2019 8:11 pm

Sounds like the user Deluge is running under does not have permission to write to the Samba share in question.

Edit the samba config file and give the relavent user access to the share. Restart the samba service.

peepsnet
Posts: 3
Joined: Mon Jul 22, 2019 2:14 pm

Re: Deluge cannot download to Samba CIFS share

Post by peepsnet » Mon Jul 22, 2019 11:04 pm

johnvick wrote:
Mon Jul 22, 2019 8:11 pm
Sounds like the user Deluge is running under does not have permission to write to the Samba share in question.

Edit the samba config file and give the relavent user access to the share. Restart the samba service.
Can you give an example.

My share is at 192.168.1.10/Torrents
My DietPi has mounted the share at /mnt/NasTorrents

So what should I look for in the smb.conf?

User avatar
johnvick
Legend
Posts: 653
Joined: Wed Jun 08, 2016 10:53 am
Location: New Zealand

Re: Deluge cannot download to Samba CIFS share

Post by johnvick » Tue Jul 23, 2019 10:27 am

Here's a segment of my conf:

[global]
client min protocol = SMB3

workgroup = WORKGROUP
server string = %h server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog only = no
syslog = 0

panic action = /usr/share/samba/panic-action %d

security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes

passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user

load printers = no
use sendfile = yes

hosts allow = 192.168.1.0/24

# SO_RCVBUF=8192 SO_SNDBUF=8192
# socket options = TCP_NODELAY

# usershare allow guests = yes


[HD]
comment = HD
path = /mnt/usb_2
browseable = yes
read only = no
create mask = 0775
directory mask = 0775
valid users = root
guest ok = no
writeable = yes
public = yes

Edit the path to suit. Make sure you have assigned a password to the user concerned and add the name to the valid user list.

# smbpasswd -a username

aftensleuk
Posts: 21
Joined: Sun Jul 21, 2019 7:27 pm

Re: Deluge cannot download to Samba CIFS share

Post by aftensleuk » Tue Jul 23, 2019 7:39 pm

I did a dirty trick... you could do the same.

On the host (the one that has the USB-disk plugged in) I would do this:

chmod -R 777 /mnt/usb_2/ *

This will give permissions to every user to write to the samba share. Assuming you're on a private network with a router firewall you'll be fine.

Post Reply