Results 1 to 4 of 4

Thread: time out sudo privileges immediately?

  1. #1
    Join Date
    Jan 2012
    Location
    'merica
    Beans
    61
    Distro
    Lubuntu Development Release

    time out sudo privileges immediately?

    How do I make sudo require a password every use in terminal? As in, once you do one sudo operation, sudo stays authorized for five minutes unless you specifically revoke it (sudo -k). how do I make it time out immediately?
    Note: I'm running Ubuntu Studio 12.4, and I use Guake for all my terminal stuff. Don't know if that would affect it.

  2. #2
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: time out sudo privileges immediately?

    Cheesemill

  3. #3
    Join Date
    Jan 2012
    Location
    'merica
    Beans
    61
    Distro
    Lubuntu Development Release

    Re: time out sudo privileges immediately?

    Thanks a lot. Now my paranoia is satisfied.

  4. #4
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: time out sudo privileges immediately?

    You can set it for the whole set of users by making it the default.

    Code:
    Defaults        timestamp_timeout=0
    Or you can set it for some users and not others. The full explanations of options is in the manual page for sudoers.

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
  •