FOSS nerd, lemm.ee refugee

  • 0 Posts
  • 5 Comments
Joined 7 months ago
cake
Cake day: September 15th, 2025

help-circle
  • The answer to the text of the question is: that would continue to work. sudo doesn’t re-auth while a child process is still running, which in this case is su. Until su terminates, sudo doesn’t have anything to say about it. To be a bit more precise, the time limit for reauth would expire, but sudo doesn’t ask for authorization, and therefore wouldn’t check if that timeout has elapsed, until the next invocation.

    To answer the spirit of the question: you should probably be using sudo -i instead.


  • Makes me think of the time I was running a stripped down laptop motherboard as a server for a while. Was given a laptop with a broken screen, but it had a wired NIC, so I pulled the screen off, along with any other component that wasn’t necessary, and shoved it behind a TV where it was close to the router. Ran on that thing for years before being able to afford better equipment.

    An underrated feature of the laptop server: built-in UPS!