On 10/9/06, James Corteciano <[EMAIL PROTECTED]> 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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"