Reset Root Password, Plugin

Dreambox information exchange on the best dreambox software images and help with all other operational problems with your Dreambox. The ultimate Dreambox satellite TV support forum.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 15-12-2008   #1
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters
Reset Root Password, Plugin

If you want to gain root access to your Dreambox. you've forgotten the password or whatever, you can use this plugin.

There is another method of changing the root password here. How To Change Root Password If You Don't Know It
But if you find that access to Tuxbox Commander is password protected, then this is the method for you.

When run, the attached plugin will change the root password to 'Dreambox'. When run again the password is set back to whatever it was before the first run.

Obviously if you don't have root access you wont be able to FTP this plugin to the Dreambox. The way around this is to mount a shared folder on your PC to the dreambox, then do a manuall plugin install on the dreambox, browse to the mounted share and pick it up from there.

Use at your own risk, This has only been tested on a DM600 with Gemini 4.5, other images may vary, but it should work with most dreambox images.

If you break something while logged in as root, its your own fault!


The board software will not allow me to upload a .gz file, so you'll have to extract the plugin from the ZIP file before attempting to install.

What does it do? It just replaces the passwd file with one where 'dreambox' is the root password and stores the original elsewhere. If you run it a second time it swaps back the old file, setting the password back to the one you don't know.
Attached Files
File Type: zip password_switcher.zip (1.0 KB, 977 views)

Last edited by compufunk; 15-12-2008 at 11:42 PM.
compufunk is offline  
The Following 6 Users Say Thank You to compufunk For This Useful Post:
dennoi (09-06-2009), gorsan (03-09-2009), joes (12-10-2009), mamadou69 (18-10-2009), supachai12345 (04-10-2009), tutto (02-09-2009)
Old 15-12-2008   #2
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters

This is covered elsewhere in more detail, but here is a quick rundown on setting up a network mount.

On your PC:
1: Create a folder somewhere on the PC. (Dont use any spaces in the name)
2: Right Click the folder -> Select Properties -> Select the Sharing tab -> Tick 'Share this folder on the network' and if you want to write to it tick 'Allow network users to change my files'.
3: Click 'Apply'

See attachment 1.

On the Dreambox:
1: Go to Blue Panel -> Extras / Setup -> Automount
2: Press the yellow button to add a new share.
3: Leave the mountpoint as 'nfs'.
4: Change the Client IP to that of your PC.
5: In the dropdown menu select 'cifs'
6: In 'Client dir' enter the name of the folder you created earlier.
7: Enter your PC username and password in the provided slots.
8: Press the Green button to save.

See attachment 2.

You may have to press the green button a second time in the Automount main menu 'restart'.

The mounted folder will appear under /automount/nfs.
Attached Thumbnails
Reset Root Password, Plugin-share-jpg   Reset Root Password, Plugin-screenshot-jpg  

Last edited by compufunk; 15-12-2008 at 11:50 PM.
compufunk is offline  
The Following 2 Users Say Thank You to compufunk For This Useful Post:
dennoi (09-06-2009), tutto (02-09-2009)
Old 19-02-2009   #3
Member
 
Join Date: 18-02-2009
Location: europe
Posts: 23
Thanks: 1
Thanked 1 Time in 1 Post

My System: DM 800 HD Wavefrontier 90 cm windows xp

I guess this is the one

Sorry wrong thread
Attached Thumbnails
Reset Root Password, Plugin-autofs-jpg  
wifi is offline  
The Following User Says Thank You to wifi For This Useful Post:
dennoi (09-06-2009)
Old 19-02-2009   #4
Dreambox Gimp & Coder
 
B16MCC's Avatar
 
Join Date: 16-11-2005
Location: /var/tuxbox/config
Posts: 920
Thanks: 68
Thanked 505 Times in 224 Posts
Blog Entries: 13

My System: 2 Dreamboxes ------ DM 8000 HD PVR ------- ---------- DM 800 HD ---------- -------- Motek SG2100 -------- ---- Triax 80cm Dual LNB ----- -- Fixed Dish 28e Quad LNB -- ---------- Sky HD Full ---------- ------- 24" Apple iMAC --------


Creator of the CCCCC - only a true wizard could come up with such a name!!

Plugins are usually specific to E1 / E2 , am I right to assume this is for E1 images only ?
B16MCC is online now  
The Following User Says Thank You to B16MCC For This Useful Post:
dennoi (09-06-2009)
Old 19-02-2009   #5
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters

Originally Posted by B16MCC View Post
Plugins are usually specific to E1 / E2 , am I right to assume this is for E1 images only ?
I wrote it for E1, but its fine on E2 because its a shell script rather than an executable binary.

Its just been confirmed in another thread that its working on a DM800 with Gemini.
Can't access my 800 by FTP

It wont appear in the plugins menu, but you can browse to the file and execute it with tux commander.

I think that the Nabilosat images use shadowing, if so this script is no use there.
compufunk is offline  
The Following User Says Thank You to compufunk For This Useful Post:
dennoi (09-06-2009)
Old 24-04-2009   #6
Member
 
Join Date: 24-04-2009
Location: Qatar
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post

My System: DM500s Windows XP

I'm about to hate my life

I've been trying soo hard to break this stupid pass on my DreamBox 500S but No Luck!

when I use TuxBox it asks from my pass, what ever i type it does not alow me to log in.

it seems that the pass is no "dreambox" user: "root"

I did exactly what you said here, I found the softwere in the plugings, but it gives me this not:

"output from /var/tuxbox/plugins/password_switch.sh

mv:unable to remove '/etc/passwd': Read-only file system
mv: cannot remove '/etc/passwd': Read-only file system

done!
/var/tuxbox/plugins/password_switch.sh 13:echo.: not found
The root password has been switched to either 'dreambox' or back to the original password
/var/tuxbox/plugins/password_switch.sh: 15: echo.: not found

If you break something while logged in as root. its your own fault!"

could someone please help me out!
bo3oof is offline  
The Following User Says Thank You to bo3oof For This Useful Post:
dennoi (09-06-2009)
Old 24-04-2009   #7
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters

Originally Posted by compufunk View Post
I think that the Nabilosat images use shadowing, if so this script is no use there.
What image are you using?

Also, can you state the full path to the mounted share....e.g.
/automount/?????
compufunk is offline  
The Following User Says Thank You to compufunk For This Useful Post:
dennoi (09-06-2009)
Old 01-05-2009   #8
Member
 
Join Date: 01-05-2009
Location: Bahrain
Posts: 28
Thanks: 10
Thanked 6 Times in 6 Posts

My System: Dreambox 500 Hp Pavilion DV4 1135EE

Is this works on DM500s ?
shnsqr is offline  
The Following User Says Thank You to shnsqr For This Useful Post:
dennoi (09-06-2009)
Old 01-05-2009   #9
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters

Originally Posted by shnsqr View Post
Is this works on DM500s ?
It should do.

What image are you using?
compufunk is offline  
The Following User Says Thank You to compufunk For This Useful Post:
dennoi (09-06-2009)
Old 02-05-2009   #10
Member
 
Join Date: 01-05-2009
Location: Bahrain
Posts: 28
Thanks: 10
Thanked 6 Times in 6 Posts

My System: Dreambox 500 Hp Pavilion DV4 1135EE

I don't know what image is it because I am new DreamBox user
But I think it is "Gemini" as Gemini Server appears when I enter Blue Panel -> Addons


I shared the folder in the network

and I did what you said but I don't know how to enter into the folder and get the file via the dreambox.

I go to the Blue Panel -> Extras / Setup menu -> Automount

I pressed the yellow button (new), I Entered the informations and then I press the Green button (save). After that it returned to the automount window and the automount point #1 appeared with the info I entered and. At the left bottom there is a note: "automount status: running"

But I don't know how to enter to that automount point to get the folder and then the file?

The mounted folder will appear under /automount/nfs.

I checked this folder in the file mode but its empty, I think all files are hidden as File mode shows only folders without any content!

Last edited by shnsqr; 02-05-2009 at 03:16 PM.
shnsqr is offline  
The Following User Says Thank You to shnsqr For This Useful Post:
dennoi (09-06-2009)
Old 02-05-2009   #11
Member
 
Join Date: 01-05-2009
Location: Bahrain
Posts: 28
Thanks: 10
Thanked 6 Times in 6 Posts

My System: Dreambox 500 Hp Pavilion DV4 1135EE

Sorry but what is the username and password to be entered in the automount window? My PC is without a password
shnsqr is offline  
The Following User Says Thank You to shnsqr For This Useful Post:
dennoi (09-06-2009)
Old 02-05-2009   #12
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters

Why not just set up a temporary account in windows and give it a password.
compufunk is offline  
The Following User Says Thank You to compufunk For This Useful Post:
dennoi (09-06-2009)
Old 02-05-2009   #13
Member
 
Join Date: 01-05-2009
Location: Bahrain
Posts: 28
Thanks: 10
Thanked 6 Times in 6 Posts

My System: Dreambox 500 Hp Pavilion DV4 1135EE

I tried so but the same thing, I check the folder "automount/nfs" but nothing inside

I am sure that the file is shared in the network as i can access the file from another PC. But I don't know what is the problem with the DM.

I putted this inputs in the automount window:

mountpoint: nfs
client IP: 192.168.1.68 (The IP of the PC where the folder is in)
cifs
client dir: /db (as the folder is in drive C: and named as db)
Options: rw,soft,udp,nolock
Buffer side: 8192 both
User: dreambox (The new user I did for this purpose)
Password: 123456 (The Password of the new user)

Is there anything wrong?

After that I open the "File Mode" - then folder root - then folder automount - then folder nfs - nothing inside!

Last edited by shnsqr; 02-05-2009 at 03:56 PM.
shnsqr is offline  
The Following User Says Thank You to shnsqr For This Useful Post:
dennoi (09-06-2009)
Old 04-05-2009   #14
Member
 
Join Date: 01-05-2009
Location: Bahrain
Posts: 28
Thanks: 10
Thanked 6 Times in 6 Posts

My System: Dreambox 500 Hp Pavilion DV4 1135EE

any1 help plz
shnsqr is offline  
The Following User Says Thank You to shnsqr For This Useful Post:
dennoi (09-06-2009)
Old 04-05-2009   #15
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters

Have you extracted the .bz from the .zip file and put it in the shared folder? The dreambox wont see the .zip file.

Also, dont use file mode to browse to the file, got to 'Blue Panel -> Addons -> Manual install' and pick it up from there.

Have you rebooted the box since you set up the mount? Try rebooting the dreambox while the PC with the share is turned on.

If that doesn't work then there is something wrong with the mount / shared folder setup.

On the PC go to 'start -> run' and type \\192.168.1.68 then hit enter. If you don't see a folder called 'db' when you do this, then the share is not correctly set up on the PC.
compufunk is offline  
The Following User Says Thank You to compufunk For This Useful Post:
dennoi (09-06-2009)
Old 05-05-2009   #16
Member
 
Join Date: 01-05-2009
Location: Bahrain
Posts: 28
Thanks: 10
Thanked 6 Times in 6 Posts

My System: Dreambox 500 Hp Pavilion DV4 1135EE

Thank you very much Compufunk

I finally found the file on the DM and installed the plugin successfully

But once I opened the plugin, it gave me this error:

Code:
"output from /var/tuxbox/plugins/password_switch.sh

mv:unable to remove '/etc/passwd': Read-only file system
mv: cannot remove '/etc/passwd': Read-only file system

done!
/var/tuxbox/plugins/password_switch.sh 13:echo.: not found
The root password has been switched to either 'dreambox' or back to the original password
/var/tuxbox/plugins/password_switch.sh: 15: echo.: not found

If you break something while logged in as root. its your own fault!"
Password still unchanged! any suggestions?
shnsqr is offline  
The Following User Says Thank You to shnsqr For This Useful Post:
dennoi (09-06-2009)
Old 06-05-2009   #17
Member
 
Join Date: 07-04-2005
Posts: 5
Thanks: 0
Thanked 3 Times in 1 Post

My System: don't know

Hello,
Why not copy a password file from your pc to the dreambox using the tuxcom.
get a password file with user e pass you know. I will upload one with user=root pass=dreambox
Using the tuxcom, delete the current file in your dreambox.
on the wright side brouse to /var/etc , highlight ths file password and use the button number 4 (can't remember witch, but loock caefully at the legend on the botton) delete the file.
move the cursor to the left side, brouse to the automount folder, your folder in the pc, where you previously put the password file with user e pass you want, highlight it, and do copy.
thats it, you have access again.
I saw the post yesterday, tried it and work perfect so I am posting today.
Don't forget to unrar the file if you are using the file I uploaded.
Edit to mention that you might need to change the wrights to the file once copied.
again, just put the cursor on the top of the file, check the legend on the botton, and it will have an opcion to change the chmod. it will open a small window, and you need to check the boxes, not sure witch chmod is needed, I guest read and wright should be fine, in any dought when I tried just checked all 3 boxes, probably not needed, but never the less, with it all checkd that is the whay it worked on my test.
Attached Files
File Type: rar passwd.rar (156 Bytes, 199 views)

Last edited by rjms; 06-05-2009 at 09:41 AM. Reason: forgot to mention....
rjms is offline  
The Following 3 Users Say Thank You to rjms For This Useful Post:
dennoi (09-06-2009), harkeshivakoti (06-05-2009), mrz (24-05-2009)
Old 06-05-2009   #18
Member
 
Join Date: 06-05-2009
Location: thailand
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts

My System: dreambox login

but how to use? explain me detail.what i have to to after download?
harkeshivakoti is offline  
Old 06-05-2009   #19
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters

Originally Posted by shnsqr View Post
Thank you very much Compufunk

I finally found the file on the DM and installed the plugin successfully........
I'm not sure why the file system is read only, this is not the case with other images its been used on.

I'll look into it later, when I have time.

Originally Posted by rjms View Post
Hello,
Why not copy a password file from your pc to the dreambox using the tuxcom.
................
Yes thats fine, the only difference is that if you use the supplied script, you can swap back to the old password if required. You cant do that if you delete/overwrite the original passwd file. The idea of using a script is so that you dont have to do everything step by step using the clunky tuxcom interface and remote.

C
compufunk is offline  
The Following User Says Thank You to compufunk For This Useful Post:
dennoi (09-06-2009)
Old 18-05-2009   #20
Member
 
Join Date: 13-05-2009
Location: Macedonia
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post

My System: DM 500

ok, problem once again on dm500

"output from /var/tuxbox/plugins/password_switch.sh

mv:unable to remove '/etc/passwd': Read-only file system
mv: cannot remove '/etc/passwd': Read-only file system

done!
/var/tuxbox/plugins/password_switch.sh 13:echo.: not found
The root password has been switched to either 'dreambox' or back to the original password
/var/tuxbox/plugins/password_switch.sh: 15: echo.: not found

If you break something while logged in as root. its your own fault!"

any idea?
nlo81mkd is offline  
The Following User Says Thank You to nlo81mkd For This Useful Post:
dennoi (09-06-2009)
Old 18-05-2009   #21
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters

Your dreambox appears to be using cramfs, meaning that certain parts of the image are read only.

I've modified the script so that it tries to remount the file system in read/write mode. Download and install this new version.
password_switcher.tar.zip

Its unlikely to work, but you can give it a shot.

There is a more long winded way around this problem, but it requires root access, which you obviously don't have.

Unfortunately your on your own after this, because I dont have DM500 to run tests on, sorry

If I think of anything, I'll post back.

Last edited by compufunk; 18-05-2009 at 06:39 PM.
compufunk is offline  
The Following User Says Thank You to compufunk For This Useful Post:
dennoi (09-06-2009)
Old 20-05-2009   #22
Member
 
Join Date: 15-04-2007
Location: Kuwait
Posts: 5
Thanks: 0
Thanked 17 Times in 5 Posts

My System: DreamBox DM500 - Laptop Core Due

Originally Posted by compufunk View Post
Your dreambox appears to be using cramfs, meaning that certain parts of the image are read only.

I've modified the script so that it tries to remount the file system in read/write mode. Download and install this new version.
Attachment 21662

Its unlikely to work, but you can give it a shot.

There is a more long winded way around this problem, but it requires root access, which you obviously don't have.

Unfortunately your on your own after this, because I dont have DM500 to run tests on, sorry

If I think of anything, I'll post back.
Still not working... Unable to remove and cannot remove...

Why not creating a file which will replace the passwd file to the default one directly?
man2003 is offline  
The Following User Says Thank You to man2003 For This Useful Post:
dennoi (09-06-2009)
Old 20-05-2009   #23
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters
Emmm

Originally Posted by man2003 View Post
Why not creating a file which will replace the passwd file to the default one directly?
Thats what it does.

If the filesystem is readonly, then you cant modify the passwd file no matter what way you try to do it. You cant delete it, you cant overwrite it, you cant move it, you cant modify it.

Try it yourself if you don't think that's the case.

The only solution will be to make the file system read write, If someone knows of a way to do that with one or two commands then please post them here and I'll stick them in the script.

Otherwise, forget about it, because the only other way of doing it requires root access, which you dont have, otherwise you wouldn't be using this script.

As I said, I don't have a DM500 to test on.

You could also copy the encrypted password then crack it, but I'm not explaining how to do that. You'll need to find out for yourself.

Last edited by compufunk; 20-05-2009 at 10:42 PM.
compufunk is offline  
The Following User Says Thank You to compufunk For This Useful Post:
dennoi (09-06-2009)
Old 22-05-2009   #24
Member
 
Join Date: 15-04-2007
Location: Kuwait
Posts: 5
Thanks: 0
Thanked 17 Times in 5 Posts

My System: DreamBox DM500 - Laptop Core Due

Originally Posted by compufunk View Post
Thats what it does.

If the filesystem is readonly, then you cant modify the passwd file no matter what way you try to do it. You cant delete it, you cant overwrite it, you cant move it, you cant modify it.

Try it yourself if you don't think that's the case.

The only solution will be to make the file system read write, If someone knows of a way to do that with one or two commands then please post them here and I'll stick them in the script.

Otherwise, forget about it, because the only other way of doing it requires root access, which you dont have, otherwise you wouldn't be using this script.

As I said, I don't have a DM500 to test on.

You could also copy the encrypted password then crack it, but I'm not explaining how to do that. You'll need to find out for yourself.
Thanks a lot compufunk, Appreciate your effort... I'll try to copy the encrypted password then crack it once I find How...
man2003 is offline  
The Following User Says Thank You to man2003 For This Useful Post:
dennoi (09-06-2009)
Old 23-05-2009   #25
Member
 
Join Date: 15-04-2007
Location: Kuwait
Posts: 5
Thanks: 0
Thanked 17 Times in 5 Posts

My System: DreamBox DM500 - Laptop Core Due

I found other way to restore default password...:
- Mount Folder to the Dreambox.
- Unrar attached file and extracted file to the mounted folder.
- Click Blue Button to open Blue Panel
- Click Extras/Settings
- Click Restore Backup
- Find your mounted folder and find the file
- Click Green
- Click Green again
- You are done...

Password is dreambox...
Attached Files
File Type: rar Gemini_password_reset.rar (354 Bytes, 359 views)
man2003 is offline  
The Following 13 Users Say Thank You to man2003 For This Useful Post:
albhosts (4 Weeks Ago), batsit (20-08-2009), bujabr (17-10-2009), dennoi (09-06-2009), goodq (19-09-2009), mamadou69 (18-10-2009), pit viper (12-07-2009), rerkit (27-07-2009), sheziasn (08-08-2009), shnsqr (6 Days Ago), softskiner (23-05-2009), supachai12345 (04-10-2009), we40 (20-07-2009)
Closed Thread

Bookmarks

Tags
password, plugin, reset, root


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off







All times are GMT +1. The time now is 01:22 PM.


All views and information expressed in users' communications and profiles represent the opinions of the users concerned and do not represent the views of Satellites.co.uk. All images and news content are believed to be in the public domain, except where otherwise stated. Forum software by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Content Relevant URLs by vBSEO 3.3.1