Date: Mon, 9 Oct 2006 10:51:12 +0300 From: "Cristian Mijea" <cristian.mijea@gmail.com> To: "James Corteciano" <freebsd@gascort.com> Cc: freebsd-questions@freebsd.org Subject: Re: How to change all /bin/bash at /etc/passwd to /sbin/nologin? Message-ID: <268ac7a80610090051v424900f7i551205afd601c67c@mail.gmail.com> In-Reply-To: <38221ea10610090024l5f7aebdfp6c551e3955b9cc10@mail.gmail.com> References: <38221ea10610090024l5f7aebdfp6c551e3955b9cc10@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/9/06, James Corteciano <freebsd@gascort.com> wrote: > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > if you have mc (midnight commander) browse to /etc/passwd, edit -> replace if you don't then pkg_add -r mc or vi /etc/passwd :%s//bin/bash//sbin/nologin/cg (:%s/oldstring/newstring/cg) ZZ
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?268ac7a80610090051v424900f7i551205afd601c67c>