I thought I’ll make this thread for all of you out there who have questions but are afraid to ask them. This is your chance!

I’ll try my best to answer any questions here, but I hope others in the community will contribute too!

  • @shadowintheday2@lemmy.world
    link
    fedilink
    English
    5
    edit-2
    9 months ago

    You can configure this behavior for CLI, and by proxy could run GUI programs that require elevation through the CLI:

    https://wiki.archlinux.org/title/Sudo#Using_visudo

    Defaults passwd_timeout=0(avoids long running process/updates to timeout waiting for sudo password)

    Defaults timestamp_type=global (This makes password typing and it’s expiry valid for ALL terminals, so you don’t need to type sudo’s password for everything you open after)

    Defaults timestamp_timeout=10(change to any amount of minutes you wish)

    The last one may be the difference between having to type the password every 5 minutes versus 1-2 times a day. Make sure you take security implications into account.

    • Lunya \ she/it
      link
      fedilink
      39 months ago

      I think something like

      %wheel ALL= NOPASSWD: /bin/apt
      

      should be the right way of disabling the password for apt.