From: Andrey Repin <anrdaemon@yandex.ru>
To: john doe <johndoe65534@mail.com>, cygwin@cygwin.com
Subject: Re: Mount UNC path different user
Date: Sun, 02 Dec 2018 11:20:00 -0000 [thread overview]
Message-ID: <195471691.20181202140937@yandex.ru> (raw)
In-Reply-To: <34c949b5-c499-8ff9-ae92-13249db2939b@mail.com>
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
next prev parent reply other threads:[~2018-12-02 11:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-02 9:37 john doe
2018-12-02 11:20 ` Andrey Repin [this message]
2018-12-02 16:04 ` john doe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=195471691.20181202140937@yandex.ru \
--to=anrdaemon@yandex.ru \
--cc=cygwin@cygwin.com \
--cc=johndoe65534@mail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).