From owner-freebsd-questions@freebsd.org Tue Oct 22 18:49:21 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 559A51623F0 for ; Tue, 22 Oct 2019 18:49:21 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46yMxF1gx4z48y5 for ; Tue, 22 Oct 2019 18:49:20 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-io1-xd2a.google.com with SMTP id c25so21686344iot.12 for ; Tue, 22 Oct 2019 11:49:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=GS+MaPkUDE6DYqpcleRVX3y/WdyaCVZI27rDK2OgPE4=; b=LbRCcfDNvOIWZfL+AbtX6W3p38PIsHL1cyBPKO3SG3KZ2kWAtUwB12tD6klnq772gD y5np1EbHeF1vVAq/F+Zs4MQV6GB0N41c4DEUoM8aphFPStyTSTuoOKLxonknt02/NoLS FZDschNug/aZGumHq2ikULQPWtt+LJxxjB+IM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=GS+MaPkUDE6DYqpcleRVX3y/WdyaCVZI27rDK2OgPE4=; b=N9OdhkXo766NDHLWM+wfjDNuJCHuFz2OWPb3soohRi1bFBgTPFavO7gG01zlC0dNNH 9ifOMlNscqE0sTZ/qpX2mEyM+GLkilyPIhPDYUFOC26z86NPo362TRu2/GbHnm/72vG2 GjmZrjgvicAjJfbQjbVhYhhpJ99nfMyTyU9P0taNOuZl2BMb1fDScIbd2rjURL8NvK5C zxHli93Xyo/+GKc39CMVkf9QplCfnyLXtVMAmFqv51Ngh7t68TUk03Mau4XtoeiKmImH XSalWhEe8TL2D5+KdkUgif8kUBJg5Bukl84UIYohJ0oVxpvRQ+3Amepp8qaaA2BX+Ox2 J1GA== X-Gm-Message-State: APjAAAUQteOqqCP6KzO1Ga+RNTs6IA3bssqIBuNVlk/mAqqoiUZaEHp7 BFk3zFpeoL2D/RqEECDCeX4nw9HeGHb4yUNBE7bGX3P4 X-Google-Smtp-Source: APXvYqyPw044Ve8zstZIPnJPmijYRnMyMKQqkHnolIKhxuAqMkIEgANIz5S5jQRJmkZzo+soOM/uESY4qKCeaL588GM= X-Received: by 2002:a05:6602:248e:: with SMTP id g14mr140111ioe.6.1571770159633; Tue, 22 Oct 2019 11:49:19 -0700 (PDT) MIME-Version: 1.0 References: <20191022094301.0000716b@seibercom.net> <20191022170225.581cf496.freebsd@edvax.de> <20191022142718.00005069@seibercom.net> In-Reply-To: <20191022142718.00005069@seibercom.net> From: Mario Lobo Date: Tue, 22 Oct 2019 15:47:42 -0300 Message-ID: Subject: Re: Using '@' in user name with "mount_smbfs" To: "freebsd-questions@freebsd.org" X-Rspamd-Queue-Id: 46yMxF1gx4z48y5 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Oct 2019 18:49:21 -0000 On Tue, Oct 22, 2019 at 3:27 PM Jerry wrote: > On Tue, 22 Oct 2019 17:02:25 +0200, Polytropon commented: > >On Tue, 22 Oct 2019 09:43:01 -0400, Jerry wrote: > >> I am stumped as to how I can accomplish using a user name with an '@' > >> in it with the "mount_smbfs" command/ > >> > >> Assuming a user name of: user@domain.com, how would I get it accepted > >> by the mount_smbfs command. > >> > >> /usr/sbin/mount_smbfs -N -f 0644 -U me -W WORKGROUP > >> //user@domain.com@WIN-PC/Share $HOME/Win-Pictures > >> > >> I have tried both single and double quotation marks, but that fails. > >> > > > >Did you try using /etc/nsbm.conf for worgroup, username, and PC name > >instead of providing it directly on the command line? If I remember > >correctly, something like this (not tested!) should work: > > > > [WIN-PC:user@domain.com] > > password=12345 > > > >The format is ::, with the last two entries > >being optional. See "man 5 nsmb.conf" as well as the comment header > >of /etc/nsmb.conf for details. > > > >You can then use: > > > > mount_smbfs //WIN-PC/Share $HOME/Win-Pictures > > > >Similarly, you can use a rule derived from this command in /etc/fstab > >in case you need this mount command more than once. > > > >Memory fragment from long time ago... ;-) > > > > > > > >PS. Common suggestion is to use "example.com" (instead of "domain.com") > > as a placeholder. > > That isn't working either. I found a post on Google that stated it will > never work due to a bug in the program. In any case, I have found a > work-a-round. > > -- > Jerry > This may not have anything to do with it but remember that the windows share MUST run SMB v1 for mount_smbfs to work. -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]