www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/13/10:59:37

X-Spam-Check-By: sourceware.org
Date: Tue, 13 Mar 2007 16:58:57 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: sshd: can't mount samba shares
Message-ID: <20070313155857.GG24859@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20070305102955 DOT GA21715 AT calimero DOT vinschen DOT de> <87lkibg60i DOT fsf AT valverde DOT peloton> <20070305141920 DOT GB23520 AT calimero DOT vinschen DOT de> <87y7ma8fez DOT fsf AT valverde DOT peloton> <20070307140845 DOT GO24859 AT calimero DOT vinschen DOT de> <87zm6o666m DOT fsf AT valverde DOT peloton> <87odn22u0h DOT fsf AT valverde DOT peloton> <20070312124350 DOT GB30716 AT calimero DOT vinschen DOT de> <876495i7ms DOT fsf AT valverde DOT peloton> <87zm6hgsh4 DOT fsf AT valverde DOT peloton>
Mime-Version: 1.0
In-Reply-To: <87zm6hgsh4.fsf@valverde.peloton>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Mar 13 09:53, David Abrahams wrote:
> on Tue Mar 13 2007, David Abrahams <dave-AT-boost-consulting.com> wrote:
> >   ALLUSERSPROFILE='C:\Documents and Settings\All Users'
> >   USER=dave
> >   USERDOMAIN='NT AUTHORITY'
> >   USERNAME=SYSTEM
> >   USERPROFILE='C:\Documents and Settings\dave'
> >
> > So it appears XP thinks I"m the local system user.  From what I've

That's normal for passwordless login for now, and has been discussed
a lot on this list already.  If you need a valid logon session, you
must use password authentication.

> Also, what do you get from
> 
>   net config workstation
> 
> ?  For me it's:
> 
>   System error 1312 has occurred.
> 
>   A specified logon session does not exist. It may already have been terminated.

Same here.  The user processes are running in the same logon session
as the user starting the sshd service, which is the local SYSTEM account.

Which reminds me... what you could try is this:  Have a look into the
/bin/ssh-host-config script and create a user sshd_server the same way
as that script does on Windows 2K3 and newer.  The simplest way would
be to remove the sshd service entirely (cygrunsrv -E sshd) and to tweak
the ssh-host-config script so that it treats XP the same way as 2K3
(change line 115 to test for "5.1" instead of "5.2").  Then use
ssh-host-config again to install the sshd service and let it create
the sshd_server user account the same way as it did on your XP 64
machine.  You will still see the wrong USERDOMAIN and USERNAME values
when using passwordless login, but you're running in a valid normal
logon session.  Maybe that helps.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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