From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3174 invoked by alias); 12 Nov 2013 00:54:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 3163 invoked by uid 89); 12 Nov 2013 00:54:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.2 X-HELO: vms173011pub.verizon.net Received: from Unknown (HELO vms173011pub.verizon.net) (206.46.173.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Nov 2013 00:54:27 +0000 Received: from [192.168.1.231] ([unknown] [74.104.179.122]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MW400138L67B840@vms173011.mailsrvcs.net> for cygwin@cygwin.com; Mon, 11 Nov 2013 18:54:12 -0600 (CST) Message-id: <52817C34.2080501@cygwin.com> Date: Tue, 12 Nov 2013 00:54:00 -0000 From: "Larry Hall (Cygwin)" Reply-to: cygwin@cygwin.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-version: 1.0 To: cygwin@cygwin.com Subject: Re: ssh logon failure References: <4FCF00EB.2070600@gmail.com> <4FD07C1D.5070909@gmail.com> <52028508.7000102@cygwin.com> <5269D1AA.5010306@cygwin.com> <1384215795240-104252.post@n5.nabble.com> In-reply-to: <1384215795240-104252.post@n5.nabble.com> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-SW-Source: 2013-11/txt/msg00229.txt.bz2 On 11/11/2013 7:23 PM, greenspan wrote: > Furthermore, I've just discovered that I _can_ log in as the cyg_server user! This is not recommended for normal use. >>From there, if i attempt to su to myself (user greendg1), I see this: > > --- > $ su - greendg1 > su: warning: cannot change directory to //APLFS01/GREENDG1$: Not a directory > mkdir: cannot create directory `//APLFS01': Read-only file system > //APLFS01/GREENDG1$ could not be created. > Setting HOME to /tmp. > --- > > This utterly confuses me; I know what APLFS01 is, but not why it's part of > this horrible mix... I'm guessing that I have an environment variable > problem, and that depending upon how I log in and when, the environment is > improperly set, which is causing bash to fail, which is why I get the > "operation not permitted" error. But this is all conjecture. > > What variable contains the value that bash uses (or ssh or su pass to bash)? 'ssh' gets its home directory from '/etc/passwd'. For 'cyg_server' this would be '/var/empty' and the shell would be '/bin/false' (now it's probably obvious why 'cyg_server' is not meant to be used as a login account). If you've set HOME in your Windows environment, 'su' may be picking up on that. But I think you're heading off into the weeds with this line of investigation... -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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