From: sgunderson Date: Wed, 26 Jul 2000 02:02:29 +0000 (+0000) Subject: root (or in fact, any user with uid=0) can no longer login. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=847beee37b210ca64f1b6d74897ffca84b0856de;p=betaftpd root (or in fact, any user with uid=0) can no longer login. --- diff --git a/cmds.c b/cmds.c index 131df34..0af4782 100644 --- a/cmds.c +++ b/cmds.c @@ -341,6 +341,10 @@ int cmd_pass(struct conn * const c) } #endif /* !WANT_NONROOT */ + /* root should not be allowed to FTP */ + if (c->uid == 0) { + c->auth = 0; + } if (c->auth == 0) { numeric(c, 530, "Login incorrect."); } else {