Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: What do you think of the sudo timeout / grace period?

  1. #1
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu

    What do you think of the sudo timeout / grace period?

    You may not be aware of this behavior, but when you perform an administrative function (for example, installing a new program), your authentication gets cached for a bit (15 minutes, I believe... maybe 5 minutes), and you won't be prompted again for your password if you perform a second or third administrative function within that grace period (otherwise known as the sudo timeout).

    I'm not sure what to think of this.

    On the one hand, it seems rather insecure. After all, isn't the whole point of having password authentication that it provides a layer of security? Would it be possible for something to piggyback your authentication and launch some kind of malware without your permission? And, if not, why have password authentication at all? Why not keep it permanently cached?

    On the other hand, assuming it isn't the optimal security implementation, would getting rid of the timeout just frustrate new users even more and bring us more "I just want to log in as root all the time! This is my computer, after all" threads? In other words, would tightening that security just lead to more people getting rid of the security measure altogether?

    What do you think?

    Like the sudo timeout? Don't like it and want to get rid of it? Don't like it but think the alternative would be worse? Don't really care? Didn't even notice there was one?

    I'm really curious as to what people's opinions on this are.

    Thanks in advance for your two cents or pence (or whatever a pittance is in your currency).

  2. #2
    Join Date
    Oct 2007
    Beans
    Hidden!

    Re: What do you think of the sudo timeout / grace period?

    It always made me nervous. I'm much more comfortable using su to log in as root and then exiting out after I'm done.

  3. #3
    Join Date
    Oct 2005
    Beans
    693

    Re: What do you think of the sudo timeout / grace period?

    It can be summed up in 3 words:

    A Necessary Evil.

    It's a compromise between security and usability.

  4. #4
    Join Date
    Apr 2006
    Location
    Scotland
    Beans
    1,225
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: What do you think of the sudo timeout / grace period?

    i think its fine. nobody but me can sudo and i only very rarely use it at that.

    if you use sudo all the time and you are not a sysadmin of a large network then your using your computer wrong.

  5. #5
    Join Date
    Oct 2006
    Beans
    4,628
    Distro
    Kubuntu 18.10 Cosmic Cuttlefish

    Re: What do you think of the sudo timeout / grace period?

    I feel the same as aysiu. I'm not sure. In a way it's a little more convenient. You can perform multiple administrative tasks in that period and only have to enter your password once. But I've often wondered myself if it would be possible for some code to execute itself as root within that time period. But I think if we were to get rid of it and require the password every time you perform an administrative task, we would start seeing comments like "it's Vista UAC, Aaahhh!"
    Blog | Ubuntu User #15350 | Zsh FTW | Ubuntu Security | Nothing to hide?
    AMD Phenom II X6 1075T @ 3GHz, Nvidia GTX 650, 8GB DDR3 RAM, 1 X 1TB, 2 X 3TB HDD
    Please don't request support via PM


  6. #6
    Join Date
    Jul 2007
    Beans
    1,577

    Re: What do you think of the sudo timeout / grace period?

    I usually change the timeout to zero (in case anyone's interested, you add ,timestamp_timeout=0 to the Defaults line in /etc/sudoers) but that is more to protect me from my own typos and silly mistakes than from outside threats.

    This issue is really a little moot for those who know the command sudo -i
    Last edited by jken146; April 22nd, 2008 at 07:12 PM.

  7. #7
    Join Date
    Feb 2006
    Beans
    190

    Re: What do you think of the sudo timeout / grace period?

    I really like it. I can't really see any easy way for it to be exploited (I can see ways, but I think I would catch them.) It really makes it easy on a fresh install to get what you need, and do a few commands without being slowed down.

    I think it should be configurable and be allowed to be disabled for users that it bothers, but for me I hope it stays. Its done nothing but make my (K)Ubuntu experience more enjoyable.
    There was a sig here, now its gone.

  8. #8
    Join Date
    Feb 2006
    Beans
    190

    Re: What do you think of the sudo timeout / grace period?

    Sorry, for some reason it double posted.
    Last edited by Xzallion; April 22nd, 2008 at 07:14 PM. Reason: Double post
    There was a sig here, now its gone.

  9. #9
    Join Date
    Apr 2006
    Beans
    313

    Re: What do you think of the sudo timeout / grace period?

    I always disable the grace period. I don't mind plugging in a password.
    If the advice you're given in this forum solves your issue, please mark the post as [SOLVED] in consideration to others.
    Registered Linux User: 448689 | How To: Secure the GRUB Boot Loader
    [ Acer Aspire 5535 | Arch Linux x86_64 | Compiz WM ]

  10. #10
    Join Date
    Feb 2007
    Location
    Tuxland
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: What do you think of the sudo timeout / grace period?

    I completely support it. I don't want Ubuntu to turn into the Vista UAC mess.

    Besides it's easily configurable (via config files). In the future though I think Ubuntu should have an Administration applet that lets you configure many different security aspects for yourself in a user friendly manner. Some systems need the better security, and eliminating the grace period and interactive login makes sense (for instance in corporate networks).

Page 1 of 3 123 LastLast

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
  •