FTP access blocked on specific user

Polytropon freebsd at edvax.de
Thu Feb 16 11:36:59 UTC 2017


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, ...


More information about the freebsd-questions mailing list