Cant access samba

Having issues with your DietPi installation, or, found a bug? Post it here.
muda
Posts: 10
Joined: Thu Jun 20, 2019 4:33 pm

Cant access samba

Post by muda »

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
User avatar
trendy
Posts: 156
Joined: Tue Feb 25, 2020 2:54 pm

Re: Cant access samba

Post by trendy »

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.
User avatar
Joulinar
Posts: 2588
Joined: Sat Nov 16, 2019 12:49 am

Re: Cant access samba

Post by Joulinar »

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

Code: Select all

 samba | 2:4.9.5+dfsg-5           | buster
@muda
maybe you can try to add the following to your /etc/samba/smb.conf

Code: Select all

client min protocol = NT1
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
muda
Posts: 10
Joined: Thu Jun 20, 2019 4:33 pm

Re: Cant access samba

Post by muda »

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 ]
User avatar
Joulinar
Posts: 2588
Joined: Sat Nov 16, 2019 12:49 am

Re: Cant access samba

Post by Joulinar »

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

Code: Select all

rm /etc/samba/.smb.conf.swp
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
muda
Posts: 10
Joined: Thu Jun 20, 2019 4:33 pm

Re: Cant access samba

Post by muda »

Joulinar wrote: Mon Mar 02, 2020 9:38 pm pls can you check that you have sufficient space available and try to remove the .swp file
Deleting swp helped.
Added that line , but connection is not working anyway. :(
User avatar
Joulinar
Posts: 2588
Joined: Sat Nov 16, 2019 12:49 am

Re: Cant access samba

Post by Joulinar »

did you restarted the service afterwards? and where did you added the line? Needs to be in Server section
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
muda
Posts: 10
Joined: Thu Jun 20, 2019 4:33 pm

Re: Cant access samba

Post by muda »

Joulinar wrote: Mon Mar 02, 2020 9:53 pm did you restarted the service afterwards? and where did you added the line? Needs to be in Server section

Code: Select all

[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
User avatar
Joulinar
Posts: 2588
Joined: Sat Nov 16, 2019 12:49 am

Re: Cant access samba

Post by Joulinar »

Try to put it into [global] section
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
muda
Posts: 10
Joined: Thu Jun 20, 2019 4:33 pm

Re: Cant access samba

Post by muda »

Nope. Sadly not solved yet.
Post Reply