You are not logged in.
Pages: 1
You leave insert (edit) mode with Esc. To write changes it's :w or :wq to write and quit or :q to quit without applying changes (sometimes needs :q!).
Removing your .tmp files can be done with sudo rm /pathtofile.tmp once you get sudo sorted.In my visudo I have an extra entry myusername ALL=(ALL) ALL which is what I assume you need.
Thanks very much.
I'v forgotten about the man pages, should probably check them out next time.
I am trying to edit my visudo file.
I assume it is similar to ubuntu, so I type in terminal,
sudo visudowhich then, in terminal, gives me this screen:
E325: ATTENTION
Found a swap file by the name "/etc/.sudoers.tmp.swp"
owned by: root dated: Mon May 3 11:54:47 2010
file name: /etc/sudoers.tmp
modified: YES
user name: root host name: goudacheese
process ID: 12668
While opening file "/etc/sudoers.tmp"
dated: Mon May 3 00:21:44 2010
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/sudoers.tmp"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/.sudoers.tmp.swp"
to avoid this message.
"/etc/sudoers.tmp" 31L, 709C
Press ENTER or type command to continueas a newbie, I have never seen this before, and so ignoring it, I follow its directions and push enter, which then, leads me to this screen:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALLAs I read it, I am supposed to change
# User privilege specification
root ALL=(ALL) ALLto
# User privilege specification
fatleader #my username ALL=(ALL) ALLwhich is fine, until I need to save. Vim does not give me any options in saving, and I have tried various combinations (Ctrl-S, Ctrl-O...) and none of them seem to save the edited sudoer.tmp file.
How am I supposed to save? And how do I remove all those other unwanted swap files which I have unintentionally created?
Thanks.
Same here,
got sick and tired of all the bells and whistles from ubuntu.
Just switched to #! today.
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.