From owner-freebsd-questions Sat May 22 21:42:46 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ns.clientlogic.com (ns.clientlogic.com [207.51.66.75]) by hub.freebsd.org (Postfix) with ESMTP id 5D10E14E30 for ; Sat, 22 May 1999 21:42:43 -0700 (PDT) (envelope-from ChrisMic@clientlogic.com) Received: by site0s1 with Internet Mail Service (5.5.2448.0) id ; Sun, 23 May 1999 00:42:44 -0400 Message-ID: <6C37EE640B78D2118D2F00A0C90FCB44011058F9@site2s1> From: Christopher Michaels To: 'Jason Scott' Cc: "FreeBSD Mailing List (E-mail)" Subject: RE: Allowing users access Date: Sun, 23 May 1999 00:40:58 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It may be useful to look through the mailing list archives on this, as I've never done it myself. (http://www.FreeBSD.org/search/) BUT, as this question has been asked several times I believe I know there answer. Put the usernames of the users in /etc/ftpchroot, what you'll need to do, if you do that is to make a dir in each user's home dir called ~/bin and copy the files from ~ftp/bin into that dir. Otherwise you would have to re-compile ftpd with FTPD_INTERNAL_LS. I'm sure someone else on the list could give you more detailed instructions on this. But it can be done. -Chris P.S. Take a look at this posting on freebsd.org.. http://www.freebsd.org/cgi/getmsg.cgi?fetch=839110+841779+/usr/local/www/db/ text/1998/freebsd-questions/19981108.freebsd-questions > -----Original Message----- > From: Jason Scott [SMTP:freepix@sirius.com] > Sent: Sunday, May 23, 1999 12:30 AM > To: Christopher Michaels > Subject: RE: Allowing users access > > Thank you very much for this information. Do you happen to know how to > restrict users to only upload/download/edit files in their directory/home > and nothing before that? If so I would GREATLY appreciate it. > > Thank You, > Jason Scott > > > At 12:20 AM 5/23/99 -0400, you wrote: > >Grab nologin from the ports section. > >Install it. > >Add it to the /etc/shells file. > >Change the users' shells to nologin (/usr/local/bin/nologin I think). > > > >ftp will allow them access since they are using a valid shell (as per > >/etc/shells) but the nologin shell will not allow them to telnet in. > > > >-Chris > > > >> -----Original Message----- > >> From: Jason Scott [SMTP:freepix@sirius.com] > >> Sent: Saturday, May 22, 1999 7:26 PM > >> To: FreeBSD-questions@FreeBSD.ORG > >> Subject: Allowing users access > >> > >> I would like to allow users access to FTP their files into their > >> individual > >> accounts on my server, but I don't want to allow Telnet (or allow only > >> limited telnet) so that my server's files are not altered. If anyone > has > >> any experience in this, or could point me in the right direction, I > would > >> appreciate it EXTREMELY. I have read several books, including "the > >> complete freebsd" and more, and I haven't been able to find anything... > >> > >> Thank You, > >> Jason Scott > >> > >> Please reply via e-mail to: freepix@sirius.com > >> > >> > >> To Unsubscribe: send mail to majordomo@FreeBSD.org > >> with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message