Results 1 to 3 of 3

Thread: Editing sudoers file ?

  1. #1
    Join Date
    Mar 2008
    Location
    Las Vegas
    Beans
    1,148

    Question Editing sudoers file ?

    So about 7 months ago I changed my sudo timeout but in the process was freaked out by VI and generated these files:
    Code:
    /etc # >ls ./.sud*
    ./.sudoers.tmp.swo  ./.sudoers.tmp.swp
    /etc # >ls -l ./.sud*
    -rw------- 1 root root 12288 2009-06-18 14:48 ./.sudoers.tmp.swo
    -rw------- 1 root root 12288 2009-06-18 14:42 ./.sudoers.tmp.swp
    /etc # >
    Can they be deleted???

    TIA,
    Barrie
    Debian Stable
    FluxBox
    Mark Your Thread Solved

  2. #2
    Join Date
    Aug 2006
    Location
    Los Angeles
    Beans
    123
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Editing sudoers file ?

    Assuming sudo still works fine for you.

    Code:
    sudo rm ./.sudoers.tmp.sw*
    If sudo is messed up so you can't run that, try switching to root.

    Code:
    su root

  3. #3
    Join Date
    Mar 2008
    Location
    Las Vegas
    Beans
    1,148

    Re: Editing sudoers file ?

    Quote Originally Posted by jediborger View Post
    Assuming sudo still works fine for you.

    Code:
    sudo rm ./.sudoers.tmp.sw*
    If sudo is messed up so you can't run that, try switching to root.

    Code:
    su root
    Thank you! sudo still works, I rebooted to make sure!
    Debian Stable
    FluxBox
    Mark Your Thread Solved

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •