Hrmmff... One of these days I'll stop embarassing myself ;) <br><br>/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.
<br><br>[1] <a href="http://www.internettablettalk.com/forums/showthread.php?t=2180">http://www.internettablettalk.com/forums/showthread.php?t=2180</a><br><br>I tried adding:<br>export EDITOR="/bin/vi"<br>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.
<br><br>[2] sudo gainroot<br>vi /usr/sbin/gainroot<br><br>#!/bin/sh -e<br>trap exit SIGHUP SIGINT SIGTERM<br>export EDITOR="/bin/vi"<br>PATH=.....<br><br>--Paul<br><br><div><span class="gmail_quote">On 8/16/07,
<b class="gmail_sendername">Dr. Nicholas Shaw</b> <<a href="mailto:Doc@docharley.com">Doc@docharley.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Paul, I've made the changes but on my N800 there isn't visudo in /sbin.<br>That was one of the first places I checked. Did you install it manually? If<br>so, where did you get it (or did you compile it manually?)?
<br><br>James, thanks for the suggestion!<br>Thanks,<br><br>Nick.<br><br><br>-----Original Message-----<br>From: <a href="mailto:maemo-users-bounces@maemo.org">maemo-users-bounces@maemo.org</a> [mailto:<a href="mailto:maemo-users-bounces@maemo.org">
maemo-users-bounces@maemo.org</a>]<br>On Behalf Of Paul Klapperich<br>Sent: Thursday, August 16, 2007 9:44 PM<br>Cc: <a href="mailto:maemo-users@maemo.org">maemo-users@maemo.org</a><br>Subject: Re: Visudo Help<br><br>On 8/16/07, James Sparenberg <
<a href="mailto:james@linuxrebel.org">james@linuxrebel.org</a>> wrote:<br>><br>> On this one visudo is not on the box but the real solution is.... don't<br>chmod<br>> the file. VI it as root, then instead of doing wq to quit (write quit) do
<br>> wq! (w q then exclamation point or more commonly known as bang) this will<br>> override the read only aspect and commit your changes without running the<br>> risk of forgeting to chmod<br>><br>> James
<br>><br><br>which is what I was driving at, but that won't protect against errors<br>as visudo will also. Visudo is in /sbin on the device. It works fine.<br><br>--Paul<br>_______________________________________________
<br>maemo-users mailing list<br><a href="mailto:maemo-users@maemo.org">maemo-users@maemo.org</a><br><a href="https://lists.maemo.org/mailman/listinfo/maemo-users">https://lists.maemo.org/mailman/listinfo/maemo-users</a><br>
<br></blockquote></div><br>