Re: Access to Network Drive under ssh

2008-03-06 Thread Larry Hall (Cygwin)
On 02/29/2008, Dang, Robin wrote: I managed to get the posted solution partially working and it is exactly what I was looking for. I only cannot get the shell script to run as a service. The service will attempt to start then fail, but it is really running. Does "exec" fork a process? Yes, it

RE: Access to Network Drive under ssh

2008-02-29 Thread Dang, Robin
lto:[EMAIL PROTECTED] Sent: Thursday, February 28, 2008 12:25 PM To: cygwin@cygwin.com Subject: Re: Access to Network Drive under ssh Dang, Robin wrote: > http://cygwin.com/ml/cygwin/2006-06/msg00820.html > > I am having the same problems as in the discussion and would appreciate > any

Re: Access to Network Drive under ssh

2008-02-28 Thread Larry Hall (Cygwin)
Dang, Robin wrote: http://cygwin.com/ml/cygwin/2006-06/msg00820.html I am having the same problems as in the discussion and would appreciate any help to resolve it. After I log into a ssh session, the drives are not automatically mapped and typing 'net use' gives me unavailable. I can map them m

Re: Access to Network Drive under ssh

2008-02-28 Thread Dang, Robin
http://cygwin.com/ml/cygwin/2006-06/msg00820.html I am having the same problems as in the discussion and would appreciate any help to resolve it. After I log into a ssh session, the drives are not automatically mapped and typing 'net use' gives me unavailable. I can map them manually, but I nee

Re: Access to Network Drive under ssh

2006-06-30 Thread David Greene
Richard Foulk wrote: Those drive letters just get in the way. Don't use them. But the whole point of my initial message is that I need the drive letters because djgpp doesn't understand network path names. -Dave -- Unsubscribe info: http://cygwin.com/ml/#unsubs

Re: Access to Network Drive under ssh

2006-06-30 Thread Corinna Vinschen
On Jun 30 11:38, Corinna Vinschen wrote: > On Jun 29 22:46, Richard Foulk wrote: > > I've written my own mount command for Cygwin in Perl. One thing to > > be aware of is that drive letters aren't necessary with Cygwin. > > > > You can't say: `cd \\xyz\c$' with Windows cmd.exe. > > > > You *can*

Re: Access to Network Drive under ssh

2006-06-30 Thread Corinna Vinschen
On Jun 29 22:46, Richard Foulk wrote: > I've written my own mount command for Cygwin in Perl. One thing to > be aware of is that drive letters aren't necessary with Cygwin. > > You can't say: `cd \\xyz\c$' with Windows cmd.exe. > > You *can* say things like: `cd //xyz/c\$' in Cygwin. This clean

Re: Access to Network Drive under ssh

2006-06-30 Thread Richard Foulk
> David Greene wrote: > > mwoehlke wrote: > >> You need to first do: > >> net use /delete h: > >> > >> ...so that you don't get prompted > > > > Now I get this, which is what happened before I started > > sshd as dag. Except I can still cd to //samba-drive/dag: > > > > $ net use H: \\samba-drive

Re: Access to Network Drive under ssh

2006-06-29 Thread Igor Peshansky
On Thu, 29 Jun 2006, David Greene wrote: > mwoehlke wrote: > > > You need to first do: > > net use /delete h: > > > > ...so that you don't get prompted > > Now I get this, which is what happened before I started > sshd as dag. Except I can still cd to //samba-drive/dag: > > $ net use H: \\samba-d

Re: Access to Network Drive under ssh

2006-06-29 Thread David Greene
mwoehlke wrote: Are you on a 64-bit Windows by any chance? Nope. If not, I won't be able to tell you why 'net' is being brain-dead, other than "hmm, it does that sometimes; good luck!". Well, I guess I'll just have to build locally then. That's a real shame.

Re: Access to Network Drive under ssh

2006-06-29 Thread mwoehlke
David Greene wrote: mwoehlke wrote: You need to first do: net use /delete h: ...so that you don't get prompted Now I get this, which is what happened before I started sshd as dag. Except I can still cd to //samba-drive/dag: $ net use H: \\samba-drive\dag System error 67 has occurred. The n

Re: Access to Network Drive under ssh

2006-06-29 Thread David Greene
mwoehlke wrote: You need to first do: net use /delete h: ...so that you don't get prompted Now I get this, which is what happened before I started sshd as dag. Except I can still cd to //samba-drive/dag: $ net use H: \\samba-drive\dag System error 67 has occurred. The network name cannot b

Re: Access to Network Drive under ssh

2006-06-29 Thread mwoehlke
David Greene wrote: mwoehlke wrote: Anyway, the way I generally get things... well, closer to working, is to create a service that calls 'bash -c ', and have the script issue a bunch of 'net use ' commands and then exec sshd. That way you don't have to worry about connections being remembere

Re: Access to Network Drive under ssh

2006-06-29 Thread David Greene
mwoehlke wrote: Anyway, the way I generally get things... well, closer to working, is to create a service that calls 'bash -c ', and have the script issue a bunch of 'net use ' commands and then exec sshd. That way you don't have to worry about connections being remembered, because they will

Re: Access to Network Drive under ssh

2006-06-29 Thread mwoehlke
David Greene wrote: I tried to do a manual mount with no success: $ net use H: \\samba-drive\dag H: has a remembered connection to \\samba-drive\dag. Do you want to overwrite the remembered connection? (Y/N) [Y]: No valid response was provided. The strange thing here is that "net use" didn't ev

Access to Network Drive under ssh

2006-06-29 Thread David Greene
I know this subject has come up before but the most detailed discussion I could find about the problem I'm having is here http://erdelynet.com/archive/ssh-l/2002-12/0772.html and this dates from Dec. 2002. When I start a Cygwin xterm on the local machine, I can see network drives just fine (these