Samba Server Problem

Hallo Community,
ich habe ein Problem mit meiner Samba Konfiguration.
Wenn ich auf den Samba zugreifen will, bekomme ich die Meldung, dass ich keine Berechtigung zum Schreiben habe.

Meine Festplatte ist hoffentlich korrekt gemountet, siehe screenshot

und meine Smb.conf sollte eigentlich auch passen, siehe Screenshot

Wer weiss mir einen Rat.
Viele Grüße

First, welcome to our community.
Second, we are an international board, therefore try to use English pls. You are free to use some cloud translation tools like

Your problem is coming from your external drive. You are using exfat as file system format. This is not a Linux file system format and not supporting any kind of file system permission. Therefore, all files and folders have default permission, and you are not able to change them. Better to use a Linux file system format like ext4

Hello Joulinar
sorry for the german language, and a nice hello to the community.
I have changed the file system to ext4, but unfortunately the full size of the hard disk (250GB) is displayed, see screenshot.

I also only have one hard disk connected to the Rasbpi, but two are displayed.
However, both have far too little capacity.
Where is my error?

it’s just 1 HDD sda but having 2 different partitions sda1/2.

can you share following?

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid

Good morning Joulinar,
I have attached the screenshot.
The hard disk is displayed correctly, but there are two partitions that I did not consciously create.

I will try deleting the two partitions and creating only one.
How would you do something like that?
Thank you very much in advance.
Greetings Joerg

Hello Joulinar

I have managed to create a partition with all the space. Unfortunately, the divemanager no longer works.
What have I done wrong?

what exactly is not working? Can you be a little bit more specific!

The goal should be to format the partition within dietpi-drive_manager as ext4 and then mount it.
With lsblk and df -h, additionally to dietpi-drive_manager, you can monitor the result.

Hello all,
I have now re-installed dietpi.
I assume I have everything correct now, see screenshot

You mean a full new installation of whole DietPi? That was not necessary. Within drive manager you should be able to manage your HDD easily.

Yes, I have completely reinstalled dietpi.
This was not a problem because the system was virtually in a new state anyway, so there was no data on the SD card or the hard drive.

I just don’t know if everything is ok.

yes that ist fine, you should see the drive attached as well using

df -h

Yes I can see it that way now too


I reinstalled the samba during the reinstallation.
Unfortunately, the smb.conf now looks quite different.
I don’t know how to set the shares now.

I think I can create the questions here, or is that wrong?

How did you do that? Did you used dietpi-software? As it looks like the original smb.conf and not the one we provide with our install script.

One hint. If possible, try to avoid screen prints. You should be able to copy nearly everything from SSH terminal directly and past it into your post. :wink:

Yes I installed it with the script under dietpi-software

but i must have accidentally installed the client instead of the server :frowning:

ok can you remove the client? Once done, go with server install.

I have uninstalled the clietn and installed the server.
Now it looks like I know it again

  GNU nano 5.4                                                                                                               smb.conf *

        workgroup = TROMETER
        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
        printcap name = /dev/null
        disable spoolss = yes

        comment = DietPi Share
        path = /mnt/fileserver
        browseable = yes
        create mask = 0664
        directory mask = 0775
        valid users = dietpi
        writeable = yes
max connections = 8

and you still have permission issues I guess? I guess you need to set correct permission for user dietpi

chown -R dietpi:dietpi /mnt/fileserver