From owner-freebsd-doc Thu Jul 11 18: 4:54 2002 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C3C637B400 for ; Thu, 11 Jul 2002 18:04:51 -0700 (PDT) Received: from smtp.noos.fr (claudel.noos.net [212.198.2.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B5FA43E09 for ; Thu, 11 Jul 2002 18:04:50 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 27617767 invoked by uid 0); 12 Jul 2002 01:04:49 -0000 Received: from unknown (HELO gits.gits.dyndns.org) ([212.198.229.153]) (envelope-sender ) by 212.198.2.83 (qmail-ldap-1.03) with SMTP for ; 12 Jul 2002 01:04:49 -0000 Received: from gits.gits.dyndns.org (0l32pusjphygdabq@localhost [127.0.0.1]) by gits.gits.dyndns.org (8.12.5/8.12.5) with ESMTP id g6C14mTL026335; Fri, 12 Jul 2002 03:04:48 +0200 (CEST) (envelope-from root@gits.dyndns.org) Received: (from root@localhost) by gits.gits.dyndns.org (8.12.5/8.12.5/Submit) id g6C14kOB026334; Fri, 12 Jul 2002 03:04:46 +0200 (CEST) (envelope-from root) Date: Fri, 12 Jul 2002 03:04:45 +0200 From: Cyrille Lefevre To: Phil Gates Cc: doc@FreeBSD.ORG Subject: Re: add user only can ftp Message-ID: <20020712010445.GO21234@gits.dyndns.org> References: <002401c2292d$5894a940$0100000a@0016716867> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002401c2292d$5894a940$0100000a@0016716867> User-Agent: Mutt/1.3.99i Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[< List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Jul 11, 2002 at 06:50:03PM -0400, Phil Gates wrote: > Hi My name is Phil Gates. I want add a user that only can ftp > into a certain directory, ie they can not login into the machine. > Can you tell me how to do this or what chapter to read to get > this information. My email is p_gates@one.net first of all, did you read the handbook ? I guess no. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-post.html#ANON-FTP2 also, questions like this are best in questions@freebsd.org however, begin to read `man ftpd', then : add the following line to your password file (using vipw) : guestftp:*:1005:1005::0:0:guest FTP user:/home/guestftp:/sbin/nologin this one to /etc/group : guestftp::1005: and this one to /etc/ftpchroot : @guestftp make sure `guestftp' doesn't exists in /etc/ftpusers and eventually complete /etc/ftpwelcome w/ a message of your own. of course, don't forget to create the user directory using : mkdir -m 770 /home/guestftp; chown 1005:1005 /home/guestftp cd /home/guestftp mkdir .rhosts; touch .rhosts/disabled; chmod 0 .rhosts mkdir .shosts; touch .shosts/disabled; chmod 0 .shosts mkdir .ssh; touch .ssh/disabled; chmod 0 .ssh to set up a true anonymous ftp, read the ftpd manual page or the lukemftpd depending of your choice. also read the handbook reference given above. PS : your lines are too long. they MUST be 72 car. max. long. Cyrille. -- Cyrille Lefevre mailto:cyrille.lefevre@laposte.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message