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

0 Members and 1 Guest are viewing this topic.

Offline Robert K4WZV

  • Administrator
  • Sr. Member
  • *****
  • Posts: 457
  • Karma: +0/-0
  • Location: BrooksvilleFlorida

  • Total Badges: 21
    Badges: (View All)
    Level 5 Fifth year Anniversary Fourth year Anniversary
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 »

Offline stupidfatkid

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0

  • Total Badges: 3
    Badges: (View All)
    First Post Level 1 Windows User
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

  • Full Member
  • ***
  • Posts: 126
  • Karma: +0/-0
  • Location: Northeast Philadelphia, Pennsylvania
    • QRZ Profile
  • Call Sign: WB3IHY

  • Total Badges: 18
    Badges: (View All)
    Fourth year Anniversary Third year Anniversary Level 4
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
  • Karma: +0/-0

  • Total Badges: 3
    Badges: (View All)
    First Post Level 1 Windows User
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
382 Views
Last post December 27, 2018, 05:37:55 pm
by ke5cdk
1 Replies
266 Views
Last post January 16, 2019, 04:27:02 am
by ke5cdk
0 Replies
451 Views
Last post February 26, 2019, 03:07:07 pm
by ke5cdk
0 Replies
802 Views
Last post February 07, 2020, 07:39:54 pm
by VE3RD
3 Replies
947 Views
Last post May 09, 2020, 03:02:32 pm
by WB3IHY

TGIF Network - Thank God It's Friday!