* Mount UNC path different user @ 2018-12-02 9:37 john doe 2018-12-02 11:20 ` Andrey Repin 0 siblings, 1 reply; 3+ messages in thread From: john doe @ 2018-12-02 9:37 UTC (permalink / raw) To: cygwin Hi, 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 ? -- 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Mount UNC path different user 2018-12-02 9:37 Mount UNC path different user john doe @ 2018-12-02 11:20 ` Andrey Repin 2018-12-02 16:04 ` john doe 0 siblings, 1 reply; 3+ messages in thread From: Andrey Repin @ 2018-12-02 11:20 UTC (permalink / raw) To: john doe, cygwin 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Mount UNC path different user 2018-12-02 11:20 ` Andrey Repin @ 2018-12-02 16:04 ` john doe 0 siblings, 0 replies; 3+ messages in thread From: john doe @ 2018-12-02 16:04 UTC (permalink / raw) To: cygwin 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-02 16:04 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-12-02 9:37 Mount UNC path different user john doe 2018-12-02 11:20 ` Andrey Repin 2018-12-02 16:04 ` john doe
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).