Page 1 of 1

Fresh Ubuntu install. What's the username?

PostPosted: Fri May 24, 2013 8:53 pm
by wwarren1
I've done a fresh install of Subsonic on Ubuntu and can't get past the login screen. Is there a default username and password I should have found elsewhere in the installation instructions? I've tried my ubuntu login and a few common combinations like admin and admin, but no luck guessing it.

Re: Fresh Ubuntu install. What's the username?

PostPosted: Fri May 24, 2013 11:48 pm
by GJ51
Subsonic stores user passwords in encrypted form in the program database, probably using salted BCrypt hashes, although the exact implementation has not been investigated in the context of this article. It is not technically feasible to decrypt these hashes and retrieve the original password strings.

However, current versions of Subsonic export the program settings to a text file each time the server is shut down, and they reimport this text file when it is started back up. This text file also includes the encrypted password hashes, and they can easily be replaced by substituting the corresponding line as follows:

Open the Subsonic control panel and stop the service
Open a Windows Explorer and navigate to C:\subsonic\db
(on Linux this may be under /var/subsonic/db or /usr/bin/subsonic/db)
Open the file subsonic.script in a text editor


http://blog.gerke-preussner.de/2010/12/ ... -streamer/
Near the top of the file, find the following line: INSERT INTO USER VALUES('admin','enc:xxxxxxxxxx',0,0,0,FALSE)
Note that the xxxxxxxxxx value is a hexadecimal string that represents the encrypted hash of the user’s current password.

Replace the line above with the following: INSERT INTO USER VALUES('admin','enc:61646d696e',0,0,0,FALSE)
Note that the value 61646d696e is the hash for the password "admin"

Save the file
Restart the service in the Subsonic control panel.
It is now possible to log on with user name and password admin, which are also the default administrator credentials. Don’t forget to change the password to something else on the Settings screen right after logging on. Obviously, this technique works with any other user account as well.

Re: Fresh Ubuntu install. What's the username?

PostPosted: Sat May 25, 2013 2:24 pm
by wwarren1
I'll give that a try, but do all first time installs have to go through that?

Re: Fresh Ubuntu install. What's the username?

PostPosted: Sat May 25, 2013 2:28 pm
by GJ51
NO - Shouldn't happen that way.

Re: Fresh Ubuntu install. What's the username?

PostPosted: Sat May 25, 2013 7:52 pm
by wwarren1
Fixed. Thanks. I remember looking at Subsonic about 5 years ago, but didn't remember that I had ever installed it. It appears that I must have because it already knew which folder my music was in.