This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: flaky disk share access


Hi Igor, All,

thanks for the prompt reply. Unfortunately, 'net use' does _not_ work.
-frown-

...I brought up three windows on the box, a Cygwin Bash session, an SSH
session (F-Secure client), and a "dos command prompt". The Bash session
and the dos prompt window work identically, but the ssh session doesn't
work at all. Since this is the first I've used the 'net' command, I'm not
entirely sure what to expect from it, but it was frustrating that I
couldn't even get it to spit out help on the ssh session, though help
worked fine on the Bash and dos prompt windows.

>From the ssh session, 'net use' returns:

$ net use
New connections will be remembered.


Status       Local     Remote                    Network

-------------------------------------------------------------------------------
Unavailable  K:        \\fs1\Commons             Microsoft Windows Network
Unavailable  S:        \\fs1\software            Microsoft Windows Network
Unavailable  U:        \\fs1\users               Microsoft Windows Network
The command completed successfully.

...Whereas in both of the other sessions, the Status is listed as "OK".

When I try other commands, there seems to be some kind of terminal
interaction problem. For example, in the following example, I only entered
the command at the system prompt, and it returned me to the system prompt
without pausing for my interaction:

$ net use k: rtroy
k: has a remembered connection to \\fs1\Commons. Do you
want to overwrite the remembered connection? (Y/N) [Y]:
No valid response was provided.

$
In other cases, it just runs silently, but has no apparent effect, for
example, the following just return to the system prompt:

$ net use /user:rtroy

$ net use * /user:rtroy

...Since I've never successfully used 'net use', I'm still struggling a
little with the syntax, but that asside, 'net' isn't having a normal user
interation dialogue with me, I don't think.

Any further comments greatly appreciated.

Richard

-- 
Richard Troy, Chief Scientist
Science Tools Corporation
rtroy@ScienceTools.com, 510-567-9957, http://ScienceTools.com/

On Thu, 10 Jul 2003, Igor Pechtchanski wrote:

> Date: Thu, 10 Jul 2003 14:02:47 -0400 (EDT)
> From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
> Reply-To: cygwin@cygwin.com
> To: Richard Troy <rtroy@sciencetools.com>
> Cc: cygwin@cygwin.com
> Subject: Re: flaky disk share access
>
> On Thu, 10 Jul 2003, Richard Troy wrote:
>
> > Hi All,
> >
> > When I ssh in to my cygwin/W2000 system, I don't reliably have access to
> > the disk shares, even if I log in as the same user who's "logged in on the
> > console." The shares in question are served by Samba and are reconnected
> > at "console" login every time with password authentication. They are also
> > system mounted within cygwin and always are available from the default
> > cygwin bash shell. This works as solid as a rock on my Windows NT systems
> > but on Windows 2000 it sometimes it works, and most of the time not. It
> > seems as though it's related to how long it takes me to log in after the
> > system has rebooted, but that could be a red-herring. I can't get it to
> > work often enough to really figure out why/how it sometimes works and
> > sometimes doesn't. Anybody got any ideas?
> >
> > In a related question, is it possible to have an SSH user authenticate
> > themselves for their own private shares? If so, please point me in the
> > right direction! ...This would be damned handy, privilege wise, for
> > example, what about logging into a box that hasn't got anybody logged in
> > at the console?
> >
> > Thanks much,
> > Richard
> >
> > P.S. "cygcheck version 1.32", "Compiled on Mar 18, 2003" ... RT
>
> Richard,
>
> The "net use" command should work.  You might need to give it the
> "/user:<username>" switch, and provide a password as well.
> 	Igor
> P.S. That was the output of "cygcheck -svr" as an attachment, not
> "cygcheck --version". ;-)
>


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]