Problems with net use statement via sshd on cygwin

Eric Hanchrow offby1@blarg.net
Tue Apr 8 02:30:00 GMT 2003


>>>>> "Igor" == Igor Pechtchanski <pechtcha@cs.nyu.edu> writes:

    Igor> AFAIK, "net use" requires interaction with the desktop.  If
    Igor> the "Allow service to interact with the desktop" box is
    Igor> unchecked for your sshd service, "net use" will not succeed.

I think that's only the case if you don't give it all the information
it needs, in particular the password.  But Richard's example appears
to provide all the information it needs.

I do wonder, however, about all those backslashes ... I only use at
most four in a row, like this:

    18:32:07 [erich@slop erich]$ ssh alpha
    erich@alpha's password: 
    Last login: Mon Apr  7 13:23:14 2003 from slop.vhcorp.com
    Fanfare!!!
    You are successfully logged in to this server!!!

    18:32:45 [erich@alpha erich]$ net use \* \\\\10.10.89.89\\d$ /u:user "password"
    Drive J: is now connected to \\10.10.89.89\d$.

    The command completed successfully.

    18:32:52 [erich@alpha erich]$ 

-- 
A hacker would consider being asked to write
        add x to y giving z
instead of
        z = x+y
as something between an insult to his intelligence and a sin against God.
        -- Paul Graham (http://paulgraham.com/popular.html)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list