From owner-freebsd-questions@freebsd.org Tue Oct 22 15:02:28 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 F297B15CECD for ; Tue, 22 Oct 2019 15:02:28 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46yGvS4s2bz3Nhy for ; Tue, 22 Oct 2019 15:02:28 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.12.116.99]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPA (Nemesis) id 1N5VTm-1hyOWe1HVy-016tvH for ; Tue, 22 Oct 2019 17:02:26 +0200 Date: Tue, 22 Oct 2019 17:02:25 +0200 From: Polytropon To: freebsd-questions@freebsd.org Subject: Re: Using '@' in user name with "mount_smbfs" Message-Id: <20191022170225.581cf496.freebsd@edvax.de> In-Reply-To: <20191022094301.0000716b@seibercom.net> References: <20191022094301.0000716b@seibercom.net> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:rDhAeZ9NkjM0gseOoyK5FoVNPWn7sftEIH8WXXCWWUSdgXHCsf8 TGz/sr/Hvb5KIenuD9yAqXCQDlhDLa58cdAeao5lzI6ZXLQCiMUXyhxOQTyXqsWuhEaUKFl O0H1M7HnhrvaeGeIp9APQgc+gxmWLAXMld50woD8jU6mfFK1einzEL3K6T3VH98RozQu4uP UMlVLbvEDRk9SNflKSiEw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:gNVJ13g78eo=:RBz1z6YhTRSHinMXcGLOAl JU120uJiBuhTTTOiD84+Jd1bRmVenrRcUxvRGj1g4t8zsbaPv4BXKMG89KnoUk0xeaIyBKeHW +UQqivt3/a0okVLog76Ek2HhCZ5dZ61FvfpWBEbYBMRZhp+qvElAH4GILXBBEkvqLFjasVJzE i/e/vkbiUqAoZznCtLmWLHHZSPeySp2DTZJYj3tOp0hL6PP3FxAWnMWosdiHe9AVtvRdyOqTi XUf1243JoaW+u5M5lxp4sExeE75VtzspgVel+xoFlx63JucyL43RNysTL/KkW34YcOudUhkI4 Euvo65ZSayWLOYLOyJcvKXw5LprkcWHlrZjRkm2uNIVSUZ/MIZjVH6hz7l8IiUWpJanVEZ4gV PVfUNqf1pvIG0zrvvHxmOAXDtG3J1zcEUU4yuhHGWhIPWtgluY+Ywxvxv6CfBrvU425cS1HhS nqTz+LUYrWyXVEEDmAaTTkH6MVGDiwAro0nMlbFmX6ND/QTg1fc2mUxegoJO1xfd3h8F5c5WL ON6FqmW39Rv4YkKk9p5J1kdH2A7zd6Gi9+iYTlIFkv7zAdDoalqdI4Mc2xb9+CeeFEX7BZLfg AX5JMvf0n6QJhuv7tAGsaYWxrah285GbZfiDdt26FE1R4l2ShlBSggx0RCHg6OmC9BCgDNNIX +BmF+IW4+3QYj2FQBpyCQJ34SPKz84+a86LxbN9NhymFWnVRP6rL29HIbVTIYNG4lT/3O3Y0E AUihYsBU9/bHkkmXNWh75ouKUtZYHt3XQgRGD4pnvXGLcpGW/gV7OLugU4PzCZewMu1vz1Djc gn3/+FkXiu/UsV6KywuMSOcZiT8eo/9cGaFeoAqove1HwXqbf59qfkHKEdTSDHZ+k6V0zxFoL JhZ/+7HYYCT2m0lgBaRH8WeyAsCUok8lIu8bKsywE= X-Rspamd-Queue-Id: 46yGvS4s2bz3Nhy X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.98 / 15.00]; NEURAL_HAM_MEDIUM(-0.98)[-0.985,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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 15:02:29 -0000 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. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...