From owner-freebsd-questions Mon Mar 1 15:16:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from jedi.burnit.net (jedi.burnit.net [151.198.231.7]) by hub.freebsd.org (Postfix) with ESMTP id 84B4C154FD for ; Mon, 1 Mar 1999 15:15:59 -0800 (PST) (envelope-from wharton@burnit.net) Received: from localhost (wharton@localhost) by jedi.burnit.net (8.9.2/8.9.3) with ESMTP id SAA00801; Mon, 1 Mar 1999 18:20:30 -0500 (EST) Date: Mon, 1 Mar 1999 18:20:29 -0500 (EST) From: "Daniel J. Wharton" To: Calvin M Meloon Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Disabling Telnet In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I don't understand what you changed in the script... the only difference I see is #!/bin/sh - instead of #!/bin/sh -p, and I don't know if that is a mistake or not. Isn't this the /sbin/nologin file that you edited or is it the nologin.sh? What did you change in the nologin.sh script if this isn't it??? Thank you On Mon, 1 Mar 1999, Calvin M Meloon wrote: > We modified the nologin.sh script, echoing a couple of messages to the > user upon login, and made this the user's shell... > > #!/bin/sh - > # > # Copyright (c) 1992, 1993 > # The Regents of the University of California. All rights reserved. > > # blah > # blah > # blah > > # > # @(#)nologin.sh 8.1 (Berkeley) 6/5/93 > # > > echo 'This account is not enabled for shell/telnet access.' > echo 'Please call the GCIC office for more information.' > exit 1 > > This allows ftp access, but not telnet access. > > > > > I was wondering if anyone could tell me how I can prevent users from > > telneting in without disabling FTP access as well. I want people to be > > able to FTP in and update their websites, but not be able to TELNET in. > > > > I already tried setting their shell to /sbin/nologin, but that disables > > FTP access as well. Thank you very much in advance for any advice. > > _____ __ _ > / ___/__ _/ / __(_)__ Gulf Coast Internet Calvin M. Meloon > / /__/ _ `/ / |/ / / _ \ Pensacola, FL Unix Administrator > \___/\_,_/_/|___/_/_//_/ (850)438-5700 writer of code > ~~~~ calvin@gulf.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Proponent of FreeBSD > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message