[geeks] Thoughts on bash for root
Joshua D Boyd
jdboyd at cs.millersville.edu
Sun Apr 21 00:50:32 CDT 2002
On Sun, Apr 21, 2002 at 03:43:12PM +1000, Scott Howard wrote:
> On Sun, Apr 21, 2002 at 01:35:30AM -0400, Joshua D Boyd wrote:
> > On Sun, Apr 21, 2002 at 12:22:26AM -0500, Jonathan C. Patschke wrote:
> > >
> > > > How would you do it any way, since usermod won't work for logged in
> > > > users.
> > >
> > > vi /etc/passwd
> >
> > Stupid me. When vi wouldn't let me save before, I assumed it was some
> > fancy system that was interfering. Turns out a simple permission change
> > fixed it.
>
> Or even easier/better, in vi use :w! which will force the write regardless
> of permissions (presuming the user is correct, etc).
I never knew that. Ya learn something new every day.
--
Joshua D. Boyd
More information about the geeks
mailing list