[Samba] can't write Samba share as anonymous

Rowland Penny rpenny at samba.org
Wed Jan 23 16:55:24 UTC 2019


On Wed, 23 Jan 2019 17:40:33 +0100
Andrea Cucciarre' <acucciarre at cloudian.com> wrote:

> I'm not sure I have understood, I'm mounting the share as "urca"
> user, which is not a known user.

Yes, but that isn't who is connecting, that is who is mounting the
share.
You should be mounting the share as I known user.

> Although I'm setting smb.conf so that for guest user it uses the 
> privileges of the known user "andrea"

This is where it goes really pear-shaped, you have made the guest user
'andrea' (who presumably has a password and isn't 'urca'), this is
somewhat akin to using 'valid user = andrea' in the share and you
cannot use 'valid user' with 'guest ok = yes'

> Could you please advice on what I should set for "guest account" in 
> smb.conf?

Just remove the 'guest account' line, it will then use your OS's
guest user, probably 'nobody'

Just mount the directory, that you want to share, with a known user
and then connect to the share, via Samba, with a user that is unknown
to Samba or the OS.

Rowland
  



More information about the samba mailing list