X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=K7mIXamJdjGjUogP
	z1DC4ZlSG3HHzVZcFltCKhoSX6Wvklst3+e17kUCO8tFGEVMHdtWyuQpiWqeFCuM
	brXgzb9SA/A4V3wJ5N+3AqNEcl+mRxpzRPxCYBKqZDxaa/DEIge+lVnhPrSRLi3+
	JM25fO6YQZMe1BaEwU/2eeihU18=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=X56kSOByf0yvOHIR+M2T5s
	/wD2w=; b=oUbGOkt48U0gnNb0/AuajoIQbUJaUWihhrgtrDyoYSFghO11rpeKlO
	b4cNrWHEseUJygm3YlbU1zswllk5qvzyuL3ChlWsB4ka/wHrMRnnSoLo1w7qC+MX
	wWfyKSDiB2Bejzk9HEIktHGQJ93D2fHOdbAhhug84KljEwo1HWGJM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=BAYES_40,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=HX-Priority:Normal, H*r:Client, H*r:present, english
X-HELO: forward102j.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1543749602;	bh=GMFyQOgLfAZS0jt+ruZcWH/7bm5z4USrSlmzqa4w0cI=;	h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References;	b=AYWARsWG3hNoYuMkIeZM6a/NUHCFl0PXs/uTqbCPiuXmlTmDGaxb0WAXm2pVXDvLy	 tS8iLMOxrl42QfJ4tj6uRgzpXFcR1jLjKudw4lvLCKmJG9Gmh/QaztClP0fDKmVAvU	 H/1w3A9XVAi2igNUDeksoO9Fy5ONdrTybGQhFWxs=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1543749601;	bh=GMFyQOgLfAZS0jt+ruZcWH/7bm5z4USrSlmzqa4w0cI=;	h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References;	b=wYwMGHTUS7I1j8XKQS0ee00IH2PljqHpVl397T8mtl7VmowEE1wuHzUN7n+tWgMNV	 Vzr7ofNdo53peAiQblD3G7YA1zfGPh2TF4fGXR1JlHbYXepfSvl02wlySxcyfkelzx	 PNuT4Dh/XdkYVqyGePyymq9+ER7j4/2tPJ9JPGew=
Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Sun, 2 Dec 2018 14:09:37 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <195471691.20181202140937@yandex.ru>
To: john doe <johndoe65534@mail.com>, cygwin@cygwin.com
Subject: Re: Mount UNC path different user
In-Reply-To: <34c949b5-c499-8ff9-ae92-13249db2939b@mail.com>
References: <34c949b5-c499-8ff9-ae92-13249db2939b@mail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, john doe!

> How can I do the following on Cygwin?:


> /sbin/mount.cifs //server/share /mount-point -o user=different-user

> In other words, how can I mount a windows share with a specific user ?

You can't. Cygwin is not a kernel module, it's a userspace program, and Cygwin
mounts are bind mounts.

net use \\server\share /user:chosen\user *

Then you can use Cygwin mount to place the shared directory wherever you want.


-- 
With best regards,
Andrey Repin
Sunday, December 2, 2018 14:07:21

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

