From owner-freebsd-questions@FreeBSD.ORG Mon Oct 9 07:24:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50E7A16A416 for ; Mon, 9 Oct 2006 07:24:32 +0000 (UTC) (envelope-from freebsd@gascort.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE3CA43D5A for ; Mon, 9 Oct 2006 07:24:31 +0000 (GMT) (envelope-from freebsd@gascort.com) Received: by nf-out-0910.google.com with SMTP id n15so1879604nfc for ; Mon, 09 Oct 2006 00:24:30 -0700 (PDT) Received: by 10.82.142.9 with SMTP id p9mr369333bud; Mon, 09 Oct 2006 00:24:30 -0700 (PDT) Received: by 10.82.120.11 with HTTP; Mon, 9 Oct 2006 00:24:30 -0700 (PDT) Message-ID: <38221ea10610090024l5f7aebdfp6c551e3955b9cc10@mail.gmail.com> Date: Mon, 9 Oct 2006 15:24:30 +0800 From: "James Corteciano" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: How to change all /bin/bash at /etc/passwd to /sbin/nologin? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2006 07:24:32 -0000 Dear guru's: How to change all word lines of /bin/bash at /etc/passwd file to /sbin/nologin in just a single line command? I am looking forward for your great responses. Thank you. Regards, -- James G. Corteciano FreeBSD User