After Setup Cannot Login to Amahi

mediaslave
Posts: 1
Joined: Sat Aug 14, 2010 10:00 am

After Setup Cannot Login to Amahi

Postby mediaslave » Sat Aug 14, 2010 10:04 am

I followed the installation instructions as provided on this site; however, when i click the Amahi HDA Dashboard and attempt to login the page tells me I have entered the incorrect user name or password. I have double checked my user name and password under account information on my desktop, but I still get the same error. Is there a way to have your user name and password e-mailed to you?

whetu
Posts: 30
Joined: Tue Jul 13, 2010 3:32 am

Re: After Setup Cannot Login to Amahi

Postby whetu » Mon Aug 16, 2010 3:59 pm

if you can get to the command line, login as root and then try:

Code: Select all

grep admin /etc/passwd
If you get no result, use:

Code: Select all

useradd admin && passwd admin
Once that's done, you should be able to login to the web ui.

Musing out loud - A relatively simple boot-time sanity-check script could be included in Amahi to check for this account, and if it's not found it can be added with a generic password. Something like (really raw off the top of my head)...

Code: Select all

#!/bin/sh # grep -w admin /etc/passwd if [ $? = 1 ] then useradd -p `openssl passwd -crypt admin` admin else sed -i -e '/admin.check.script.sh/d' /etc/rc.local fi
/bin/sh syntax might be [ $? == 1 ], again off the top of my head...

Who is online

Users browsing this forum: No registered users and 34 guests