Author Topic: HOW TO RESET PASSWORD ON PI-STAR  (Read 117 times)

0 Members and 0 Guests are viewing this topic.

Offline Robert K4WZV

  • Administrator
  • Full Member
  • *****
  • Posts: 210
  • Location: BrooksvilleFlorida
  • Referrals: 1
HOW TO RESET PASSWORD ON PI-STAR
« on: April 27, 2019, 05:28:36 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
« Last Edit: June 18, 2019, 07:09:18 pm by Robert K4WZV »

Share on Facebook Share on Twitter


Offline stupidfatkid

  • Newbie
  • *
  • Posts: 3
  • Referrals: 0
Re: HOW TO RESET PASSWORD ON PI-STAR
« Reply #1 on: June 18, 2019, 11:30:03 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. 
Like Like x 1 View List

Offline WB3IHY

  • Newbie
  • *
  • Posts: 21
  • Referrals: 0
Re: HOW TO RESET PASSWORD ON PI-STAR
« Reply #2 on: June 18, 2019, 12:30:06 pm »
(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):

https://forum.pistar.uk/viewtopic.php?t=1572

tldr:

sudo htpasswd -c /var/www/.htpasswd pi-star







Offline stupidfatkid

  • Newbie
  • *
  • Posts: 3
  • Referrals: 0
Re: HOW TO RESET PASSWORD ON PI-STAR
« Reply #3 on: June 18, 2019, 04:33:03 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

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
45 Views
Last post December 27, 2018, 05:37:55 pm
by ke5cdk
0 Replies
189 Views
Last post December 28, 2018, 07:52:26 pm
by Robert K4WZV
3 Replies
73 Views
Last post January 10, 2019, 10:55:38 am
by Robert K4WZV
1 Replies
60 Views
Last post January 16, 2019, 04:27:02 am
by ke5cdk
0 Replies
10 Views
Last post February 26, 2019, 03:07:07 pm
by ke5cdk