Mail Archives: cygwin/2005/09/22/13:13:10
----Original Message----
>From: Igor Pechtchanski
>Sent: 22 September 2005 17:40
>> (Or you can omit the password and will be prompted to enter it at the
>> keyboard).
>
> Actually, you can't omit it, you have to specify '*' as the password
> (i.e.,
>
> net use '\\server\share' '/U:DOMAIN\UserName' '*'
>
> will prompt for the password).
You didn't actually _try_ this before attempting to correct me, did you?
I do this kind of thing a dozen times a week, specifically because I want to
connect to a share with a different user ID than what I'm logged into the
domain under. Trust me: if it didn't work, I would have noticed.
dk AT mace ~/dosfstools/dosfstools-2.11/mkdosfs> net use \\\\ulupica\\SCRATCH
/U:ARTIMI_CAM\\Administrator
The password or user name is invalid for \\ulupica\SCRATCH.
Enter the password for 'ARTIMI_CAM\Administrator' to connect to 'ulupica':
The command completed successfully.
dk AT mace ~/dosfstools/dosfstools-2.11/mkdosfs> whoami
dk
LOOK MA! NO ASTERISK!! :)
[ If you don't supply an asterisk or a password, it attempts to use your
own login p/w, and then prompts you when that fails. If your own login p/w
happens to match the one of the user you're trying to connect to the
resource as, hey, you just saved yourself some typing! ]
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -