when I enter your command, what do I need to be able to see or check?
do i still have to mount the share fileserver in the drive manager?
as a samba drive?
I can see the share in Windows, I also see a folder with lost&found, but I don’t have write permissions.
I guess the drive is already mounted. Just check following
Drive manager is not mounting an HDD drive specifically as Samba share. Both have nothing to do with each other. Drive manager is making the drive available for the operating system. Doesn’t matter what you do with it. Samba as application is going to make file/folders available on the network. Doesn’t matter what folder it is and where it is located.
Can you check current permission on the share?
ls -la /mnt/fileserver
root@DietPi:~# df -h Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf /dev/root 15G 784M 14G 6% / devtmpfs 1,9G 0 1,9G 0% /dev tmpfs 1,9G 0 1,9G 0% /dev/shm tmpfs 769M 11M 759M 2% /run tmpfs 5,0M 0 5,0M 0% /run/lock tmpfs 1,9G 0 1,9G 0% /tmp tmpfs 50M 16K 50M 1% /var/log /dev/mmcblk0p1 127M 32M 95M 26% /boot /dev/sda1 234G 28K 234G 1% /mnt/fileserver root@DietPi:~#
root@DietPi:~# ls -la /mnt/fileserver insgesamt 24 drwxr-xr-x 3 dietpi dietpi 4096 28. Jan 11:00 . drwxr-xr-x 6 root root 4096 28. Jan 11:01 .. drwx------ 2 dietpi dietpi 16384 28. Jan 11:00 lost+found root@DietPi:~#
This is what it looks like when I have checked
this looks all good. Which user you use to login into SAMBA from Windows?
i use the specially created user joerg for this purpose
in this case, the permission we set are incorrect, as we allowed user
dietpi only. Question: is
joerg the only one going to access the share? Who should access the share/ file system.
joerg is supposed to be the only user with access rights
I created the user joerg with adduser and assigned a password for him.
This user should be the only user who can use the samba.
this should assign user right for the specific folder
chown -R joerg:dietpi /mnt/fileserver
how can I test this?
Do I have to reboot the raspi or restart the samba for the change to take effect?
should be affective right away. Theoretically you can create a demo file
sudo -u joerg touch /mnt/fileserver/demo.file ls -la /mnt/fileserver
Joulinar You are really the best.
It worked and I have full access to the fileserver.
Many many thanks for your help
can I delete the lost+found folder?
leave it there. It doesn’t hurt.
Thanks again for your help.
I will log out now.
Have a nice weekend.