X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Date: Tue, 24 Aug 2010 09:59:39 -0700 From: Quanah Gibson-Mount To: cygwin AT cygwin DOT com Subject: Re: Network drives & ssh access Message-ID: <1C018B15ED56529CD242DC44@[192.168.1.2]> In-Reply-To: <4C732336.6020806@cygwin.com> References: <13D45C6CDAB7C51EF7CDC050@[192.168.1.2]> <4C732336 DOT 6020806 AT cygwin DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes 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 Monday, August 23, 2010 9:41 PM -0400 "Larry Hall (Cygwin)" wrote: > On 8/23/2010 7:47 PM, Quanah Gibson-Mount wrote: >> I have a network drive set up to auto-reconnect at startup, which >> appears to work fine. If I start cygwin after logging in, I can see the >> drive in the /cygwin directory. >> >> However, I cannot see the drive in the /cygwin directory when connecting >> via Cygwin's OpenSSH. My guess is that ssh starts before the drive shows >> up. Running "net use" from the SSH connection says it is unavailable: > > > > The FAQ is your friend: > > Thanks, I missed that, was reading the fstab etc pages. So I set up sshd to run as the build user, but it still doesn't work: I ran: cygrunsrv.exe -R sshd confirmed no sshd processes were running rebooted, confirmed no sshd processes were running Ran: ssh-host-config -u build to set it up to run as the "build" user (my primary user) Told it to use privilege separation Said I want sshd to run as a service Put ntsec tty as the values for the CYGWIN environment variable Ran "cygrunsrv -S sshd ps -eaf now shows sshd running as SYSTEM proc 3376 with parent 3340, and a subprocess sshd 3444 running as build user I log in as the build user via ssh, and ps -eaf shows me to sshd process running as SYSTEM - proc 3376 with parent 3340 and a subprocess 1824 with 3376 as the parent. So, in reading the further documents, is what I need to do then is change the SYSTEM entry in /etc/passwd to use the SID of the build user instead? --Quanah -- Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple