delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/11/10:26:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Brindl Ronald" <rbrindl AT gmx DOT at>
To: "'Joshua Daniel Franklin'" <joshuadfranklin AT gmail DOT com>,
<cygwin AT cygwin DOT com>
Subject: AW: Inaccessible remote volumes when logged in via ssh
Date: Tue, 11 May 2004 15:01:26 +0200
Message-ID: <00fc01c43758$24e95e20$0500a8c0@ron>
MIME-Version: 1.0
In-Reply-To: <cb51e2e040510142043015a25@mail.gmail.com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i4BEQoSD012716

I am logging in using password (i already heard of troubles using
publickey, altough i can log in as normal user using public key)
The volume is mounted using the explorer menu (extra -> connect drive, i
dont know if thats correct because i have a german version), and it is
configured to mount automatically at startup.

I just tried to use "net use" in my ssh-session and noticed it doesnt
work (system error 1312)
It is the same case as in 
http://archive.erdelynet.com/ssh-l/2004-04/msg00033.php
And in
http://archive.erdelynet.com/ssh-l/2002-11/msg00006.php

And
http://archive.erdelynet.com/ssh-l/2004-03/msg00057.php

It has something to do with user-privileges and that the sshd runs as
user SYSTEM. It seems, that the ssh-sessions also runs as SYSTEM, and
not as user which logged in.

What i dont understand is, why it works when i log in locally via ssh
(ssh localhost -l bpc). It should also run as user system without
network-privileges.

I tried the following:
At <current-time + 1> /INTERACTIVE cmd

Which should open a cmd-shell in one minute which runs as SYSTEM.
The shell opens and i also have no access to the network.

So i tried to start the sshd service as user "sshd" (changed owner of
all files, adjusted the security policies etc). The service starts but
the strange result is, that i cant login with password anymore, only
with public key !!! And i still dont have acces to network .
When i do a ps -W -f i get:

    sshd    1608       1   ?  14:10:21 /usr/bin/cygrunsrv
    sshd    1348    1720   ?  14:11:09 /usr/sbin/sshd
       0     756       0   ?  14:11:11 C:\cygwin\bin\bash.exe
     bpc    1716    1680   1  14:11:46 /usr/bin/ps
       0    1760       0   ?  14:11:47 C:\cygwin\bin\ps.exe

So i assume, the shell still run under SYSTEM account

Trying around with UsePrivilegeSeperation i had trouble starting the
service at all. (complained about wrong privileges of /var/empty)

Ron.



-----Ursprüngliche Nachricht-----
Von: Joshua Daniel Franklin [mailto:joshuadfranklin AT gmail DOT com] 
Gesendet: Montag, 10. Mai 2004 22:21
An: rbrindl AT gmx DOT at; cygwin AT cygwin DOT com
Betreff: Re: Inaccessible remote volumes when logged in via ssh


On Mon, 10 May 2004 22:50:27 +0200, Brindl Ronald <rbrindl AT gmx DOT at>
wrote:
> Sshd is running as local system,

Are you logging in with a password or publickey?

Are you using the 'net use' command?


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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019