Date: Mon, 9 Oct 2006 09:41:38 +0200 From: Lothar Braun <mail@lobraun.de> To: freebsd-questions@freebsd.org Subject: Re: How to change all /bin/bash at /etc/passwd to /sbin/nologin? Message-ID: <200610090941.41014.mail@lobraun.de> In-Reply-To: <38221ea10610090024l5f7aebdfp6c551e3955b9cc10@mail.gmail.com> References: <38221ea10610090024l5f7aebdfp6c551e3955b9cc10@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi James, On Monday 09 October 2006 09:24, James Corteciano wrote: > How to change all word lines of /bin/bash at /etc/passwd file to > /sbin/nologin in just a single line command? I think you can do this with: sed 's!/bin/bash$!/sbin/nologin!' /etc/passwd > /etc/passwd Best regards, Lothar
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610090941.41014.mail>