Hrmmff... One of these days I'll stop embarassing myself ;) /usr/sbin I guess, but it's in my path when I'm root, so I just type visudo. If it's not there automatically, I can't think of what might have installed it. I did find this thread [1] on the ITT forums that shows others using it with no mention of where it came from, so I think it's a default item. [1] http://www.internettablettalk.com/forums/showthread.php?t=2180 I tried adding: export EDITOR="/bin/vi" to my /etc/profile and it didn't work. EDITOR was added to my user env variables, but not when I transfered to root. Probably if I setup /etc/sudoers to allow user to call visudo, it would work. I was, however, able to add that line to the /usr/sbin/gainroot and that DOES work.[2] So now I can just use visudo as root without declaring the EDITOR or VISUAL variables, first. [2] sudo gainroot vi /usr/sbin/gainroot #!/bin/sh -e trap exit SIGHUP SIGINT SIGTERM export EDITOR="/bin/vi" PATH=..... --Paul On 8/16/07, Dr. Nicholas Shaw <Doc at docharley.com> wrote: > > Paul, I've made the changes but on my N800 there isn't visudo in /sbin. > That was one of the first places I checked. Did you install it manually? > If > so, where did you get it (or did you compile it manually?)? > > James, thanks for the suggestion! > Thanks, > > Nick. > > > -----Original Message----- > From: maemo-users-bounces at maemo.org [mailto:maemo-users-bounces at maemo.org] > On Behalf Of Paul Klapperich > Sent: Thursday, August 16, 2007 9:44 PM > Cc: maemo-users at maemo.org > Subject: Re: Visudo Help > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-users/attachments/20070817/1d346676/attachment.htm