[geeks] Thoughts on bash for root
Scott Howard
scott at doc.net.au
Sun Apr 21 00:43:12 CDT 2002
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).
Scott
More information about the geeks
mailing list