From owner-freebsd-questions Tue Jan 27 07:03:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA29240 for questions-outgoing; Tue, 27 Jan 1998 07:03:44 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mother.sneaker.net.au (akm@mother.sneaker.net.au [203.30.3.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA29228 for ; Tue, 27 Jan 1998 07:03:37 -0800 (PST) (envelope-from akm@mother.sneaker.net.au) Received: (from akm@localhost) by mother.sneaker.net.au (8.8.5/8.8.5) id CAA03155; Wed, 28 Jan 1998 02:15:09 +1100 (EST) From: Andrew Kenneth Milton Message-Id: <199801271515.CAA03155@mother.sneaker.net.au> Subject: Re: Prevent user from skinnpping commands To: paul@cgu.ml.org (Paul Dekkers) Date: Wed, 28 Jan 1998 02:15:09 +1100 (EST) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <199801271416.PAA06212@chippie.cgu.edusurf.nl> from "Paul Dekkers" at Jan 27, 98 03:16:41 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk +-----[ Paul Dekkers ]------------------------------ | | Hi | | How can I prevent a user from skipping commands by using Ctrl-C or Ctrl-Z | or can I better (and how) disable the whole commands? | My goal is to let a user log in, start something in .profile and | immediately log out without being able to use Ctrl-C to get shell | access... :-) Change their shell to be a shell script that runs the command, if they control C out then the session will be disconnected. This is great if there's only one thing that they're going to run. There are also menuing shells available under the /usr/ports/shells if you want them to have a choice about what they're running. Most of these (from the descriptions) will let you disable shell access. I haven't used any, so I can't recommend them. -- ,-_|\ SneakerNet | Andrew Milton | GSM: +61(41)6 022 411 / \ P.O. Box 154 | akm@sneaker.net.au | Fax: +61(2) 9746 8233 \_,-._/ N Strathfield +--+----------------------+---+ Ph: +61(2) 9746 8233 v NSW 2137 | Low cost Internet Solutions |