[Samba] Public share ask for a password

L.P.H. van Belle belle at bazuin.nl
Tue Mar 21 15:21:23 UTC 2017



I suggest NOT to use fstab but systemd startups if you on debian jessie. 


Get to know systemd and if you do i’ll bet you like it. 

I know only on that hates it.. dont you Rowland. ;-) 


Have look here for a good example for mount and automount. 


and if you do need fstab, that example shows what your missing. 


I used that link also for my NFSv4 Kerberos automounts as example. 

And i can say works great.








> -----Oorspronkelijk bericht-----

> Van: samba [mailto:samba-bounces at lists.samba.org] Namens c.buhtz--- via

> samba

> Verzonden: dinsdag 21 maart 2017 15:09

> Aan: samba at lists.samba.org

> Onderwerp: Re: [Samba] Public share ask for a password


> Not only reading but understanding the manpages would help. ;)


> On 2017-03-21 13:47 "c.buhtz--- via samba" <samba at lists.samba.org>

> wrote:

> > This is the relevant line in the /etc/fstab

> >

> > //SPARKY/Public    /mnt/Sparky/Public    cifs rw,noauto,user 0 0


> See the explanation of "password" in the manpage of "mount.cifs".

> mount.cifs will always ask for a password (if it is not given implicit

> with environment variable or credential file) also when guest users are

> allowed on the samba share.


> This means you have to add "password=" to the fstab line. Then it works

> well.


> I can not see a technical or design reason about this behaviour.

> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858343>


> --

> To unsubscribe from this list go to the following URL and read the

> instructions:  https://lists.samba.org/mailman/options/samba


More information about the samba mailing list