X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=RqwdpubxSz/EvuzX 3xdOM5UGiSihUCRD5IkMoq8zFswegPB4XGTI660hbAeeLG3Ucm1aUsVJtN2Ubr+w mBbfK3emmoyUmJ8bNPsfnfHER3caVK5xK13i21vMlC5/OcZBfnhHtmWfMjZ4IDj8 FtoFPARAIjf3SfVCgO3oNU/Om3g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=default; bh=ClbW/0cTI7x9RZRUXpDwb/ IW6Pc=; b=y1iK7BOh3jIPZmIy5H/m3KPNsegCaqeQ1q/Ini1e5ojabjMLb5ayuB B0qAjYcS4uvEOfXNWeK8lxmwYLqesUiXdjcQg53gQkQkRIrMv8N5eLdxxoS00Ijr kI4ROKYZH77npsp8V00evzMCOuzFzXQ/aQlCYjgk/t6uP/L3ge+sA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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 Message-id: <52817C34.2080501@cygwin.com> Date: Mon, 11 Nov 2013 19:54:12 -0500 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT 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 AT cygwin DOT com Subject: Re: ssh logon failure References: <4FCF00EB DOT 2070600 AT gmail DOT com> <4FD07C1D DOT 5070909 AT gmail DOT com> <52028508 DOT 7000102 AT cygwin DOT com> <5269D1AA DOT 5010306 AT cygwin DOT com> <1384215795240-104252 DOT post AT n5 DOT nabble DOT com> In-reply-to: <1384215795240-104252.post@n5.nabble.com> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit 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