From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69860 invoked by alias); 2 Dec 2018 16:04:02 -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 69820 invoked by uid 89); 2 Dec 2018 16:04:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Mount, chosen, H*F:D*mail.com X-HELO: mout.gmx.com Received: from mout.gmx.com (HELO mout.gmx.com) (74.208.4.200) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 02 Dec 2018 16:03:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1543766636; bh=QqFzWIBx/CaCru2jfCFYc7Xdeiy1wEx58SmGSBlebs0=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=chv/qOEsitqGlM62yVVYBbaeULTSu25a9Qwzo32+5GEdNNHSrsX97uChedq4UQtJf dig/+AQVXZFbz8yZmxSW6Fb/gifqvLrKXPipJsfuTrCiWoweP7n4zh0Mk6h9R7+M4G W+mEPFWZxbmbVUyzQr8ZYaheG9YxyXvmNQBUAMNA= X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79 Received: from johndoe65534.mail.com ([213.214.34.30]) by mail.gmx.com (mrgmxus001 [74.208.5.15]) with ESMTPSA (Nemesis) id 0MEnSm-1gjUeH3FwA-00G4rB for ; Sun, 02 Dec 2018 17:03:56 +0100 Subject: Re: Mount UNC path different user To: cygwin@cygwin.com References: <34c949b5-c499-8ff9-ae92-13249db2939b@mail.com> <195471691.20181202140937@yandex.ru> From: john doe Message-ID: <19c87327-1132-fa5c-7338-8ab6aefa3820@mail.com> Date: Sun, 02 Dec 2018 16:04:00 -0000 MIME-Version: 1.0 In-Reply-To: <195471691.20181202140937@yandex.ru> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00027.txt.bz2 On 12/2/2018 12:09 PM, Andrey Repin wrote: > 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. > Thank you, looks like I forgot that Cygwin is on Windows! :) -- John Doe -- 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