Mount UNC path different user

Andrey Repin anrdaemon@yandex.ru
Sun Dec 2 11:20:00 GMT 2018


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



More information about the Cygwin mailing list