delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/12/02/11:04:13

X-Recipient: archive-cygwin AT delorie DOT 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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=yq2ZViI/0F9v8zGf
RRL9xQYJINpet7Jzx/gVlO0UclUC/hbvSo66Z4VXrmeCBbbtNdzsSqvaUZ3cHZA4
eVY7hiLWQLsFde4smi+84TOeHyAxarmdZm5lWZHU5efM1OyUFUDpf3NXnt69m1j8
gRndPwd9yAxz6yEHtrwIklGSYRI=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=05Aar0dW7oaufKD5/aJnSi
v6pA4=; b=noIFL4t7l7QwoN5FKyTkCGhgA55gs1vfjcsu/a9OU/QWWTXaDvAPSj
2P98kvyuFPmSg5Ojo6miepFmwN1e04D76RgaFZMqpnADmn2RMCuH8WuFuiBNgy5Y
yvi1dd/q1ou3+k6Vi/4dPZEHQXNLsm0gX0U3qWo1638LdL79bBxGw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
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
Subject: Re: Mount UNC path different user
To: cygwin AT cygwin DOT com
References: <34c949b5-c499-8ff9-ae92-13249db2939b AT mail DOT com> <195471691 DOT 20181202140937 AT yandex DOT ru>
From: john doe <johndoe65534 AT mail DOT com>
Message-ID: <19c87327-1132-fa5c-7338-8ab6aefa3820@mail.com>
Date: Sun, 2 Dec 2018 17:03:53 +0100
MIME-Version: 1.0
In-Reply-To: <195471691.20181202140937@yandex.ru>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019