Discussion:
Mount UNC path different user
(too old to reply)
john doe
2018-12-02 09:37:46 UTC
Permalink
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
Andrey Repin
2018-12-02 11:09:37 UTC
Permalink
Greetings, john doe!
Post by john doe
/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
john doe
2018-12-02 16:03:53 UTC
Permalink
Post by Andrey Repin
Greetings, john doe!
Post by john doe
/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
Loading...