From owner-freebsd-questions@freebsd.org Wed Apr 11 21:49:47 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82DC7F945DF for ; Wed, 11 Apr 2018 21:49:47 +0000 (UTC) (envelope-from andrei693@gmail.com) Received: from mail-pl0-x22d.google.com (mail-pl0-x22d.google.com [IPv6:2607:f8b0:400e:c01::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0888C69A9B for ; Wed, 11 Apr 2018 21:49:47 +0000 (UTC) (envelope-from andrei693@gmail.com) Received: by mail-pl0-x22d.google.com with SMTP id c7-v6so2368288plr.5 for ; Wed, 11 Apr 2018 14:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=vQ0+CXwf1hzp7zhh3sCuqwCUslrZ/eh1Qy6pMg6zg3w=; b=XIMdrjN9JfebRH28cgkpIKUGek+ujaQtl3/hAmlzGUGPLuhoPW390Z2yi9umUU/6Xb EATeSpAuHzpJOKThRVeBcTZ2FwyVZb/zqgwAPJDTNrvtXw2XPIIwVeD61Onf7H/n8N+c xajQzwYP8aylFoAxVxcepyempk4zFrKgrg5NErXfNfIU4IRACvSaG+XgsifG8jSxGFwN H/5w5s8JyNEupz3woyPSUDcgmV74c8ciXajMP6Em5BwG6Ssc7gRFA2c/utjYC3l3YtNk p/ikmEwR+eoH87lLogdt8MHhRUtUCDIRFQMimT+MZYtcgjS8k3CjMUc52ttxCH/LFv/+ 3MZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vQ0+CXwf1hzp7zhh3sCuqwCUslrZ/eh1Qy6pMg6zg3w=; b=VnUrk2Gxrj8uX8jS0YjoMfegwPV1MrZq1OdaBpqc5i+SeM/57s492VgPpDZO3xlNYw TApPxKcYl3uAQMLu+CI0I8EFTFEeMDOl8PU8oGqhL1aTOpbDDdnZLYUSbkL7XICMijJv JuuIgzvvCpgYVeRtR6plnlf1ApXmweyF/XTLtNs9e4snfQ/jnsBvGtHI9JZTTbYWR3Hl VenSHHyP0/0Al0laiJmPlodBoVu4d5cJFydLVeYF6PM9v/Wm3XO/SUtGnAyaorfWNMzF ZqF9zs63lpFx0Ri5Fnj3/jDYUhXOG0+LP/ZdCCtjyDJrv6334wiFF2T5f7re9PbKBTDl kJ4A== X-Gm-Message-State: ALQs6tCRDpO4kmHVv7a7X4UW0MXpOvm5eKuzO728EItZSGVs5xxWDWt5 XfAzha60r+rXD+KB54NTEkKQ5uaF X-Google-Smtp-Source: AIpwx49xh6GGsCT4OD95m2fL+P3UlGZls+6g2pk3Du2nPLpIxOC826lY47mSN2bYjJZWMUvWLnwAhw== X-Received: by 2002:a17:902:bd03:: with SMTP id p3-v6mr7006825pls.236.1523483385921; Wed, 11 Apr 2018 14:49:45 -0700 (PDT) Received: from [10.0.11.188] ([84.80.170.191]) by smtp.googlemail.com with ESMTPSA id a10sm4108165pfo.131.2018.04.11.14.49.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 14:49:45 -0700 (PDT) Subject: Re: Samba on FreeBSD - no AD, just a home network To: freebsd-questions@freebsd.org References: From: Andrei Brezan Message-ID: <198cd0ae-d851-5514-803e-4b50bdcbfb92@gmail.com> Date: Wed, 11 Apr 2018 23:49:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2018 21:49:47 -0000 On 11/04/18 22:00, Richard P Mackerras wrote: > Hi, Hi, > > I have been having trouble with SAMBA on FreeBSD. > I have installed FreeBSD 11.1 and installed SAMBA. It is running, SAMBA > says it is the master browser for my workgroup. > > This is a home network. No AD. > All I want is for a few W7 and W10 computers and a Mac (iPad/iPhone as > well?) to be able to read and write files to the SMB server. > > I cannot get it to authenticate a user. > > What is the process I should be following please? > Which type of authentication should I use, there seem to be a couple of > choices. > I don't want to expose my files if anyone hacks my wifi but I don't want to > make life difficult for myself. > > The windows computers are using the HomeGroup thing rather than a workgroup. > > The FreeBSD guide just seems to be rubbish and out of date. Most > discussions seem to centre around AD. > https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-samba.html And you can use "smbpasswd -a username" or "pdbedit -a username" to add the users to tbdsam. "pdbedit -L" to list users. > Is there anything I need to do to the Windows computers? If your windows boxes are Home edition they might not want to use the workgroup you're creating with Samba, don't have any around to test, works fine with Win7 Pro clients and samba48. > > Cheers, > > Richard -- Andrei