Web lists-archives.com

Re: [Samba] Public share ask for a password




Hello,

Try this config

# vim  /etc/samba/smb.conf
  [global]
    workgroup = WORKGROUP
    security = user
    map to guest = Bad User
    passdb backend = tdbsam
[myshare]
    path = /share
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0755

# service smb restart

Thanks
Amit Kumar

On 03/21/2017 06:17 PM, c.buhtz--- via samba wrote:
> I am using a Samba-server (2:4.2.14+dfsg-0+deb8u2) on Debian stable.
> The Samba-client (samba-common ist 2:4.5.6+dfsg-1) runs on a Debian
> unstable.
>
> When I try to mount a Public share I am ask for a password. I don't
> know why. There should be no need for a password. And I can log in no
> matter if or which password I enter.
>
> I can I prevent the password questions?
>
> The is the IMO relevant part of my /etc/samba/smb.conf
>
> [global]
>    map to guest = Bad User
>    usershare allow guests = no
>
> [Public]
> path = /Daten/Public
> browsable = yes
> guest ok = yes
> writeable = yes
>
> This is the relevant line in the /etc/fstab
>
> //SPARKY/Public    /mnt/Sparky/Public    cifs rw,noauto,user 0 0
>
> I am not sure on which side I did something wrong.

-- 
Thanks
Amit Kumar
There are three ways to get something done:
  (1) Do it yourself.
  (2) Hire someone to do it for you.
  (3) Forbid your kids to do it.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba