Reset Root Password, Plugin

Status
Not open for further replies.

compufunk

Regular Member
Joined
May 7, 2008
Messages
1,658
Reaction score
1
Points
38
My Satellite Setup
DM 600-S, VU+ Duo,
Moteck SG2100, Fracarro Penta 85 dish, LG LH3000 42" TV + some computers
My Location
NW, Ireland
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. http://www.satellites.co.uk/satelli...ow-change-root-password-if-you-dont-know.html
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.
 

Attachments

  • password_switcher.zip
    1 KB · Views: 7,252

compufunk

Regular Member
Joined
May 7, 2008
Messages
1,658
Reaction score
1
Points
38
My Satellite Setup
DM 600-S, VU+ Duo,
Moteck SG2100, Fracarro Penta 85 dish, LG LH3000 42" TV + some computers
My Location
NW, Ireland
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.
 

Attachments

  • Share.JPG
    Share.JPG
    45.2 KB · Views: 3,416
  • screenshot.jpg
    screenshot.jpg
    32 KB · Views: 3,876

wifi

Member
Joined
Feb 18, 2009
Messages
23
Reaction score
0
Points
0
Age
54
My Satellite Setup
DM 800 HD Wavefrontier 90 cm windows xp
My Location
europe
I guess this is the one :)

Sorry wrong thread
 

Attachments

  • autofs.jpg
    autofs.jpg
    29.2 KB · Views: 2,267

B16MCC

Dreambox Gimp & Coder
Joined
Nov 16, 2005
Messages
1,562
Reaction score
8
Points
0
Age
51
My Satellite Setup
2 Dreamboxes..........
---------------------------------------------
--- DM 8000 HD PVR & DM 800 HD ---
Motek SG2100 & Triax 80cm Dual LNB
------ Fixed Dish 28e Quad LNB -------
---- Sly HD Full & 24" Apple iMAC ----
My Location
/var/tuxbox/config
Plugins are usually specific to E1 / E2 , am I right to assume this is for E1 images only ?
 

compufunk

Regular Member
Joined
May 7, 2008
Messages
1,658
Reaction score
1
Points
38
My Satellite Setup
DM 600-S, VU+ Duo,
Moteck SG2100, Fracarro Penta 85 dish, LG LH3000 42" TV + some computers
My Location
NW, Ireland
B16MCC said:
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.
http://www.satellites.co.uk/satellite/dreambox800/144855-cant-access-my-800-ftp.html

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.
 

bo3oof

Member
Joined
Apr 24, 2009
Messages
1
Reaction score
0
Points
0
Age
39
My Satellite Setup
DM500s
Windows XP
My Location
Qatar
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! :(
 

compufunk

Regular Member
Joined
May 7, 2008
Messages
1,658
Reaction score
1
Points
38
My Satellite Setup
DM 600-S, VU+ Duo,
Moteck SG2100, Fracarro Penta 85 dish, LG LH3000 42" TV + some computers
My Location
NW, Ireland
compufunk said:
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/?????
 

shnsqr

Member
Joined
May 1, 2009
Messages
29
Reaction score
0
Points
0
Age
37
My Satellite Setup
Dreambox 500
Hp Pavilion DV4 1135EE
My Location
Bahrain
Is this works on DM500s ?
 

compufunk

Regular Member
Joined
May 7, 2008
Messages
1,658
Reaction score
1
Points
38
My Satellite Setup
DM 600-S, VU+ Duo,
Moteck SG2100, Fracarro Penta 85 dish, LG LH3000 42" TV + some computers
My Location
NW, Ireland
shnsqr said:
Is this works on DM500s ?
It should do.

What image are you using?
 

shnsqr

Member
Joined
May 1, 2009
Messages
29
Reaction score
0
Points
0
Age
37
My Satellite Setup
Dreambox 500
Hp Pavilion DV4 1135EE
My Location
Bahrain
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!
 

shnsqr

Member
Joined
May 1, 2009
Messages
29
Reaction score
0
Points
0
Age
37
My Satellite Setup
Dreambox 500
Hp Pavilion DV4 1135EE
My Location
Bahrain
Sorry but what is the username and password to be entered in the automount window? My PC is without a password
 

compufunk

Regular Member
Joined
May 7, 2008
Messages
1,658
Reaction score
1
Points
38
My Satellite Setup
DM 600-S, VU+ Duo,
Moteck SG2100, Fracarro Penta 85 dish, LG LH3000 42" TV + some computers
My Location
NW, Ireland
Why not just set up a temporary account in windows and give it a password.
 

shnsqr

Member
Joined
May 1, 2009
Messages
29
Reaction score
0
Points
0
Age
37
My Satellite Setup
Dreambox 500
Hp Pavilion DV4 1135EE
My Location
Bahrain
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!
 

shnsqr

Member
Joined
May 1, 2009
Messages
29
Reaction score
0
Points
0
Age
37
My Satellite Setup
Dreambox 500
Hp Pavilion DV4 1135EE
My Location
Bahrain
any1 help plz
 

compufunk

Regular Member
Joined
May 7, 2008
Messages
1,658
Reaction score
1
Points
38
My Satellite Setup
DM 600-S, VU+ Duo,
Moteck SG2100, Fracarro Penta 85 dish, LG LH3000 42" TV + some computers
My Location
NW, Ireland
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.
 

shnsqr

Member
Joined
May 1, 2009
Messages
29
Reaction score
0
Points
0
Age
37
My Satellite Setup
Dreambox 500
Hp Pavilion DV4 1135EE
My Location
Bahrain
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?
 

rjms

Member
Joined
Apr 7, 2005
Messages
5
Reaction score
0
Points
0
Age
55
My Satellite Setup
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.
 
Joined
May 6, 2009
Messages
2
Reaction score
0
Points
0
Age
41
My Satellite Setup
dreambox login
My Location
thailand
but how to use? explain me detail.what i have to to after download?
 

compufunk

Regular Member
Joined
May 7, 2008
Messages
1,658
Reaction score
1
Points
38
My Satellite Setup
DM 600-S, VU+ Duo,
Moteck SG2100, Fracarro Penta 85 dish, LG LH3000 42" TV + some computers
My Location
NW, Ireland
shnsqr said:
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.

rjms said:
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:)
 

nlo81mkd

Member
Joined
May 13, 2009
Messages
2
Reaction score
0
Points
0
Age
42
My Satellite Setup
DM 500
My Location
Macedonia
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?
 
Status
Not open for further replies.
Top