[maemo-users] Visudo Help

From: James Sparenberg james at linuxrebel.org
Date: Sat Aug 18 06:14:29 EEST 2007
On Thursday 16 August 2007 20:44:16 Paul Klapperich wrote:
> On 8/16/07, James Sparenberg <james at linuxrebel.org> wrote:
> > On this one visudo is not on the box but the real solution is.... don't
> > chmod the file.  VI it as root, then instead of doing wq to quit (write
> > quit) do wq! (w  q then exclamation point or more commonly known as bang)
> > this will override the read only aspect and commit your changes without
> > running the risk of forgeting to chmod
> >
> > James
>
> which is what I was driving at, but that won't protect against errors
> as visudo will also. Visudo is in /sbin on the device. It works fine.
>
> --Paul
> _______________________________________________
> maemo-users mailing list
> maemo-users at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-users

Paul,

  All I can say on the protection is... you greatly underestimate me.... 
*grin* as for visudo nope on my Nokia but that's ok.   Seriously though you 
can make just as high quality mistakes with visudo as you can using vi and ! 
to override.  Which is IMHO one more good reason to set your root password.  
Then if you crunch /etc/sudoers you can su to root and correct the error.  

James


James

More information about the maemo-users mailing list