How to change root passwd in antix?

Forum Forums New users New Users and General Questions How to change root passwd in antix?

  • This topic has 18 replies, 10 voices, and was last updated Jul 29-10:13 pm by BobC.
Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #1968
    Member
    keos

      hi,

      When i install a new system (spanish) i always type a very simple passwd and after everything it’s done i change to a new root passwd. i have tried different things in order to change the root passwd now in antix and nothing works.

      Things like this usualy works: https://www.hivelocity.net/kb/how-to-change-the-root-password-in-linux-systems/ but this time …

      Thank for any idea, a link to some place …

      Desktop: Xfce

      Graphics: AMD Radeon HD 7640G integrated graphics
      GPU: AMD/ATI Trinity [Radeon HD 7640G]

      #1970
      Forum Admin
      anticapitalista
        Helpful
        Up
        0
        ::

        What exactly doesn’t work? What happens when you follow the instructions in that link?

        Philosophers have interpreted the world in many ways; the point is to change it.

        antiX with runit - leaner and meaner.

        #1971
        Member
        keos
          Helpful
          Up
          0
          ::

          nothing happens — it doesn’t change the root passwd.

          `root@antix1:/home/keos# passwd root
          Introduzca la nueva contraseña de UNIX:
          Vuelva a escribir la nueva contraseña de UNIX:
          passwd: contraseña actualizada correctamente
          root@antix1:/home/keos#

          • This reply was modified 5 years, 6 months ago by keos.

          Desktop: Xfce

          Graphics: AMD Radeon HD 7640G integrated graphics
          GPU: AMD/ATI Trinity [Radeon HD 7640G]

          #1973
          Member
          macondo
            Helpful
            Up
            1
            ::

            #passwd <hit Enter>

            Enter twice your new password, that’s it.

            [code]
            root@antix1:/home/keos# passwd root
            [/code]

            No ‘root’ at the end

            Escribe #passwd SOLAMENTE!!!

            PS: anti, the code tags DO NOT WORK!

            • This reply was modified 5 years, 6 months ago by macondo.
            • This reply was modified 5 years, 6 months ago by macondo.
            • This reply was modified 5 years, 6 months ago by macondo.

            antiX Core 64 Bit Runit IceWM

            "Sometimes a man finds his destiny on the road he took to avoid it."

            #1976
            Moderator
            Brian Masinick
              Helpful
              Up
              0
              ::

              If you are logged into a particular account, usually if you simply type passwd and press Enter, you are prompted for the old password, then twice for the new password. If you are logged into the root account and you run passwd, you will be prompted twice for a new password without being prompted for the old password. If you are logged into the root account and you specify an optional parameter containing the user account, from root you can change another user’s password, assuming you have root access.

              Sometimes things do not work the way you expect them to work because you are either not logged in to the account you think that you are logged into or the values you believe that you have typed are not exactly what is expected, and these are what lead to problems, and of course, they are difficult to diagnose because the passwords are not displayed.

              My suggestion before running passwd, either as an individual user or from root are to check where you are:

              The who and whoami commands are useful in this regard. When you type who the command returns the IDs of the logged in users. When you type whoami the command returns the effective user you are currently using. When you run whoami as a regular user, it should display the same userID as the userID you used to login, but if you have successfully switched to the root user, whoami will show that even if you logged in with myuser, whoami, when running as root, will display root. Sometimes these commands are useful to remind you which user account is the current effective user, so this might help you figure out what isn’t what you expect it to be.

              I make it a practice whenever I am running as root to make sure that my root access, whether from login or by using su or sudo to become root as the effective user, I set the prompt as my indicator and reminder of what effective userID I’m using and I supplement this with the who and whoami commands to double check that what my prompts indicate is the same as the actual account, so that helps me verify the first part, and secondly I type password changes slowly and carefully to make sure they are consistent and are using the right ones. This has kept me from running incorrectly and avoids unwanted errors.

              I hope that these ideas are helpful and provide a few simple checks to make sure that the commands you are using are running from the correct account and account access.

              --
              Brian Masinick

              #1979
              Member
              keos
                Helpful
                Up
                0
                ::

                It was the first thing i tried and it doesn works.

                root@antix1:/home/keos# passwd
                Introduzca la nueva contraseña de UNIX:
                Vuelva a escribir la nueva contraseña de UNIX:
                passwd: contraseña actualizada correctamente
                root@antix1:/home/keos#

                Macondo: Probablemente tenga que ver con que el sistema esta instalado en spanish — no es la primera vez que tengo que desinstalar un sistema por parecidas razones.

                • This reply was modified 5 years, 6 months ago by keos.

                Desktop: Xfce

                Graphics: AMD Radeon HD 7640G integrated graphics
                GPU: AMD/ATI Trinity [Radeon HD 7640G]

                #1980
                Member
                keos
                  Helpful
                  Up
                  0
                  ::

                  hi masinick, i did not see your post …

                  root@antix1:/home/keos# whoami
                  root
                  root@antix1:/home/keos#

                  Desktop: Xfce

                  Graphics: AMD Radeon HD 7640G integrated graphics
                  GPU: AMD/ATI Trinity [Radeon HD 7640G]

                  #1987
                  Member
                  Richard
                    Helpful
                    Up
                    0
                    ::

                    Hola keos,
                    ¿Funciona?

                    ASUSTeK 900 EeePC; RAM: 1.96 GiB;
                    antiX19.3; 4.9.235-antix.1-486-smp;
                    HDD: Super Talent STT 30.08 GiB
                    +SD & External HDD.

                    #1988
                    Moderator
                    Brian Masinick
                      Helpful
                      Up
                      0
                      ::

                      hi masinick, i did not see your post …

                      root@antix1:/home/keos# whoami
                      root
                      root@antix1:/home/keos#

                      If you are already the “effective user” root and you type passwd, the result, assuming your typing is accurate, is that you are not prompted for the old password, you are only prompted for the new password, and specifically it is the new root password. Notice that the behavior of the standard passwd command is subtly different, depending on whether it is run by an ordinary user or a privileged user. Is this making any sense, and does it explain any of the unexpected behavior you’ve seen?

                      I add in the who and whoami commands only as a double check to be very certain which user account is going to be affected when I run any privileged command. It’s not a mandatory step, but it does help to make sure I’m doing exactly what I expect to do.

                      --
                      Brian Masinick

                      #1989
                      Forum Admin
                      BitJam
                        Helpful
                        Up
                        0
                        ::

                        My wild guess is the root password did change but you think it didn’t because you are stuck at a place that requires the *user* password. So the question is: what makes you think the root password didn’t change?

                        For example, if you are logged in as a normal user and run “sudo ls” in a terminal, it will require the *user* password, but if you run “su -c ls” it will require the *root* password. Most of the GUI dialogs that ask for a password, ask you for the *user* password. I’ve attached screenshots of a couple of examples.

                        Context is worth 80 IQ points -- Alan Kay

                        #1995
                        Member
                        keos
                          Helpful
                          Up
                          0
                          ::

                          well, things are going to be difficult to understand for me. — i just want to change the root passwd.

                          Any command that can help you to understand what do i have to do?.

                          Thanks.

                          Desktop: Xfce

                          Graphics: AMD Radeon HD 7640G integrated graphics
                          GPU: AMD/ATI Trinity [Radeon HD 7640G]

                          #2006
                          Member
                          fatmac
                            Helpful
                            Up
                            0
                            ::

                            When i install a new system (spanish) i always type a very simple passwd and after everything it’s done i change to a new root passwd. i have tried different things in order to change the root passwd now in antix and nothing works.

                            Just to be sure, did you enter a password, & then change your language/keyboard map, or did you use the same language/keyboard map that you are now using?

                            (If you changed your language/keyboard map after you entered the password, you will be typing different letters.)

                            Linux (& BSD) since 1999

                            #2010
                            Member
                            keos
                              Helpful
                              Up
                              0
                              ::

                              no my friend it is not possible, if it were the case then i will not going to be able to log in the system with the current root passwd i have now, right?

                              • This reply was modified 5 years, 6 months ago by keos.

                              Desktop: Xfce

                              Graphics: AMD Radeon HD 7640G integrated graphics
                              GPU: AMD/ATI Trinity [Radeon HD 7640G]

                              #2042
                              Anonymous
                                Helpful
                                Up
                                0
                                ::

                                root@antix1:/home/keos# passwd

                                able to log in the system with the current root passwd

                                If you are logging into desktop session using root user account… you can expect things to fall down, go boom.
                                big boom.
                                big baddaboom.
                                Do not login to desktop session using root user account.

                                #2063
                                Forum Admin
                                rokytnji
                                  Helpful
                                  Up
                                  0
                                  ::

                                  Works for me. Hit the Manage users button. Select root from choices hitting the big button that says no user selected. Skidoo makes a good point also. Shooting ones self in the face?
                                  Can’t fix that.

                                  • This reply was modified 5 years, 6 months ago by rokytnji.
                                  • This reply was modified 5 years, 6 months ago by rokytnji.
                                  Attachments:

                                  Sometimes I drive a crooked road to get my mind straight.
                                  Not all who Wander are Lost.
                                  I'm not outa place. I'm from outer space.

                                  Linux Registered User # 475019
                                  How to Search for AntiX solutions to your problems

                                Viewing 15 posts - 1 through 15 (of 19 total)
                                • You must be logged in to reply to this topic.