From owner-freebsd-questions Thu Feb 27 12: 7:57 2003 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 0866537B401 for ; Thu, 27 Feb 2003 12:07:56 -0800 (PST) Received: from ra.dweebsoft.com (ra.dweebsoft.com [209.237.40.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DADB43FDD for ; Thu, 27 Feb 2003 12:07:55 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: from ra.dweebsoft.com (localhost [127.0.0.1]) by ra.dweebsoft.com (8.12.6/8.12.6) with ESMTP id h1RK7tCF058934; Thu, 27 Feb 2003 12:07:55 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: (from http@localhost) by ra.dweebsoft.com (8.12.6/8.12.3/Submit) id h1RK7txK058933; Thu, 27 Feb 2003 12:07:55 -0800 (PST) X-Authentication-Warning: ra.dweebsoft.com: http set sender to daxbert_news@dweebsoft.com using -f Received: from 64.81.58.36 ( [64.81.58.36]) as user daxbert@localhost by ra.dweebsoft.com with HTTP; Thu, 27 Feb 2003 12:07:55 -0800 Message-ID: <1046376475.3e5e701b1139c@ra.dweebsoft.com> Date: Thu, 27 Feb 2003 12:07:55 -0800 From: Daxbert To: David Banning Cc: "" Subject: Re: proftpd config question MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 64.81.58.36 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Quoting David Banning : > > > I have proftpd running successfully on my site. The problem is that I > > > don't want the initial login to take my to my -home- directory. > > > > > > I would like the opening directory to be my webpage directory. > > > I scanned the man page and the proftpd.conf file but did not see any > > > reference for this. > > > > > > > The following should work... > > > > DefaultChdir ~/public_html > > I tried your exact line, but it does not work for me. I also tried the > absolute > DefaultChdir /usr/local/www/data > > I did try > DefaultRoot /usr/local/www/data > > which does work. Now it gets more complicated because I would have most > users go to their own directories, but when I log in, I want to go to the > web folder. > Is that possible? > I guess I should have been more specific. DefaultChdir ~/public_html means, after any user has authenticated, change their directory to the sub-directory "public_html" located in their home directory. You're probably looking for this... DefaultChdir /usr/local/www/data your_group_name_here this means, after a user in group your_group_name_here has authenticated, change the working directory to /usr/local/www/data. Just make sure the group specified is one you belong to, but none of the other users. for more info on proftpd directives: http://proftpd.linux.co.uk/docs/directives/linked/by-name.html --daxbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message