From owner-freebsd-questions@FreeBSD.ORG Mon Nov 14 16:18:52 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3E1F16A41F for ; Mon, 14 Nov 2005 16:18:52 +0000 (GMT) (envelope-from rshprd@comcast.net) Received: from sccrmhc14.comcast.net (sccrmhc14.comcast.net [204.127.202.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F68743D45 for ; Mon, 14 Nov 2005 16:18:52 +0000 (GMT) (envelope-from rshprd@comcast.net) Received: from [192.168.0.2] (c-24-12-58-141.hsd1.il.comcast.net[24.12.58.141]) by comcast.net (sccrmhc14) with ESMTP id <2005111416185101400lru0ae>; Mon, 14 Nov 2005 16:18:51 +0000 Message-ID: <4378B8EF.7030200@comcast.net> Date: Mon, 14 Nov 2005 10:18:55 -0600 From: Robert Shepard User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Subject: ftpd security/configuration question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rshprd@comcast.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2005 16:18:52 -0000 Hello! Probably a stupid question, but this has bugged me for a while and for reasons unknown, I just cannot seem to figure this out. I wish to operate my FTP server (ftpd) in the anonymous access mode. However, what I desire to do is configure it so that the absolute root directory of anonymous users is “/var/ftp/pub”. In other words, typing “cd ..” will not let anonymous users to see the “/var/ftp/bin” or the “/var/ftp/etc” directories (or their files). I am running FreeBSD 5.3 stable. I have tried various methods described in some of the other message boards, but I believe those were referencing previous releases of FreeBSD. I also noticed that while the current FTP server is running, I do not have a lot of the files the handbook references, other than ftpusers, which is located in the /etc directory (note: not in the “/var/ftp/etc” directory. Files such as “/etc/ftpchroot”, “/etc/ftpmotd”, and “/ftpwelcome” are not present. I did manually create the ftpwelcome file and placed copies in both the “/etc” and “/var/ftp/etc” directories. However, it does not get displayed prior to the FTP login prompt as the handbook suggests. So, two questions: Is what I am trying to accomplish possible? What am I missing or need to do to accomplish these things? Thanks, Bob