ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Sudo without Password?

    Scheduled Pinned Locked Moved IT Discussion
    12 Posts 9 Posters 933 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gjacobseG
      gjacobse @Alex Sage
      last edited by

      @aaronstuder said in Sudo without Password?:

      Is it safe to remove the requirement to re-enter your password every time you use the sudo command?

      in a production system - I would believe it is never safe to remove the requirement for sudo.

      A 1 Reply Last reply Reply Quote 0
      • A
        Alex Sage @gjacobse
        last edited by Alex Sage

        @gjacobse Interesting. I am 99% sure @scottalanmiller told me he removes the requirement.

        scottalanmillerS 2 Replies Last reply Reply Quote 0
        • M
          marcinozga
          last edited by

          I hate sudo. If I need to do something as root, I login as root. Sudo has to be the biggest waste of keystrokes in history. Sudo su as a last resort.

          1 Reply Last reply Reply Quote 0
          • ObsolesceO
            Obsolesce
            last edited by Obsolesce

            On any Linux PC, personal or production, if I need elevated privelages, and I'm going to actively be there, I'll just use su. Otherwise, to run things like updates or to install something quick, I'll use sudo. If I'm setting up a server from install, I'll definitely use su.

            If you use su, don't walk away without entering exit.

            1 Reply Last reply Reply Quote 1
            • EddieJenningsE
              EddieJennings @Alex Sage
              last edited by

              @aaronstuder said in Sudo without Password?:

              Is it safe to remove the requirement to re-enter your password every time you use the sudo command?

              In general, I'd say "no" to the idea of removing the password requirement, especially on a production system. I know if you have to make successive commands, you're not prompted for the password each time you use sudo. If you needed to do a good bit of work with elevated privileges, it would probably be better to use su, but be extra careful to exit out of it if you leave your workstation.

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @Alex Sage
                last edited by

                @aaronstuder said in Sudo without Password?:

                @gjacobse Interesting. I am 99% sure @scottalanmiller told me he removes the requirement.

                I do.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @Alex Sage
                  last edited by

                  @aaronstuder said in Sudo without Password?:

                  @gjacobse Interesting. I am 99% sure @scottalanmiller told me he removes the requirement.

                  Keep in mind that I'm already working from a dedicated admin account, so the purpose of sudo is only a reminder that I'm making a root level change, not an access control.

                  1 Reply Last reply Reply Quote 1
                  • RomoR
                    Romo
                    last edited by

                    When using configuration management tools it does make things a lot easier to work with if you atleast have one user with passwordless sudo. You really don't need to log to the servers anymore, you only need to properly secure your ssh keys.

                    travisdh1T 1 Reply Last reply Reply Quote 2
                    • stacksofplatesS
                      stacksofplates
                      last edited by stacksofplates

                      I keep it on for my account if I can on that machine but everything controlled by CM doesn't have it. The CM account is locked so you can't log in through the console, only SSH with a key.

                      Root gets a random password that no one knows.

                      1 Reply Last reply Reply Quote 1
                      • travisdh1T
                        travisdh1 @Romo
                        last edited by

                        @romo said in Sudo without Password?:

                        When using configuration management tools it does make things a lot easier to work with if you atleast have one user with passwordless sudo. You really don't need to log to the servers anymore, you only need to properly secure your ssh keys.

                        With things like salt stack, you don't even need that.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post