X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.4 required=5.0 	tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <5195c8760812302132i53bda0fbwc068c00d61fc40f9@mail.gmail.com>
Date: Wed, 31 Dec 2008 11:02:19 +0530
From: "Jeenu V" <jeenuv@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Mouting network drives from Cygwin ssh client
In-Reply-To: <5195c8760812300741g7057b16clf8aa59c30ce388e2@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <5195c8760812300741g7057b16clf8aa59c30ce388e2@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Thanks for the link.

I removed the default CYGWIN sshd service and ran:

cygrunsrv --install sshd --path /usr/sbin/sshd.exe --user jeevis01
--args '-D' --env 'CYGWIN="ntsec"

It asked for my password and installed successfully. However I
couldn't start the service, and my /var/log/sshd.log was empty.

Later I tried starting sshd manually:
$ /usr/sbin/sshd.exe
/var/empty must be owned by root and not group or world-writable.

$ ls -ld /var/empty/
drwxr-xr-x+ 2 SYSTEM Administrators 0 Dec 30 16:57 /var/empty/

$ chmod 700 /var/empty/
$ ls -ld /var/empty/
drwx------+ 2 SYSTEM Administrators 0 Dec 30 16:57 /var/empty/

$ /usr/sbin/sshd.exe
/var/empty must be owned by root and not group or world-writable.

I think this is the reason why the server failed to start when I
installed service in my name. Although I see many posts facing similar
issues, problem gets solved after the chmod command. However, for me,
it doesn't. Please help.

PS: Though I've subscribed to the list, replies to this topic is not
reaching my inbox for some reason. I'm reading replies at the archive.

On Tue, Dec 30, 2008 at 9:11 PM, Jeenu V <jeenuv@gmail.com> wrote:
> Hi,
>
> I've a Cygwin ssh server up on Windows XP. My home directory on the
> host is a network drive (H:) which I'm able to acess locally as
> /cygdrive/h. When I do ssh to localhost using PuTTY, I'm unable to
> access the /cygdrive/h path - the mount command only shows c: mounted
> as /cygdrive/c. I can neither create directory h inside /cygdrive nor
> mount h: to there - it says no such file or directory. Also there are
> error messages when I log-in because of /cygdrive/h being
> inaccessible, because it's the home directory. Please tell me how to
> access this network drive via. ssh.
>
> --
> Thanks
> Jeenu
>



-- 
Thanks
Jeenu

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

