From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25513 invoked by alias); 2 Dec 2018 11:20:13 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 25480 invoked by uid 89); 2 Dec 2018 11:20:09 -0000 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 Received: from forward102j.mail.yandex.net (HELO forward102j.mail.yandex.net) (5.45.198.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 02 Dec 2018 11:20:06 +0000 Received: from mxback5o.mail.yandex.net (mxback5o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1f]) by forward102j.mail.yandex.net (Yandex) with ESMTP id CC3F31E8224E; Sun, 2 Dec 2018 14:20:02 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback5o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Ikx1WkgeMP-K2wullGr; Sun, 02 Dec 2018 14:20:02 +0300 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= Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 3f37sLsWB6-K13mJu5l; Sun, 02 Dec 2018 14:20:01 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) 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 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Sun, 02 Dec 2018 11:09:37 -0000 Date: Sun, 02 Dec 2018 11:20:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <195471691.20181202140937@yandex.ru> To: john doe , 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 X-SW-Source: 2018-12/txt/msg00024.txt.bz2 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