-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday, May 3, 2002, at 05:01 , David Bacher wrote:

> At 6:48 AM -0700 5/3/02, [EMAIL PROTECTED] wrote:
>> I've gone and broken my sudoers file, and can't sudo now. I opened it
>> in BBedit to add the line:
>> <my username>  ALL = NOPASSWD: ALL
>> but it now comes up with the message  "sudo: /etc/sudoers is mode
>> 0640, should be 0440"
>> Any idea what to do?
>
> Dan,
> Other people have responded with how to repair your system: su, chmod 
> 0440 ...
>
> But I wanted to mention visudo (/usr/sbin/visudo). It exists to catch 
> errors like yours before they end up breaking the system. It requires 
> learning a little bit of how to edit with vi, but I'd argue that that's 
> good knowledge to have if you're going to be mucking with things as 
> root.
>

visudo honors $EDITOR or $VISUAL (I have both set to vim, so I'm not 
certain), so if you want to use another bsd level editor you can.

In bash/sh/zsh/ksh, add the following to your .profile (bash & sh, and 
probably zsh/ksh)
EDITOR=/sw/bin/vim
VISUAL=/sw/bin/vim
export EDITOR VISUAL

In tcsh, add the following to your .cshrc
setenv EDITOR /sw/bin/vim

I don't use tcsh, so this part may be wrong.

jpb
- --
Joe Block <[EMAIL PROTECTED]>

The fetters imposed on liberty at home have ever been forged out of the 
weapons provided for defense against real, pretended, or imaginary 
dangers from abroad.
  - James Madison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see http://www.gnupg.org

iD8DBQE80907yEXo8W2M9hsRAh6jAJ0SmqiaybsyvYDTAo+3jjLDGaVtKQCgqyH+
xu8ATnmDmx97zFrLQeJDE1o=
=aQFz
-----END PGP SIGNATURE-----


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to