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

    Ubuntu 16.04 Root User not found

    Scheduled Pinned Locked Moved IT Discussion
    19 Posts 4 Posters 1.6k 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.
    • DustinB3403D
      DustinB3403
      last edited by

      This guide here should help you to login as root.

      LakshmanaL 1 Reply Last reply Reply Quote 0
      • LakshmanaL
        Lakshmana @DustinB3403
        last edited by

        @DustinB3403 When i have the guide given i have got this error 0_1470315539916_test2.JPG

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

          @Lakshmana just going off of the screenshot I would guess there is a formatting error in

           /etc/sudoers
          

          run

          sudo cat /etc/sudoers
          

          and output what is there.

          LakshmanaL 1 Reply Last reply Reply Quote 0
          • LakshmanaL
            Lakshmana @DustinB3403
            last edited by

            @DustinB3403 Same error mentioned in the screenshot

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

              Please follow these steps and screenshot what is there.

              cd /etc
              
              LakshmanaL 1 Reply Last reply Reply Quote 0
              • LakshmanaL
                Lakshmana @DustinB3403
                last edited by

                @DustinB3403 cd /etc no other things mentioned as output

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

                  @Lakshmana said in Ubuntu 16.04 Root User not found:

                  @DustinB3403 cd /etc no other things mentioned as output

                  Sorry I meant to add

                  ls -a
                  
                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    Ubuntu does not use a root user by default.

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

                      @scottalanmiller said in Ubuntu 16.04 Root User not found:

                      Ubuntu does not use a root user by default.

                      Scott the trouble (as I understand it) is that even the user he created doesn't have root access.

                      1 Reply Last reply Reply Quote 0
                      • T
                        tiagom
                        last edited by tiagom

                        Appears to be a corrupt sudoers file, take a look at the following link.

                        http://askubuntu.com/questions/73864/how-to-modify-a-invalid-etc-sudoers-file-it-throws-out-an-error-and-not-allowi

                        LakshmanaL 1 Reply Last reply Reply Quote 1
                        • scottalanmillerS
                          scottalanmiller
                          last edited by

                          Does this work...

                          sudo -i  su
                          
                          1 Reply Last reply Reply Quote 0
                          • LakshmanaL
                            Lakshmana @tiagom
                            last edited by

                            @tiagom I used 'pkexec bash' command where the root login done now

                            LakshmanaL 1 Reply Last reply Reply Quote 0
                            • LakshmanaL
                              Lakshmana @Lakshmana
                              last edited by

                              @Lakshmana Now I am able to login as Root user but unable to change the paasword.
                              I have provided the ssh port as 22 but the vm machine is not able to take the putty session in the windows 10 machine.The ip in the ubuntu is able to ping but network "Connection Refused" error is coming

                              1 Reply Last reply Reply Quote 0
                              • T
                                tiagom
                                last edited by

                                Is it installed?

                                https://help.ubuntu.com/lts/serverguide/openssh-server.html

                                LakshmanaL 1 Reply Last reply Reply Quote 0
                                • LakshmanaL
                                  Lakshmana @tiagom
                                  last edited by

                                  @tiagom ssh server is conifugured in it.port 22 is taken from #

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

                                    On Ubuntu run.... netstat -tulpn to see if port 22 is listening.

                                    LakshmanaL 1 Reply Last reply Reply Quote 0
                                    • LakshmanaL
                                      Lakshmana @scottalanmiller
                                      last edited by

                                      @scottalanmiller No 22 port is not listening

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

                                        Might need to boot into single user mode and fix /etc/sudoers from there.

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