From owner-freebsd-questions@FreeBSD.ORG Thu Jun 5 20:55:09 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 28F1AAB6 for ; Thu, 5 Jun 2014 20:55:09 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D81B9294B for ; Thu, 5 Jun 2014 20:55:08 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wsegd-0005Kv-6P for freebsd-questions@freebsd.org; Thu, 05 Jun 2014 22:54:59 +0200 Received: from 65.75.36.70 ([65.75.36.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jun 2014 22:54:59 +0200 Received: from gyliamos by 65.75.36.70 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jun 2014 22:54:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Will Parsons Subject: Re: ssh + su problem Date: Thu, 5 Jun 2014 20:54:45 +0000 (UTC) Lines: 54 Message-ID: References: <20140601231728.9decb4f8b733c26bf040f963@yahoo.es> <20140604061922.GA2130@La-Habana> Reply-To: gyliamos@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 65.75.36.70 User-Agent: slrn/1.0.1 (FreeBSD) X-Mailman-Approved-At: Thu, 05 Jun 2014 21:45:35 +0000 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2014 20:55:09 -0000 Michael Ross wrote: > On Wed, 04 Jun 2014 21:30:09 +0200, Will Parsons > wrote: > >> Matthias Apitz wrote: >>> >>> Try: >>> - become root in anther vt-session locally, >>> - issue the 'su' command, still without providing a password >>> - look as root for the PID of the 'su' and attach something like >>> # truss -o /tmp/su.tr -f -p PID >>> - provide the password to the 'su' >>> - check the file /tmp/su.tr what the 'su' complains about >> >> Thanks. Although I haven't solved the problem yet, I now know from >> the truss output that the immediate cause is that my root password >> contains the sequence "'A", and this was getting translated to >> meta-A. (It would have course been obvious if the password echo were >> not being surpressed.) >> >> Curiously enough, although translation happens both for Cygwin ssh and >> PuTTY, they do different things. >> >> On cygwin ssh, if type 'A on the command line, I see: >> >> \303\201 > > That's unicode for Á ( A with acute ), not 'A ( single-quote + A ), isn't > it? > >> Using PuTTY: >> >> \301 > > And that would be ISO-8859-1 for A with acute. Yes. >> (which I guess is meta-A) >> >> I'm not sure where this is coming from, but if all else fails, I think >> I should be able to get around it by changing my root password. Just to conclude this matter, the issue is solely a Windows configuration issue and has nothing to do with FreeBSD (or Cygwin). After a great deal of digging (I hate Windows), I found that changing the Default input language from "English (United States) - United States-International" to "English (United States) - US" turns off the translation of quote-A to A-acute. (The difference in behaviour between Cygwin ssh and PuTTY was due a PuTTY setting for the remote character set being set to Latin-1.) -- Will