Problem with SAMBA

Hi
My config:


[global]

        workgroup = WORKGROUP
        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

[DietPi_Data]
        comment = DietPi Share
        path = /mnt/Data
        guest ok = no
        browseable = yes
        create mask = 0777
        directory mask = 0777
        valid users = dietpi_samba
        admin users = dietpi_samba
        writeable = yes
        max xonnections = 99

Attempting to connect from Windows ends with this message:

image

I did this also:

image

No clue… :frowning:

Did you add the user as user and give him a samba password ?

Yes of course.
Also I tried with dietpi and root user, I can login by SSH by for dla share is the same requester. Od course always I edited SMB.conf

I believe you would have to set the user/permissions to dietpi_samba:users to have access to the share?

valid users = dietpi_samba username here @group here
since the user you built, it should be in users group (if not add it) then add the group @users to that line, and then chown -R dietpi_samba:users /mnt/Data

Add the username to that line and restart samba

Samba Restrict File Sharing To Particular Users or Network Addresses - nixCraft (cyberciti.biz)

[share]
  valid users = user1 user2 @group1 @group2
1 Like

When I add @groups everything start working, as expected.

Thank You!