From nobody@FreeBSD.org  Thu Oct 18 22:12:36 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DDB0A16A418
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Oct 2007 22:12:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id CC9DA13C468
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Oct 2007 22:12:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9IMCMi2029383
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Oct 2007 22:12:22 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9IMCMCc029382;
	Thu, 18 Oct 2007 22:12:22 GMT
	(envelope-from nobody)
Message-Id: <200710182212.l9IMCMCc029382@www.freebsd.org>
Date: Thu, 18 Oct 2007 22:12:22 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mount_smbfs and related options can't mount administration mounts (c$, d$, etc) on Windows PCs
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117315
>Category:       bin
>Synopsis:       [smbfs] mount_smbfs(8) and related options can't mount administration mounts (c$, d$, etc) on Windows PCs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 18 22:20:03 UTC 2007
>Closed-Date:    
>Last-Modified:  Sun Feb 03 22:21:32 UTC 2013
>Originator:     Garrett Cooper
>Release:        8-CURRENT
>Organization:
n/a
>Environment:
FreeBSD optimus 8.0-CURRENT FreeBSD 8.0-CURRENT #9: Thu Oct 18 12:43:56 PDT 2007     root@optimus:/usr/obj/usr/src/sys/OPTIMUS  i386
>Description:
An authentication error occurs when trying to mount SMB mounts with
dollar signs in them. These mounts are for administrators' uses only.

Standard mounts work properly.
>How-To-Repeat:
optimus# mount_smbfs '//yoshimitsu/c$' /mnt/smbfs/
Password:
mount_smbfs: unable to open connection: syserr = Authentication error

>Fix:


>Release-Note:
>Audit-Trail:

From: Yuri Pankov <yuri.pankov@gmail.com>
To: Garrett Cooper <yaneurabeya@gmail.com>, bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/117315: mount_smbfs and related options can't mount
	administration mounts (c$, d$, etc) on Windows PCs
Date: Fri, 19 Oct 2007 05:46:29 +0400

 FWIW, works here:
 
 darklight# mount_smbfs -Eutf-8:cp866 //yuri@lifebane/c$ /mnt
 Password:
 darklight# mount
 <snip>
 //YURI@LIFEBANE/C$ on /mnt (smbfs)
 
 Are you sure that you are using correct user credentials?
 
 FreeBSD darklight.org.ru 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Thu Oct 18 21:58:19
 MSD 2007     yuri@darklight.org.ru:/usr/obj/usr/src/sys/DARKLIGHT  amd64
 
 
 Yuri

From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: Garrett Cooper <yaneurabeya@gmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/117315: mount_smbfs and related options can't mount    
    administration mounts (c$, d$, etc) on Windows PCs
Date: Fri, 19 Oct 2007 08:16:19 +0400

 Garrett Cooper wrote:
 > Standard mounts work properly.
 >> How-To-Repeat:
 > optimus# mount_smbfs '//yoshimitsu/c$' /mnt/smbfs/
 > Password:
 > mount_smbfs: unable to open connection: syserr = Authentication error
 
 If you Windows share is in the Microsoft Domain you should try use -W 
 flag:
 
 # mount_smbfs -I 10.0.0.4 -E koi8-r:cp866 -W MYDOMAIN \
       //ElsukovAV@ELSUKOV-AV/C$ /mnt/smbfs
 
 In my case with our domain politics i should use -W MYDOMAIN
 and real computer name (ELSUKOV-AV). Only with this conditions i can
 mount SMB share from computer in the MS Domain. In another case i've
 got the same error.
 
 -- 
 WBR, Andrey V. Elsukov

From: "Garrett Cooper" <yanegomi@gmail.com>
To: bug-followup@FreeBSD.org, gcooper@FreeBSD.org
Cc:  
Subject: Re: bin/117315: [smbfs] mount_smbfs(8) and related options can't mount administration mounts (c$, d$, etc) on Windows PCs
Date: Mon, 9 Jun 2008 18:39:12 -0700

 ------=_Part_15545_19618714.1213061952086
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 I can't seem to reproduce this issue anymore, pending the fact that my
 kernel now hardlocks after I execute the command.
 Will submit a PR for that little issue ... pending feedback from some other
 folks on current@.
 -Garrett
 
 ------=_Part_15545_19618714.1213061952086--

From: "Garrett Cooper" <yanefbsd@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/117315: [smbfs] mount_smbfs(8) and related options can't mount administration mounts (c$, d$, etc) on Windows PCs
Date: Mon, 9 Jun 2008 20:24:37 -0700

 Don't kill this PR yet. The issue still occurs, but only when I use
 administrative mounts. The fact that it now hardlocks on me is quite
 annoying >:(...
 
 I'm going to attempt to reproduce this issue from my 7.0 RELEASE VM.
 
 -Garrett

From: "Garrett Cooper" <yanefbsd@gmail.com>
To: bug-followup@FreeBSD.org, gcooper@FreeBSD.org
Cc:  
Subject: Re: bin/117315: [smbfs] mount_smbfs(8) and related options can't mount administration mounts (c$, d$, etc) on Windows PCs
Date: Tue, 10 Jun 2008 09:35:08 -0700

 Reproducible using an 8-CURRENT VM on my Macbook compiled with the
 same options as my desktop (and with less cruft / zero ports).
 Replacing SCHED_ULE with SCHED_4BSD.
 -Garrett

From: "Garrett Cooper" <gcooper@FreeBSD.org>
To: "Garrett Cooper" <yanefbsd@gmail.com>
Cc: bug-followup@freebsd.org
Subject: Re: bin/117315: [smbfs] mount_smbfs(8) and related options can't mount administration mounts (c$, d$, etc) on Windows PCs
Date: Tue, 10 Jun 2008 09:41:51 -0700

 ------=_Part_19118_13763649.1213116111474
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 On Tue, Jun 10, 2008 at 9:35 AM, Garrett Cooper <yaneurabeya@gmail.com> wrote:
 
 > Reproducible using an 8-CURRENT VM on my Macbook compiled with the
 > same options as my desktop (and with less cruft / zero ports).
 > Replacing SCHED_ULE with SCHED_4BSD.
 > -Garrett
 >
 
 Issue occurs with SCHED_4BSD as well =(.
 -Garrett
 
 ------=_Part_19118_13763649.1213116111474--
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 18 04:20:33 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117315 

From: Tom Uffner <tom@uffner.com>
To: bug-followup@FreeBSD.org, gcooper@FreeBSD.org
Cc:  
Subject: Re: bin/117315: [smbfs] mount_smbfs(8) and related options can't
 mount administration mounts (c$, d$, etc) on Windows PCs
Date: Thu, 29 Oct 2009 18:17:24 -0400

 I have reproduced this recently, but it seems to be a change in the
 way Windows behaves and not a bug.
 
 Microsoft seems to have finally realized that the {drive}$ shares are
 a huge security hole and decided that only members of the Administrators
 group are allowed to mount them.
>Unformatted:
