Cant access samba

Hope someone can help .
I can access my shared disc on dietpi from windows 10, but my old media player(linux sat tuner) can not access it anymore. I was not using it for some time so it can be, that after some dietpi update it coming with error now . Mediaplayer can see shared disk on network as CIFS, but wont connect.

Where should I start to dig ?
Thank you

I had the same issue with VLC from Android phone.
The workaround was to use Total Commander to browse the Samba share and play the media on VLC.
Most likely the version 4.9.5 currently in Dietpi is not compatible with the version of your sat tuner.
I also have a linux sat tuner, so I can give it a try.

btw 4.9.5 is currently the official version that’s included in Debian packages. DietPi did not have any own software. It’s using official soureces

https://qa.debian.org/madison.php?package=samba

 samba | 2:4.9.5+dfsg-5           | buster

muda
maybe you can try to add the following to your /etc/samba/smb.conf

client min protocol = NT1

Joulinar

When I try to open /etc/samba/smb.conf with nano, i get this:
[ Error reading lock file /etc/samba/.smb.conf.swp: Not enough data read ]

pls can you check that you have sufficient space available and try to remove the .swp file

rm /etc/samba/.smb.conf.swp

Deleting swp helped.
Added that line , but connection is not working anyway. :frowning:

did you restarted the service afterwards? and where did you added the line? Needs to be in Server section



[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\sup$
        pam password change = yes
        map to guest = bad user

        load printers = no
        printcap name = /dev/null
        disable spoolss = yes

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

Where is that ? I added in the very end and rebooted Pi

Try to put it into [global] section

Nope. Sadly not solved yet.

hmm you could raise log level of SAMBA to a higher value to get some debugging done.

Thanks for help, but I am afraid I am not strong enough to do such things.

You can set the log level within the [global] section in the smb.conf file:

log level = 5

This should create log files in /var/log/. The logging level ranges from 1 to 10, where level 1 provides only a small amount of information and level 10 provides a plethora of low-level information. 5 is already a high value and should be used for debugging only. For normal operation, don’t use a log level higher than 3.

Just a thought

CAn it be related to permissions ? Just noticed that I cant modify files from windows machine . I can only open . Should be able to open files from m.player as well, but who knows what it needs.

Opening from phone VLC works but every single folder is asking for login. Why is that ?

hmm that sounds strange that VLC is asking for each and every folder. Can you maybe use a different Samba client app to verify the behaviour?

Do you use the same user on windows as well as on your player?

Maybe you player is running such an old SAMBA client that it is not able to connect anymore to current samba server version?? What player you are using?

Hi Joulinar,

You are asking too complicated questions . haha

I am using really old sat tuner . Its Golden Media Spark from 2012 if I recall it correctly. I dont know what client it is using. It was built in and I am not sure if I am smart enough to instal anything in to it.
Was working as is like year ago :slight_smile:

Also I try connecting to Pi smb server using same login from all locations.

Well I mean what model you are using. Maybe we will find something on the web

Didn’t mean to dig a grave. But as it’s unsolved and i ran into the same problem and happen to found solution, i’d like to share how to deal with it.

Use “smbpasswd -a [username]” on dietpi to create a password under your current username. Then VLC will be able to access the smb storage with the login created. This will not affect windows from accessing public folders without password.