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

    Very Slow Sudo

    Scheduled Pinned Locked Moved Solved IT Discussion
    30 Posts 9 Posters 1.5k 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.
    • IRJI
      IRJ @DustinB3403
      last edited by

      @DustinB3403 said in Very Slow Sudo:

      Another option would be update to current and see if the issue persists.

      👎

      1 Reply Last reply Reply Quote 0
      • black3dynamiteB
        black3dynamite @IRJ
        last edited by

        @IRJ said in Very Slow Sudo:

        I am on a Ubuntu 18.04 system that is very slow when issuing any command via sudo. It can take 30 seconds for the command to complete. Any other command is completed instantaneously.

        The system has very little CPU and memory usage with no resource issues over a very long period of time. If I do sudo su and switch to root, I am able to run commands simultenously. It is only an issue when running sudo

        Is this a Desktop or Server?

        Which terminal emulator are you using?

        IRJI 1 Reply Last reply Reply Quote 1
        • IRJI
          IRJ @black3dynamite
          last edited by

          @black3dynamite said in Very Slow Sudo:

          @IRJ said in Very Slow Sudo:

          I am on a Ubuntu 18.04 system that is very slow when issuing any command via sudo. It can take 30 seconds for the command to complete. Any other command is completed instantaneously.

          The system has very little CPU and memory usage with no resource issues over a very long period of time. If I do sudo su and switch to root, I am able to run commands simultenously. It is only an issue when running sudo

          Is this a Desktop or Server?

          Which terminal emulator are you using?

          This is a desktop and I am using terminator.

          I launched the default gnome-terminal and I got a password prompt immediately. I entered in my pw and the sudo command had same delay :(. On subsequent sudo commands with gnome-terminal, I am having the same time out issue.

          1 Reply Last reply Reply Quote 0
          • DustinB3403D
            DustinB3403
            last edited by

            Everything I'm seeing for this is related to the hostname either not being in /etc/hosts or that file simply being misconfigured.

            IRJI 1 Reply Last reply Reply Quote 0
            • black3dynamiteB
              black3dynamite @IRJ
              last edited by

              @IRJ said in Very Slow Sudo:

              @DustinB3403 said in Very Slow Sudo:

              Maybe this?

              Another option would be update to current and see if the issue persists.

              No effect.

              I already had 127.0.0.1 localhost I tried 127.0.0.1 systemname and it made no difference.

              Shouldn't it be 127.0.0.1 localhost and 127.0.1.1 systemname

              IRJI 2 Replies Last reply Reply Quote 0
              • IRJI
                IRJ @DustinB3403
                last edited by

                @DustinB3403 said in Very Slow Sudo:

                Everything I'm seeing for this is related to the hostname either not being in /etc/hosts or that file simply being misconfigured.

                I do have some shit in my host file, so I copied it and then made a new one with just one line 127.0.0.1 hostname still no joy

                1 Reply Last reply Reply Quote 0
                • IRJI
                  IRJ @black3dynamite
                  last edited by

                  @black3dynamite said in Very Slow Sudo:

                  @IRJ said in Very Slow Sudo:

                  @DustinB3403 said in Very Slow Sudo:

                  Maybe this?

                  Another option would be update to current and see if the issue persists.

                  No effect.

                  I already had 127.0.0.1 localhost I tried 127.0.0.1 systemname and it made no difference.

                  Shouldn't it be 127.0.0.1 localhost and 127.0.1.1 systemname

                  As far as I know, all 127.* is the same loopback address.

                  ObsolesceO 1 Reply Last reply Reply Quote 1
                  • black3dynamiteB
                    black3dynamite
                    last edited by

                    I'll would compare hostnamectl, /etc/hosts and /etc/hostname

                    IRJI 1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403
                      last edited by

                      I can't find anything else besides the /etc/hosts being screwy. This guy wrote a blog post on it just last year.

                      1 Reply Last reply Reply Quote 0
                      • black3dynamiteB
                        black3dynamite
                        last edited by

                        If you were running the sudo command from root, is still slow too?

                        1 Reply Last reply Reply Quote 0
                        • DustinB3403D
                          DustinB3403
                          last edited by

                          Maybe the sudoers file is messed up?

                          1 Reply Last reply Reply Quote 0
                          • 1
                            1337
                            last edited by 1337

                            Check /etc/resolve.conf

                            Is the DNS server valid and can the machine access it and do hostname lookups?

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

                              @IRJ said in Very Slow Sudo:

                              @black3dynamite said in Very Slow Sudo:

                              @IRJ said in Very Slow Sudo:

                              @DustinB3403 said in Very Slow Sudo:

                              Maybe this?

                              Another option would be update to current and see if the issue persists.

                              No effect.

                              I already had 127.0.0.1 localhost I tried 127.0.0.1 systemname and it made no difference.

                              Shouldn't it be 127.0.0.1 localhost and 127.0.1.1 systemname

                              As far as I know, all 127.* is the same loopback address.

                              Ya it's the whole /8

                              1 Reply Last reply Reply Quote 0
                              • IRJI
                                IRJ @black3dynamite
                                last edited by

                                @black3dynamite said in Very Slow Sudo:

                                I'll would compare hostnamectl, /etc/hosts and /etc/hostname

                                All have the same hostname configured.

                                DustinB3403D 1 Reply Last reply Reply Quote 0
                                • DustinB3403D
                                  DustinB3403 @IRJ
                                  last edited by

                                  @IRJ Did you check the sudoers file in /etc/suoders

                                  1 Reply Last reply Reply Quote 0
                                  • IRJI
                                    IRJ @black3dynamite
                                    last edited by

                                    @black3dynamite said in Very Slow Sudo:

                                    @IRJ said in Very Slow Sudo:

                                    @DustinB3403 said in Very Slow Sudo:

                                    Maybe this?

                                    Another option would be update to current and see if the issue persists.

                                    No effect.

                                    I already had 127.0.0.1 localhost I tried 127.0.0.1 systemname and it made no difference.

                                    Shouldn't it be 127.0.0.1 localhost and 127.0.1.1 systemname

                                    So when originally troubleshooting I removed localhost and changed it to systemname I needed both.

                                    1 Reply Last reply Reply Quote 0
                                    • DashrenderD
                                      Dashrender
                                      last edited by

                                      how long has systemname been a thing?

                                      IRJI wrx7mW black3dynamiteB 3 Replies Last reply Reply Quote 1
                                      • IRJI
                                        IRJ @Dashrender
                                        last edited by

                                        @Dashrender said in Very Slow Sudo:

                                        how long has systemname been a thing?

                                        I changed my system name like 2 months ago and thats around the time I had this issue. So yes it appears to be 100% related.

                                        DashrenderD 1 Reply Last reply Reply Quote 0
                                        • DashrenderD
                                          Dashrender @IRJ
                                          last edited by

                                          @IRJ said in Very Slow Sudo:

                                          @Dashrender said in Very Slow Sudo:

                                          how long has systemname been a thing?

                                          I changed my system name like 2 months ago and thats around the time I had this issue. So yes it appears to be 100% related.

                                          yeah - sorry,

                                          My question was off topic -

                                          I know about Localhost - I've never seen systemname before...

                                          ObsolesceO Florida_manF 2 Replies Last reply Reply Quote 1
                                          • ObsolesceO
                                            Obsolesce @Dashrender
                                            last edited by

                                            @Dashrender said in Very Slow Sudo:

                                            @IRJ said in Very Slow Sudo:

                                            @Dashrender said in Very Slow Sudo:

                                            how long has systemname been a thing?

                                            I changed my system name like 2 months ago and thats around the time I had this issue. So yes it appears to be 100% related.

                                            yeah - sorry,

                                            My question was off topic -

                                            I know about Localhost - I've never seen systemname before...

                                            I'm sure there's a good reason for both systemname and localhost assignments, or it woudlnt' be like that.

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