Date: Thu, 27 Feb 2003 12:07:55 -0800 From: Daxbert <daxbert_news@dweebsoft.com> To: David Banning <david@skytracker.ca> Cc: "" <questions@freebsd.org> Subject: Re: proftpd config question Message-ID: <1046376475.3e5e701b1139c@ra.dweebsoft.com>
next in thread | raw e-mail | index | archive | help
Quoting David Banning <david@skytracker.ca>: > > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1046376475.3e5e701b1139c>