Michael Havens wrote:
>
> It seems that now whenever I type in 'visudo' I get the 'swap file' error.
> Should I erase the /etc/sudoers file (I already tried erasing the .tmp file
> but it persists and when I type in visudo I get the /etc/sudoers.tmp even
> though I deleted it.
> Here is what I am thinking:
> 1- copy the contents of sudoers
> 2- rm /etc/sudoers*
> 3- visudo
> 4- put the contents of what I have copied into the new file.
>
> Does this sound about right?
> --
> <:-)~MIKE~(-:>
>
> E325: ATTENTION
> Found a swap file by the name "/etc/.sudoers.tmp.swp"
> owned by: root dated: Tue Dec 9 10:06:49 2003
> file name: /etc/sudoers.tmp
> modified: YES
> user name: root host name: bmike1
> process ID: 770
> While opening file "/etc/sudoers.tmp"
> dated: Tue Dec 9 10:06:16 2003
>
> (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.
>
> Swap file "/etc/.sudoers.tmp.swp" already exists!
> [O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (D)elete it:
>
> On Monday 08 December 2003 09:22 pm, George Toft said:
> ~ Michael Havens wrote:
> ~ >
> ~ > So do you think I should redo it with visudo?
> ~ > It seems to be working fine.
> ~ >
> ~
> ~ Yes.
> ~
> ~ visudo
> ~ :wq
> ~
> ~ If you get the prompt back, you are good to go. If not, it will tell
> ~ you.
>
You didn't press ^Z while in visudo did you?
--
George Toft
Computer Security
AGD,llc
www.agdllc.com
623-203-1760