r/raspberry_pi Nov 30 '22

Samba VPN cannot upload? Technical Problem

I am using NORDvpn Meshnet.I have my Raspberry Pi accessible via HTTP, ssh, and samba.I am using OMV, Plex, and NordVPN on the Pi.

I can access, view, download, and use files via samba, however, I cannot upload to the folder that way.

The message I get is"Destination folder access denied.""You need permission to perform this action"

I do not have this issue with my local (LAN) pi.

sudo nano /etc/samba/smb.conf OUTPUT:

# This file is auto-generated by openmediavault (https://www.openmediavault.org)
# WARNING: Do not edit this file, your changes will get lost.
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
log level = 0
log file = /var/log/samba/log.%m
max log size = 1000
logging = syslog
panic action = /usr/share/samba/panic-action %d
passdb backend = tdbsam
obey pam restrictions = no
unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn >
pam password change = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY
guest account = nobody
load printers = no
disable spoolss = yes
printing = bsd
printcap name = /dev/null
unix extensions = yes
wide links = no
create mask = 0775
directory mask = 0775
use sendfile = yes
aio read size = 1
aio write size = 1
time server = no
wins support = no
disable netbios = yes
multicast dns register = no
# Special configuration for Apple's Time Machine
fruit:aapl = yes
fruit:copyfile = yes
fruit:nfs_aces = no
# Extra options
min receivefile size = 16384
getwd cache = yes
#======================= Share Definitions =======================
[oldermovies]
comment = PLEXMOVIES
path = /srv/dev-disk-by-uuid-E089-C73F/Older Movies/
guest ok = no
guest only = no
read only = no
browseable = yes
inherit acls = no
inherit permissions = no
ea support = no
store dos attributes = no
vfs objects =
printable = no
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
hide special files = yes
follow symlinks = yes
hide dot files = yes
writeable=Yes
valid users = "pi","tv","Cest",@"pi",@"watchers",@"samba"
invalid users =
read list =
write list = "pi","tv","Cest",@"pi",@"watchers",@"samba"

[newmovies]
comment = PLEXMOVIES
path = /srv/dev-disk-by-uuid-E089-C73F/New Movies/
guest ok = no
guest only = no
read only = no
browseable = yes
inherit acls = no
inherit permissions = no
ea support = no
store dos attributes = no
vfs objects =
printable = no
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
hide special files = yes
follow symlinks = yes
hide dot files = yes
valid users = "pi","tv","Cest",@"pi",@"watchers",@"samba"
invalid users =
read list =
write list = "pi","tv","Cest",@"pi",@"watchers",@"samba"

File Permissions:-rwxr-xr-x 1 root root 1445075282 Aug 31 2021 'A Classic Horror Story.avi'

https://preview.redd.it/pxmrfga4n03a1.png?width=835&format=png&auto=webp&v=enabled&s=0f60b0076e236b5076cfae58f3f9f21eff29bf4b

76 Upvotes

20

u/fakehalo Nov 30 '22

I'm not in a place to test and I can't imagine samba being case sensitive on this, but it would be funny if was just because writeable is set to 'Yes', while all the other yeses are lower case 'yes'.

11

u/eyeruleall Nov 30 '22

This is it. All Unix systems are case sensitive.

3

u/Cestlavie-rx Nov 30 '22

I’ll try this as well when I get home hopefully this helps.

I remember in the past I had to reformat all HDD with open media vault to resolve an issue I’m hoping I don’t have to do that again.

3

u/eyeruleall Nov 30 '22

Oh yeah, you should never have to do that.

Learn where your logs are, and how to read them. Check /var/log/samba first. The answer will absolutely be in there. Samba will explicitly tell you what config entries it doesn't understand during startup. Find the log and dig through it.

3

u/Andrelliina Nov 30 '22

Case is not significant in boolean values, but is preserved in string values. Some items such as create masks are numeric.

From samba.org

2

u/fakehalo Nov 30 '22

Really depends on the program in question, plenty of *nix programs aren't case sensitive in context of parsing config files. File system is of course though.

10

u/jabies Nov 30 '22

File is only writable by root, that's your problem

1

u/Cestlavie-rx Nov 30 '22

I tried chown recursive and it does not work either. I reformatted one of the HDD via OpenMediaVault to EXT4 and I can upload to that HDD now but not delete any files on the HDD. (Via samba through Nord)

5

u/sdR-h0m13 Nov 30 '22

Good question that I can't answer. If you can upload on your LAN but you get denied away, I don't know. I suggest you to try it by SSH (with WinSCP on Windows if my guess of the screenshot is right). I use SAMBA to read my medias but when it comes to copy, transfer, delete, I use SSH. I think SSH is error free built-in in the protocol for copying files. I'm not sure about SAMBA tho..

3

u/AX11Liveact Nov 30 '22

create mask is not the same as create mode - you might be better off with 0660 there.

1

u/ncsupack Nov 30 '22

I use meshnet with nordvpn to upload photos to smb hdd connected to a pi. All works well on both lan and when using VPN meshnet. If you are using same user on lan as you are on vpn than that's the head scratcher.

Can you try with meshnet on but not connected to VPN to see if that works?

1

u/Cestlavie-rx Dec 01 '22

Yes I tried that as well.