Samba Configuration Issues

My windows server recently died and I’m trying to replace some of it’s services with a dietpi installed server, but have run into some problems in relation to samba shares.

I’m trying to configure a samba share so that only a users in a specific group can write to the drive, while everyone else including guest can read files on the share. Unfortunately I end up with either everyone including guest being able to write to the drive, or no one being able to write to the drive.

The dietpi install is Raspberry pi 5 with 16 GB ram, and installed to an nvme drive.

It is an external drive formatted with NTFS (part of the problem I’m guessing). They are mounted like this:

UUID=06B8495AB849497F /mnt/external_media/movies ntfs defaults,permissions,user,noatime 0 0

smb.conf for the shares is:


[Movies]
        comment = Movies
        browsable = Yes
        guest ok = Yes
        path = /mnt/external_media/movies/Movies
        inherit acls = Yes
        readonly = yes
        write list = @mediamanager

[Music]
        comment = Music
        browsable = true
        guest ok = Yes
        path = /mnt/external_media/music/Music
        #readonly = no
        writeable = yes
        write list = @mediamanager

The share for Movies does not allow any writes at all, while the share for Music allows even guest to write to the share. Note for the music configuration readonly = no, and writeable = yes have the same effect of allowing anyone to write to the share. I’m hoping someone can help me configure it properly,
Thanks.

Update:
If I change the write list to be the user dietpi it works as expected, however it doesn’t work if I use any other user or group. Do I have to add the users to a group to be able to login using samba?

Update - Solved:
Managed to figure it out, had to run smbpasswd for each user like so:
smbpasswd -a user

I just used the same pass as the system pass for each user, and now everything works.