From owner-freebsd-questions@freebsd.org Thu Feb 16 11:36:58 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E25E7CE20B1 for ; Thu, 16 Feb 2017 11:36:58 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay14.qsc.de (mailrelay14.qsc.de [212.99.163.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5515D1E7C for ; Thu, 16 Feb 2017 11:36:57 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay14.qsc.de; Thu, 16 Feb 2017 12:40:04 +0100 Received: from r56.edvax.de (port-92-195-22-222.dynamic.qsc.de [92.195.22.222]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id D2CA53CBF9; Thu, 16 Feb 2017 12:36:47 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v1GBakhK001963; Thu, 16 Feb 2017 12:36:46 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 16 Feb 2017 12:36:46 +0100 From: Polytropon To: Jos Chrispijn Cc: Erwan David , freebsd-questions@freebsd.org Subject: Re: FTP access blocked on specific user Message-Id: <20170216123646.c3bc68a3.freebsd@edvax.de> In-Reply-To: References: <9de65374-2203-0164-d49f-1118d4e58a25@cloudzeeland.nl> <607d7aa7-985e-4441-6ec7-e119e14ccefa@rail.eu.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay14.qsc.de with 570E6683426 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1820 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2017 11:36:59 -0000 On Thu, 16 Feb 2017 11:05:22 +0100, Jos Chrispijn wrote: > Op 15-2-2017 om 22:07 schreef Erwan David: > > Check that this user's shell does not send multi-line message or prompt > > with control characters in a non interactive session. This would break sftp. > > > Exactly on the head! My own stupidity: I added a simple command at the > end of my .cshrc (the shell I work in) which caused this issue. Use ~/.login for that purpose. It will only be executed for login shells (interactive shells), while ~/.cshrc will be executed for _any_ instance of the C shell. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...