DietPi version | G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=18
G_DIETPI_VERSION_RC=2
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
Distro version | bullseye 0
Kernel version | Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Architecture | arm64
SBC model | RPi 3 Model B (aarch64)
Power supply used | Unkown
SD card used | Sandisk Ultra 16gb
Additional Information (if applicable)
Software title | Samba
Was the software title installed freshly or updated/migrated?
Freshly installed
Can this issue be replicated on a fresh installation of DietPi?
Yes
Bug report ID | 48534202-af56-4840-9e3e-d0b67b3abfe9
Steps to reproduce
Install Samba
Typed in “sed -i ‘/path = /c\path = /mnt/stash/KSMB’ /etc/samba/smb.conf” and then “systemctl restart nmbd smbd”, which gives me read access to the folder via Windows 11 but no write permission.
Typed in this into the samba config:
“[dietpi]
comment = DietPi Share
path = /mnt/stash/KSMB
browseable = yes
writeable = yes
read only = no
force create mode = 0777
force directory mode = 0777
create mask = 0777
directory mask = 0777
public = yes”
Expected behaviour
I should be allowed to write and delete on the folder via Windows 11.
Actual behaviour
Windows 11 tells me I can’t edit files on the folder because I don’t have permission.
Extra details
I’ve searched high and low online for a solution without finding any. I got it to work on a previous installation but can’t remember what I did that made it work then.
It is like the error message stated: You have no permissions to write, only read and execute (assuming you’re using user dietpi)
The permissions you set in your config only account for new created files and folders, not for the already existing ones, they have already their permissions.
Theroretically you should be able to create files and folders in /mnt/stash/KSMB, but not in any subfolder:
drwxrwxrwx 14 nobody nogroup 4096 Jun 6 03:28 .
You could do chmod 775 /mnt/stash/KSMB and chown nobody:dietpi /mnt/stash/KSMB (assuming you are using the user dietpi)
This worked, thanks. But I have another problem that I don’t know if it needs a seperate thread or not but I have a feeling it’s related. I have an emby server on my Raspberry pi and when I try to delete stuff within emby it tells me that I don’t have write permissions to that folder. Why is that?