Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

samba share permissions

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
dejhost
Posts: 2
Joined: 2022-04-27 06:20
Been thanked: 1 time

samba share permissions

#1 Post by dejhost »

Hi,
I have troubles configuring a samba-share in a Debian11 - VM correctly.

I try to achieve the following setup:
  • Newly created folders on the share are supposed to have these permissions: drwxr-xr-x
  • Newly created files on the share are supposed to have these permissions: -rw-rw-r--
  • Files and folders are to be owned by the user dejhost and the group dejhost. Nobody else is supposed to read or write files.
This is my current configuration:
sambashare.jpeg
sambashare.jpeg (58.3 KiB) Viewed 818 times
The parent-folder "media" on the samba server has the permissions: drwxr-xr-x


I can successfully mount the sambashare in a neighbor VM, same OS. I use the plugin "external storages" from Nextcloud:
extstorages.png
extstorages.png (46.19 KiB) Viewed 817 times
Here are the issues:
  • Dead slow. The mounting-process works ok, but accessing any files and folders (even listing a directory) is painfully slow.
  • I cannot delete files. Nextcloud returns "Error deleting file"
  • I cannot create files/folders reliably. It kind of worked before (dead slow!), but fails at the moment
Could please advise on how to succeed? Thank you.

dejhost
Posts: 2
Joined: 2022-04-27 06:20
Been thanked: 1 time

Re: samba share permissions

#2 Post by dejhost »

I found out that it was a bug in Nextcloud - and not the samba-server config.

Solved the issue by following this guide:
https://blog.nuvotex.de/nextcloud-smb-stringbuffer/

Post Reply