From owner-freebsd-questions@freebsd.org Tue Oct 22 18:27:38 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 9A9A6161998 for ; Tue, 22 Oct 2019 18:27:38 +0000 (UTC) (envelope-from jerry@seibercom.net) Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) (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 46yMS86GbRz47Pw for ; Tue, 22 Oct 2019 18:27:36 +0000 (UTC) (envelope-from jerry@seibercom.net) Received: by mail-qt1-x842.google.com with SMTP id w14so28208662qto.9 for ; Tue, 22 Oct 2019 11:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seibercom.net; s=google; h=date:from:to:subject:message-id:in-reply-to:references:reply-to :organization:mime-version; bh=ITyLfSAVOKUiO8u1CtxNZNe16Hg1fs9peTqF65SK/U8=; b=mbTJN1edN/GpEAo7whyWkhb1Y7ogGkhNl1vyLgUpYOIZ7EXpbDiIHSEPopQrYU18cn k7dS8VmFnAoSdD4VISqHK6krsa3JXVceyoptidTA3v9CNaH4iXDganhs9nrzXDZlPFNs XVymwyhYOYm+oqkvr2aoPzP5ArTZqTJna4/5M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:reply-to:organization:mime-version; bh=ITyLfSAVOKUiO8u1CtxNZNe16Hg1fs9peTqF65SK/U8=; b=leLa4SSRSQwtGB+AMk9f7CguzygABFbt//hmsO7BkFxXWIM08S44QdkJzQOdVjz0Jw FD8h2x0KZHPUfTiBcZSSorBtCHs7Qb7i7BPq5GtkNmwNozzqD0EXzSTVnyVEscYsw4Da 2i/8ZHcC375mk9QsHbhiGnJiLVrzaC4k7dGOow2shGiAOdvcbqNdv98XiAkn9U3ZCJu5 Hvq3JNKAjdy6FFHYS3SJe5C4i9HA5NaUruQ20Zp0VYCx5PEAIPqBD835cmC0O9pY6W9v jtCS/aPgUQRSWqy4ZzpYgsthm06/5HI4LRnjCd6R89OCaG8Bc4lmYbXQ3FAYe4P4747l gmDg== X-Gm-Message-State: APjAAAViZNwrL9te1alSXzGRB/3a56mMFP0i8xxVD+Jhi7tuwnXEYgAA Bi7gU2nPacN0/YW0nGZ/C+DTx+Fk/Ug= X-Google-Smtp-Source: APXvYqzFNDTOKKbVSbmnWybiuPbbqCj9Z1aDjyvOyKqlsiRtjOUnItNCsreg5vdRNiqEFoc4IhGRQQ== X-Received: by 2002:a0c:b719:: with SMTP id t25mr4701364qvd.32.1571768855199; Tue, 22 Oct 2019 11:27:35 -0700 (PDT) Received: from scorpio.seibercom.net (cpe-174-109-225-250.nc.res.rr.com. [174.109.225.250]) by smtp.gmail.com with ESMTPSA id z5sm10813211qtb.49.2019.10.22.11.27.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 11:27:34 -0700 (PDT) Received: from localhost (HP-ENVY [192.168.0.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jerry@seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id 46yMS502Vtz4kMk for ; Tue, 22 Oct 2019 14:27:32 -0400 (EDT) Date: Tue, 22 Oct 2019 14:27:18 -0400 From: Jerry To: freebsd-questions@freebsd.org Subject: Re: Using '@' in user name with "mount_smbfs" Message-ID: <20191022142718.00005069@seibercom.net> In-Reply-To: <20191022170225.581cf496.freebsd@edvax.de> References: <20191022094301.0000716b@seibercom.net> <20191022170225.581cf496.freebsd@edvax.de> Reply-To: freebsd-questions@freebsd.org Organization: seibercom.net X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/UjesBSH4SGPS649ABzui4f9"; protocol="application/pgp-signature" X-Rspamd-Queue-Id: 46yMS86GbRz47Pw X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=seibercom.net header.s=google header.b=mbTJN1ed; dmarc=none; spf=pass (mx1.freebsd.org: domain of jerry@seibercom.net designates 2607:f8b0:4864:20::842 as permitted sender) smtp.mailfrom=jerry@seibercom.net X-Spamd-Result: default: False [-0.07 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd-questions@freebsd.org]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_NONE(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[seibercom.net:+]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-0.47)[ip: (2.18), ipnet: 2607:f8b0::/32(-2.43), asn: 15169(-2.07), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RECEIVED_SPAMHAUS_PBL(0.00)[250.225.109.174.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; REPLYTO_EQ_TO_ADDR(5.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[seibercom.net:s=google]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[seibercom.net]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2.4.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] 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:27:38 -0000 --Sig_/UjesBSH4SGPS649ABzui4f9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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/ >>=20 >> Assuming a user name of: user@domain.com, how would I get it accepted >> by the mount_smbfs command. >>=20 >> /usr/sbin/mount_smbfs -N -f 0644 -U me -W WORKGROUP >> //user@domain.com@WIN-PC/Share $HOME/Win-Pictures >>=20 >> I have tried both single and double quotation marks, but that fails. >> =20 > >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=3D12345 > >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. --=20 Jerry --Sig_/UjesBSH4SGPS649ABzui4f9 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIQb/tTwl6I1ueEVtOHMGOIfexWQFAl2vSgcACgkQOHMGOIfe xWTHqAgAhKEkG7u2XR/JZzIVN72t+J2mWBWW0+DTwQ9a9Ho9VYVPSk+/Helcgoza YxJqT8LXAz2t4UzO8bSW3FifILKHbiqyEwnhcgtMVNa87zsbP9W3CzlOCEY8DxbU G4sraG/y1ui14Z+yLkJKdAhmup+8/+bNH7t34Rm0Ta56VT81QOidWcWEXfTSJ0Ca Mp3/FgWSqoz1FRbI/FMQq+6g8t82SKFttKjjc9Rz//T5ZxxRrnVHoYhqc5N2bXli ihFVyacw/MHbWbzEt7BNdojbHStkqCS1p400tZGlvNi933uxRWtTrywjd6t05seC /oDz8iZL/Xs0MtmrBo97zEr4SqRitQ== =etgC -----END PGP SIGNATURE----- --Sig_/UjesBSH4SGPS649ABzui4f9--