URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       TGIF.Network
  HTML https://tgifnetwork.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Pi-Star General Discussions
       *****************************************************
       #Post#: 1013--------------------------------------------------
       HOW TO RESET PASSWORD ON PI-STAR
   DIR By: robertbretzman
       Date: April 27, 2019, 4:28 pm
       ---------------------------------------------------------
       The forum will not let me remove the first post in the topic
       for some reason. So ignore the procedure I first posted as it is
       incorrect. Read on for the correct procedure... Thanks to all
       who found this error as we strive to have correct information on
       the Forum.
       73
       Robert
       K4WZV
       #Post#: 1294--------------------------------------------------
       Re: HOW TO RESET PASSWORD ON PI-STAR
   DIR By: stupidfatkid
       Date: June 18, 2019, 10:30 am
       ---------------------------------------------------------
       I heard a conversion on TGIF earlier where a user was directed
       to this post for instructions on how to reset his Pi-Star
       dashboard password.  The instructions posted here are for
       changing the pi user password on a standard installation of
       Raspbian.  These instructions won't work for Pi-Star.  For
       example, there is no pi user on Pi-Star.  You can get the
       instructions to work if you change "passwd pi" to "passwd
       pi-star", and add "mount -t proc proc /proc" to the
       instructions.  But be aware that only changes the pi-star
       password used to login at the terminal.  It does not change the
       pi-star password used on the dashboard.
       My suggestion would be to always back up your Pi-Star
       configuration -- using the Backup/Restore feature under the
       Configuration menu.  If you forgot your password, re-image your
       SD card and start over from your backup file.
       #Post#: 1295--------------------------------------------------
       Re: HOW TO RESET PASSWORD ON PI-STAR
   DIR By: WB3IHY
       Date: June 18, 2019, 11:30 am
       ---------------------------------------------------------
       (Raises hand guiltily) Yeah, that was me who directed him to
       this post.
       Once he's able to gain access via SSH, this should guide him
       "the rest of the way" (IE Allow him to change the actual
       dashboard password):
  HTML https://forum.pistar.uk/viewtopic.php?t=1572
       tldr:
       sudo htpasswd -c /var/www/.htpasswd pi-star
       #Post#: 1296--------------------------------------------------
       Re: HOW TO RESET PASSWORD ON PI-STAR
   DIR By: stupidfatkid
       Date: June 18, 2019, 3:33 pm
       ---------------------------------------------------------
       Joe,
       This is my first stab at writing up the instructions, as we
       talked about on the radio this afternoon.  I'm sure I probably
       missed something, so feel free to edit them.  I hope you find
       them useful.
       Purpose:  This procedure outlines the steps to reset your
       Pi-Star password if you have forgotten it.  This is the password
       you enter when you click the Configuration menu on the Pi-Star
       dashboard.  This procedure saves you from re-imaging your SD
       card and starting over from scratch.  This procedure cannot be
       done remotely.  You need physical access to the Raspberry Pi
       that’s running your Pi-Star hotspot.
       
       Requirements:
       - You will need a monitor and keyboard connected to the
       Raspberry Pi that’s running your Pi-Star hotspot
       - You will need another computer that’s capable of reading the
       SD card that has the Pi-Star image installed
       Steps:
       1. Power down your Raspberry Pi by unplugging the USB power
       cable
       2. Remove the SD card from the Raspberry Pi
       3. Insert the SD card into another computer.  If you’re
       using a Windows computer for this step you will need to cancel
       any pop-ups asking if you want to format a disk.
       4. Locate and open the following file on the SD card
       cmdline.txt
       5. Add a space and the following text to the end of the line
       
       init=/bin/sh
       6. Save the file
       7. Safely eject the SD card from your computer
       8. Connect a monitor and keyboard to your Raspberry Pi
       9. Insert the SD card back into your Raspberry Pi
       10. Plug the USB power cable into your Raspberry Pi
       11. You should see a bunch of text scroll past on the
       monitor as the Raspberry Pi boots up
       12. Once the Raspberry Pi as completed booting you should
       see a flashing cursor.  Press the Enter key on the keyboard.
       You should be presented with a # sign prompt.
       13. Type the following command at the # sign prompt.  This
       will log you in as the root user with no password needed.
       su
       14. Type the following command
       mount -t proc proc /proc
       15. Type the following command (that’s an oh, not a zero)
       mount -o remount,rw /
       16. Type the following command
       passwd pi-star
       17. Follow the prompts to enter your new pi-star password
       18. After resetting the pi-star password unplug the USB
       power cable
       19. Remove the SD card
       20. Insert the SD card into another computer.  If you’re
       using a Windows computer for this step, you will need to cancel
       any pop-ups asking if you want to format a disk.
       21. Locate and open the file named “cmdline.txt”
       22. Locate the text below and delete it (this is the text
       you added in step 5, don’t forget to delete the space before the
       i)
       init=/bin/sh
       23. Save the file
       24. Safely eject the SD card from your computer
       25. Insert the SD card back into your Raspberry Pi
       26. Plug the USB power cable into your Raspberry Pi.  Your
       Raspberry Pi should boot up.
       ******* The following steps can be performed using the keyboard
       plugged into the Raspberry Pi or by connecting to the Raspberry
       Pi over SSH ********
       27. Login with username pi-star and the new password you set
       in step 17
       28. Type the following command
       rpi-rw
       29. Type the following command
       sudo htpasswd -c /var/www/.htpasswd pi-star
       30. Follow the prompts to enter the same pi-star password
       you entered on step 17
       31. Type the following command
       exit
       32. Confirm you can login to the Pi-Star dashboard using the
       new password
       #Post#: 5623--------------------------------------------------
       Re: HOW TO RESET PASSWORD ON PI-STAR
   DIR By: ki5us
       Date: December 22, 2024, 10:21 am
       ---------------------------------------------------------
       Here's another, simpler way to set/reset the password on your
       pi-star that I discovered (thanks to YL3IM).  I'm running Ubuntu
       24.04.
       First, be sure that you have apache2-utils installed on your
       working linux/mac computer.  You can quickly check if it's
       installed by typing (in a terminal, at the prompt):
       man htpasswd
       If the system displays the man entry, you're good to proceed to
       the next steps.  If not, install the apache2-utils package.
       Remove the SD card from the Rpi and mount it on your working
       system. Open a terminal window and navigate to
       cd /<path to the sd card root partition>//var/www/
       Now, type
       sudo htpasswd .htpasswd pi-star
       Of course, you'll first be asked for the sudo password.  Then,
       you'll be prompted to change the password for user "pi-star"
       twice.
       Once done, you can unmount the sd card, re-insert it into the
       Rpi and the user "pi-star" should now have the new password
       active.  It's a good idea to do this if you haven't changed the
       password from the default "raspberry", especially with all the
       foreign hacking going on.
       Good luck and 73
       Keith/KI5US
       *****************************************************
       Page 1 of 1