Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2006 09:39:11 +0200
From:      pbdlists@pinboard.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:  <20061009073911.GB97134@pinboard.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
sed -i .backup "s,:/bin/bash$,:/sbin/nologin," /etc/passwd 

But at least on my FBSD systems bash is in /usr/local/bin/bash, not
/bin/bash! And what would you need this for?

Cheers,

Kurt

On Mon, Oct 09, 2006 at 03:24:30PM +0800, James Corteciano 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061009073911.GB97134>