Deleted password under Solaris 11

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a very serious problem. I deleted my password with
passwd -d user, and now I can't log in to my account. I thought this would be a way to enter my account without entering the password by every login. Is there a standard UNIX/SOLARIS password to enter my account?







share|improve this question


























    up vote
    0
    down vote

    favorite












    I have a very serious problem. I deleted my password with
    passwd -d user, and now I can't log in to my account. I thought this would be a way to enter my account without entering the password by every login. Is there a standard UNIX/SOLARIS password to enter my account?







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a very serious problem. I deleted my password with
      passwd -d user, and now I can't log in to my account. I thought this would be a way to enter my account without entering the password by every login. Is there a standard UNIX/SOLARIS password to enter my account?







      share|improve this question














      I have a very serious problem. I deleted my password with
      passwd -d user, and now I can't log in to my account. I thought this would be a way to enter my account without entering the password by every login. Is there a standard UNIX/SOLARIS password to enter my account?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 17 at 12:51









      Jeff Schaller

      31.2k846105




      31.2k846105










      asked Feb 17 at 12:10









      Daniel B

      42




      42




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          Login as root, and use



          passwd yourusername


          to set a new password for the user (change yourusername to the appropriate name).



          If you, for whatever reason, can not login as root, you may need to put the system into single user mode ("runlevel S") and issue the command from there. The steps for doing this is described in the official Oracle documentation and, for x86 platforms (not SPARC), boils down to




          1. reboot -p (hmmm... this assumes that you are root)

            • "If the system displays the Press Any Key to Reboot prompt, press any key to reboot the system. Or, you can also use the Reset button at this prompt."

            • "If the system is shut down, turn the system on with the power switch."


          2. "When the GRUB menu is displayed, select the boot entry that you want to modify, then type e to edit that entry."

          3. "Using the arrow keys, navigate to the $multiboot line, then type –s at the end of the line."

          4. "To exit the GRUB edit menu and boot the entry you just edited, press Control-X. If you are not using a serial console on a system with UEFI firmware, pressing F10 also boots the entry."

          5. "Verify that the system is at run level S." ... with who -r.

          6. "Perform the maintenance task that required the change to run level S." (this is where you use passwd yourusername).

          7. "Reboot the system."

          The above is untested as I do not have a Solaris system available.






          share|improve this answer



























            up vote
            0
            down vote













            Unless "PASSREQ=NO" is set in /etc/default/login, you'd not be able to login with out a password--it's set to YES by default as well as reco'd.



            You'll have to have a SA reset your password. If you're the only SA, you'll need to boot off media, mount the root pool, and manually edit the shadow or /etc/default/login file to get back in.



            Another option if you're the only SA is that if you have any other boot environments (BE's), you could boot to an ABE, and from there mount the current BE to modify the shadow or /etc/default/login file to get back in on the current BE.






            share|improve this answer




















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );








               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f424778%2fdeleted-password-under-solaris-11%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote













              Login as root, and use



              passwd yourusername


              to set a new password for the user (change yourusername to the appropriate name).



              If you, for whatever reason, can not login as root, you may need to put the system into single user mode ("runlevel S") and issue the command from there. The steps for doing this is described in the official Oracle documentation and, for x86 platforms (not SPARC), boils down to




              1. reboot -p (hmmm... this assumes that you are root)

                • "If the system displays the Press Any Key to Reboot prompt, press any key to reboot the system. Or, you can also use the Reset button at this prompt."

                • "If the system is shut down, turn the system on with the power switch."


              2. "When the GRUB menu is displayed, select the boot entry that you want to modify, then type e to edit that entry."

              3. "Using the arrow keys, navigate to the $multiboot line, then type –s at the end of the line."

              4. "To exit the GRUB edit menu and boot the entry you just edited, press Control-X. If you are not using a serial console on a system with UEFI firmware, pressing F10 also boots the entry."

              5. "Verify that the system is at run level S." ... with who -r.

              6. "Perform the maintenance task that required the change to run level S." (this is where you use passwd yourusername).

              7. "Reboot the system."

              The above is untested as I do not have a Solaris system available.






              share|improve this answer
























                up vote
                2
                down vote













                Login as root, and use



                passwd yourusername


                to set a new password for the user (change yourusername to the appropriate name).



                If you, for whatever reason, can not login as root, you may need to put the system into single user mode ("runlevel S") and issue the command from there. The steps for doing this is described in the official Oracle documentation and, for x86 platforms (not SPARC), boils down to




                1. reboot -p (hmmm... this assumes that you are root)

                  • "If the system displays the Press Any Key to Reboot prompt, press any key to reboot the system. Or, you can also use the Reset button at this prompt."

                  • "If the system is shut down, turn the system on with the power switch."


                2. "When the GRUB menu is displayed, select the boot entry that you want to modify, then type e to edit that entry."

                3. "Using the arrow keys, navigate to the $multiboot line, then type –s at the end of the line."

                4. "To exit the GRUB edit menu and boot the entry you just edited, press Control-X. If you are not using a serial console on a system with UEFI firmware, pressing F10 also boots the entry."

                5. "Verify that the system is at run level S." ... with who -r.

                6. "Perform the maintenance task that required the change to run level S." (this is where you use passwd yourusername).

                7. "Reboot the system."

                The above is untested as I do not have a Solaris system available.






                share|improve this answer






















                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  Login as root, and use



                  passwd yourusername


                  to set a new password for the user (change yourusername to the appropriate name).



                  If you, for whatever reason, can not login as root, you may need to put the system into single user mode ("runlevel S") and issue the command from there. The steps for doing this is described in the official Oracle documentation and, for x86 platforms (not SPARC), boils down to




                  1. reboot -p (hmmm... this assumes that you are root)

                    • "If the system displays the Press Any Key to Reboot prompt, press any key to reboot the system. Or, you can also use the Reset button at this prompt."

                    • "If the system is shut down, turn the system on with the power switch."


                  2. "When the GRUB menu is displayed, select the boot entry that you want to modify, then type e to edit that entry."

                  3. "Using the arrow keys, navigate to the $multiboot line, then type –s at the end of the line."

                  4. "To exit the GRUB edit menu and boot the entry you just edited, press Control-X. If you are not using a serial console on a system with UEFI firmware, pressing F10 also boots the entry."

                  5. "Verify that the system is at run level S." ... with who -r.

                  6. "Perform the maintenance task that required the change to run level S." (this is where you use passwd yourusername).

                  7. "Reboot the system."

                  The above is untested as I do not have a Solaris system available.






                  share|improve this answer












                  Login as root, and use



                  passwd yourusername


                  to set a new password for the user (change yourusername to the appropriate name).



                  If you, for whatever reason, can not login as root, you may need to put the system into single user mode ("runlevel S") and issue the command from there. The steps for doing this is described in the official Oracle documentation and, for x86 platforms (not SPARC), boils down to




                  1. reboot -p (hmmm... this assumes that you are root)

                    • "If the system displays the Press Any Key to Reboot prompt, press any key to reboot the system. Or, you can also use the Reset button at this prompt."

                    • "If the system is shut down, turn the system on with the power switch."


                  2. "When the GRUB menu is displayed, select the boot entry that you want to modify, then type e to edit that entry."

                  3. "Using the arrow keys, navigate to the $multiboot line, then type –s at the end of the line."

                  4. "To exit the GRUB edit menu and boot the entry you just edited, press Control-X. If you are not using a serial console on a system with UEFI firmware, pressing F10 also boots the entry."

                  5. "Verify that the system is at run level S." ... with who -r.

                  6. "Perform the maintenance task that required the change to run level S." (this is where you use passwd yourusername).

                  7. "Reboot the system."

                  The above is untested as I do not have a Solaris system available.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 17 at 12:39









                  Kusalananda

                  103k13202318




                  103k13202318






















                      up vote
                      0
                      down vote













                      Unless "PASSREQ=NO" is set in /etc/default/login, you'd not be able to login with out a password--it's set to YES by default as well as reco'd.



                      You'll have to have a SA reset your password. If you're the only SA, you'll need to boot off media, mount the root pool, and manually edit the shadow or /etc/default/login file to get back in.



                      Another option if you're the only SA is that if you have any other boot environments (BE's), you could boot to an ABE, and from there mount the current BE to modify the shadow or /etc/default/login file to get back in on the current BE.






                      share|improve this answer
























                        up vote
                        0
                        down vote













                        Unless "PASSREQ=NO" is set in /etc/default/login, you'd not be able to login with out a password--it's set to YES by default as well as reco'd.



                        You'll have to have a SA reset your password. If you're the only SA, you'll need to boot off media, mount the root pool, and manually edit the shadow or /etc/default/login file to get back in.



                        Another option if you're the only SA is that if you have any other boot environments (BE's), you could boot to an ABE, and from there mount the current BE to modify the shadow or /etc/default/login file to get back in on the current BE.






                        share|improve this answer






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          Unless "PASSREQ=NO" is set in /etc/default/login, you'd not be able to login with out a password--it's set to YES by default as well as reco'd.



                          You'll have to have a SA reset your password. If you're the only SA, you'll need to boot off media, mount the root pool, and manually edit the shadow or /etc/default/login file to get back in.



                          Another option if you're the only SA is that if you have any other boot environments (BE's), you could boot to an ABE, and from there mount the current BE to modify the shadow or /etc/default/login file to get back in on the current BE.






                          share|improve this answer












                          Unless "PASSREQ=NO" is set in /etc/default/login, you'd not be able to login with out a password--it's set to YES by default as well as reco'd.



                          You'll have to have a SA reset your password. If you're the only SA, you'll need to boot off media, mount the root pool, and manually edit the shadow or /etc/default/login file to get back in.



                          Another option if you're the only SA is that if you have any other boot environments (BE's), you could boot to an ABE, and from there mount the current BE to modify the shadow or /etc/default/login file to get back in on the current BE.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Feb 20 at 23:00









                          sleepyweasel

                          86319




                          86319






















                               

                              draft saved


                              draft discarded


























                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f424778%2fdeleted-password-under-solaris-11%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Bahrain

                              Postfix configuration issue with fips on centos 7; mailgun relay