X-Spam-Check-By: sourceware.org Date: Tue, 13 Mar 2007 16:58:57 +0100 From: Corinna Vinschen 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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/