From owner-freebsd-i386@FreeBSD.ORG Sun Oct 19 16:40:01 2008 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 704CA1065692 for ; Sun, 19 Oct 2008 16:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4D3C78FC19 for ; Sun, 19 Oct 2008 16:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9JGe1Fh052275 for ; Sun, 19 Oct 2008 16:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9JGe1Uj052274; Sun, 19 Oct 2008 16:40:01 GMT (envelope-from gnats) Resent-Date: Sun, 19 Oct 2008 16:40:01 GMT Resent-Message-Id: <200810191640.m9JGe1Uj052274@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Georgi Iovchev Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31B341065749 for ; Sun, 19 Oct 2008 16:30:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 20C178FC14 for ; Sun, 19 Oct 2008 16:30:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id m9JGUw9T099031 for ; Sun, 19 Oct 2008 16:30:58 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id m9JGUw8g099030; Sun, 19 Oct 2008 16:30:58 GMT (envelope-from nobody) Message-Id: <200810191630.m9JGUw8g099030@www.freebsd.org> Date: Sun, 19 Oct 2008 16:30:58 GMT From: Georgi Iovchev To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: i386/128225: ftpd doesnt respect ftpd.conf X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2008 16:40:01 -0000 >Number: 128225 >Category: i386 >Synopsis: ftpd doesnt respect ftpd.conf >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 19 16:40:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Georgi Iovchev >Release: RELENG_7_0 >Organization: >Environment: FreeBSD www.pulsar.bg 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0: Wed Oct 15 02:05:05 EEST 2008 root@test.pulsar.bg:/usr/obj/usr/src/sys/PULSAR i386 >Description: >From the manpage of ftpd.conf: "The ftpd.conf file specifies various configuration options for ftpd(8) that apply once a user has authenticated their connection." The bug is that ftpd doesn't respect /etc/ftpd.conf. No matter what I put in /etc/ftpd.conf ftpd behaves the same way. I have tested it on 7.0-release-p5 i386, and recent 7.1-prerelease amd64. Two machines behave the same way. >How-To-Repeat: 1.enable ftpd - in /etc/rc.conf put ftpd_enable="yes" 2.create and edit /etc/ftpd.conf put some directives .. for example these (they should disable some commands for uploading and modifying content): upload all off upload REAL off 3.start (or restart) ftpd - /etc/rc.d/ftpd restart 4.connect to ftpd and try creating and deleteting directory #:> ftp localhost #:> ftp localhost Trying ::1... Trying 127.0.0.1... Connected to localhost. 220 www.pulsar.bg FTP server (Version 6.00LS) ready. Name (localhost:ed): 331 Password required for ed. Password: 230 User ed logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> mkd testdirrr 257 "testdirrr" directory created. ftp> rmd testdirrr 250 RMD command successful. thats it ... user "ed" in my case is normal user. If ftpd respect /etc/ftpd.conf it should not be posible to create or delete directories through ftp. But it seems that it doesnt read it. >Fix: >Release-Note: >Audit-Trail: >Unformatted: