Is there a way to get back into the web interface???!
I don't know where the users are configured for the web interface. Could anyone help me find the right config file?
could you precise the problem :
have you installed web server or are you talking about the Western digital Shared storage Manager?
Are you prompted for a user /Password when connecting to http://<Mybook> ?
if yes, have you tried admin / 123456 ?
What user do you use when connecting SSh ? a user you have created ?
if you have forgotten the password, have you tried the reset button of the Mybook while restarting ? this action will reset password and network configuration to factory settings…
Just the WD storage manager interface thingy.
Tried the default. SSH i use the user i created through the webinterface. If I use the reset button, will i lose any data? Will it reset the whole thing to default so i'll lose ssh and rtorrent stuff?
I have a similar problem, the Western digital Shared storage Manager is not visible from my browser although the Mybook I is up and
running (I can see and use my shares)
I tried a reset as I also forgot my user/pass but this did not help to 'restart' the WD web interface which I hoped for…..;-(
Is the only solution to copy the backup images over to the drive, or is there something else I could try?
Solution coming shortly - have to write it up
This is a painless procedure to reset the Shared Storage Manager password.
You've forgotten the password - now you can't do anything without manually editing multiple files and you don't want to do that, do you?
The default Shared Storage Manager on the MBWE is served by lighttpd. Authentication is handled by an htdigest file, not system authentication.
- SSH Enabled - with root access (either direct login or via su or sudo su -)
- Optware Package Management
- Nano installed (you may use vi or other editor - just substitute your editor for 'nano' in the command, obviously use the appropriate save and exit commands)
- Still using lighhtpd as your web server. (You can check this via SSH using 'ps -A' - look for the lighhtpd process.)
- Log into the MyBook via SSH.
- Change to root if logging in as another user.
- First we'll add a little script that makes it easier to create a user:realm:passwordhash for cut & paste into the htdigest file.
- Copy and paste the following short script:
#!/bin/sh user=$1 realm=$2 pass=$3 hash=`echo -n "$user:$realm:$pass" | md5sum | cut -b -32` echo "$user:$realm:$hash"
- Save (ctl-o) & exit (ctl-x).
- Now let's make it executable:
chmod +x /bin/gen-htdigest-entry
- Let's find that htdigest file.
- You are looking for a section that looks similar to this:
auth.backend = "htdigest" auth.backend.htdigest.userfile = "/var/private/lighttpd.htdigest.user" auth.require = ( "/auth" => ( "method" => "digest", "realm" => "nas admin", "require" => "valid-user" # bruce - removed user= # "require" => "user=admin" ) )
- We are concerned about the following entries (NOTE: On my configuration "require" => "user=admin" was commented out - apparently by bruce :-P. Any user defined in the htdigest file will be able to admin the Shared Storage Manager):
auth.backend.htdigest.userfile = "/var/private/lighttpd.htdigest.user" "realm" => "nas admin"
- Exit nano (ctl-x).
- Now to generate the user authentication entry, substitute in your user and realm. Username can be anything - use 'admin' for your sanity. Obviously sustitute your own password.
gen-htdigest-entry 'admin' 'nas admin' 'password'
- Copy the output which should be something like:
- Backup the original htdigest file defined by 'auth.backend.htdigest.userfile'.
cp /var/private/lighttpd.htdigest.user /var/private/lighttpd.htdigest.user.old
- Open the htdigest file.
- Delete the existing admin user.
- Paste the generated htdigest entry.
- Save (ctl-o) & exit (ctl-x)
- Try logging in. No need to restart lighttpd.
- Let me know if it worked.
Thanks for te great write-up, I am sure it will benefit people out there who can still ssh in (I was so stupid as to forget my username/password I created for SSH)
My only option is to try to re-image the HD, hopefully will make a right choice of the various methods I have found sofar (they all seem a bit long winded….copying my AppleTV HD image was much easier….)
Anyway if that doesn't work, I will use the HD drive without the casing, wasn't too impressed with speed of the box anyway. Think I will have more fun from an Apple Time Capsule!
I believe - though not sure anymore - that re-running the ssh hack will reset the root password.
Could not re-run SSH hack, as I couldn't connect to mybookworld web interface ;-(
Have now re-imaged the complete drive using one of the resuce procedures found here. All seemed succesful, booted, setup in web interface, added share etc. SSH hack!
Just one minor problem, couldn't connect to shares, not even public!!
Installed mionet crap after which I could access mionet share. Removed mionet again.
Removed my own made shares, created new ones using CAPS for share names and can now connect!
However I can still not connect to Pulic share…..get a Windows message that it cannot connect to \\WD\Public
Any tips, or just do the complete (painful) restore proces of the HD again?