* Mouting network drives from Cygwin ssh client
@ 2008-12-30 15:41 Jeenu V
2008-12-30 16:13 ` Larry Hall (Cygwin)
2008-12-31 5:32 ` Jeenu V
0 siblings, 2 replies; 6+ messages in thread
From: Jeenu V @ 2008-12-30 15:41 UTC (permalink / raw)
To: cygwin
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
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Mouting network drives from Cygwin ssh client
2008-12-30 15:41 Mouting network drives from Cygwin ssh client Jeenu V
@ 2008-12-30 16:13 ` Larry Hall (Cygwin)
2008-12-31 5:32 ` Jeenu V
1 sibling, 0 replies; 6+ messages in thread
From: Larry Hall (Cygwin) @ 2008-12-30 16:13 UTC (permalink / raw)
To: cygwin
Jeenu V 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.
<http://cygwin.com/faq/faq-nochunks.html#faq.using.shares>
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Mouting network drives from Cygwin ssh client
2008-12-30 15:41 Mouting network drives from Cygwin ssh client Jeenu V
2008-12-30 16:13 ` Larry Hall (Cygwin)
@ 2008-12-31 5:32 ` Jeenu V
2008-12-31 6:00 ` Christopher Faylor
` (2 more replies)
1 sibling, 3 replies; 6+ messages in thread
From: Jeenu V @ 2008-12-31 5:32 UTC (permalink / raw)
To: cygwin
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Mouting network drives from Cygwin ssh client
2008-12-31 5:32 ` Jeenu V
@ 2008-12-31 6:00 ` Christopher Faylor
2008-12-31 7:07 ` Jeenu V
2008-12-31 16:15 ` Larry Hall (Cygwin)
2 siblings, 0 replies; 6+ messages in thread
From: Christopher Faylor @ 2008-12-31 6:00 UTC (permalink / raw)
To: cygwin
On Wed, Dec 31, 2008 at 11:02:19AM +0530, Jeenu V wrote:
>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.
You were subscribed to the list from Wed Dec 31 05:21:39 2008 GMT to
Wed Dec 31 05:35:48 2008 GMT.
I'm not too suprised to hear that you didn't see many replies.
cgf
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Mouting network drives from Cygwin ssh client
2008-12-31 5:32 ` Jeenu V
2008-12-31 6:00 ` Christopher Faylor
@ 2008-12-31 7:07 ` Jeenu V
2008-12-31 16:15 ` Larry Hall (Cygwin)
2 siblings, 0 replies; 6+ messages in thread
From: Jeenu V @ 2008-12-31 7:07 UTC (permalink / raw)
To: cygwin
>You were subscribed to the list from Wed Dec 31 05:21:39 2008 GMT to
>Wed Dec 31 05:35:48 2008 GMT.
>
>I'm not too suprised to hear that you didn't see many replies.
Err! That was a mistake.
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Mouting network drives from Cygwin ssh client
2008-12-31 5:32 ` Jeenu V
2008-12-31 6:00 ` Christopher Faylor
2008-12-31 7:07 ` Jeenu V
@ 2008-12-31 16:15 ` Larry Hall (Cygwin)
2 siblings, 0 replies; 6+ messages in thread
From: Larry Hall (Cygwin) @ 2008-12-31 16:15 UTC (permalink / raw)
To: cygwin
Jeenu V wrote:
> 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.
Yes, that is part of it. Ownership/permissions of a collection of files
used by 'sshd' is highly scrutinized. And, as you've found out, it's
not a one-step task to switch the service over from running as
SYSTEM (or 'sshd_server'). There are a number of files that get created
the first time 'sshd' runs (or when it's configured with
'/bin/ssh-host-config') that need to be adjusted if you change the user
that runs the service. You can find the full list of files in
'/bin/ssh-host-config' but at least a partial list is:
/etc/ssh*
/var/empty
/var/log/lastlog
/var/log/sshd.log
Make sure these are all owned by the user that's now running 'sshd'.
That should help. If not, take a look at '/bin/ssh-host-config' for
files I've missed.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-12-31 16:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-30 15:41 Mouting network drives from Cygwin ssh client Jeenu V
2008-12-30 16:13 ` Larry Hall (Cygwin)
2008-12-31 5:32 ` Jeenu V
2008-12-31 6:00 ` Christopher Faylor
2008-12-31 7:07 ` Jeenu V
2008-12-31 16:15 ` Larry Hall (Cygwin)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).