Sign up here and you can log into the forum!

Unable to login as root

The place for n00b questions, anything goes...no n00b too n00bish.

Re: Unable to login as root   

Postby hankbum » Tue Aug 24, 2010 7:58 am

Genericuser, thx for the reply, however I am still unable to get into my WDlxTV. I want to access my msheets folder to check problems with certain moviesheets.

I seem to be stuck here.

From a CMD window I type "telnet 192.168.1.73" and <Enter>
When asked to login I type "root" and <Enter>
A # symbol then appears which you say is the root of my WD.
The # symbol bothered me because all the help files I've read indicate I should be asked for a password before I get to the root of the WD.

So, at the # prompt, I've tried typing in "msheets", "\msheets\", "usb", "usb1", "cd\msheets", ad nauseum with no results.

I don't remember enough of the old DOS commands to be of any help if that is what I need.

If you're willing to offer further advice I would certainly try it.

I have one hair left on my head though!
hankbum
n00b
 
Posts: 2
Joined: Sat Aug 07, 2010 9:42 am

Re: Unable to login as root   

Postby genericuser » Tue Aug 24, 2010 12:08 pm

Lets see what I can help with. Everything you do to get the '#' prompt looks good.

The reason you are getting the '#' prompt right away is because by default there is no password for the root account. If you want to get a password set (which I would recommend because ftp will not work without a password), type 'passwd' at the '#' prompt. You may then enter a password of your choosing. After this, when you telnet, you will be prompted for the password you just set.

Onward... So you know that '#' is the command prompt.

Now we are straying into a hijack of the thread because we know that you can log in as root. I too am a firmware noob, so I do not understand why you would be telneting to the WD to look at your moviesheets. From the commands that you say you have tried, it looks like they are on your USB attached device, so you could just plug that into the PC and check them out. But, perhaps I have no idea what I am talking about.

It looks like your movie sheets are in a folder names msheets on the USB device.

Firstly, you are using the wrong 'slash' for linux. you need to use '/'

do a 'df' command to see where the USB device is mounted (most likely /tmp/media/usb/<some weird numbers>/USB1).

Assuming that the path looks like that, you will typ:

cd /tmp/media/usb/<some weird numbers>/USB1/msheets

the 'ls' command will show you a listing of the directory.

What you do at that point is up to you because I am not certain what you are trying to do. Dont fall into the trap I hit. make sure your names do not have single quote characters in them.
genericuser
WDTVer
 
Posts: 22
Joined: Thu Aug 19, 2010 6:36 am

Re: Unable to login as root   

Postby b-rad.cc » Tue Aug 24, 2010 1:59 pm

PM's are for private matters only, please post public matters on the forum to help others who might have the same issue.
:mrgreen:
User avatar
b-rad.cc
WDLXTV Team
 
Posts: 3002
Joined: Sat Apr 03, 2010 9:35 am
Location: New York

Re: Unable to login as root   

Postby Vanto » Thu Oct 14, 2010 12:52 am

recliq wrote:1) create a file S00custom-options in the root of a FAT32 usb drive
2) put the following lines in that file
Code: Select all
#!/bin/sh
cp -f /etc/passwd.orig /conf/passwd
cp -f /etc/shadow.orig /conf/shadow
cp -f /etc/group.orig /conf/group

3) reboot your wdtv with the usb drive connected

PS: this is all described in first post already...

Yesss !
Thank You so very much :D
I was so :oops: for some time coz not been able to connect via telnet
This helped me a lot
Hex, Bugs and Rock&Roll
User avatar
Vanto
n00b
 
Posts: 10
Joined: Thu Sep 09, 2010 11:35 am
Location: MK2

Re: Unable to login as root   

Postby DZomba » Sat Dec 24, 2011 12:58 pm

Guys I fuc**ed something ... :shock:
Have a 1.05.04_V_WDLXTV.COM_WDLXTV_LIVE-0.5.1.1 firm. and I wanted to delete /conf folder.
I did this throught telnet(putty)..
Code: Select all
rm -rf /conf/*
reboot


and this...
Code: Select all
rm /conf/*
config_tool -s
config_tool -s
reboot


...and after reboot I cant login with telnet,when I put blank pass I get a message Acess denied
Image

I tried this with S00custom-options...
Code: Select all
#!/bin/sh
cp -f /etc/passwd.orig /conf/passwd
cp -f /etc/shadow.orig /conf/shadow
cp -f /etc/group.orig /conf/group


..but without success
What can I do to get back blank pass for telnet login..?
tnx

EDIT:
I made it with this...http://forum.wdlxtv.com/viewtopic.php?f=40&t=1668
DZomba
WDTVer
 
Posts: 24
Joined: Sun Apr 11, 2010 7:04 am

Re: Unable to login as root   

Postby recliq » Sat Dec 24, 2011 4:36 pm

I'd bet you tried to login with SSH instead of telnet (which is the default in putty).
This will never work, you can't login with SSH as long as no password is set for root.
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5035
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Unable to login as root   

Postby DZomba » Sat Dec 24, 2011 5:24 pm

No reclig,I always using a putty never used SSH,I know for that sh*t with SSH and password,I read about it here.
Anyway I resolved my prob with wdtvhack.app and root-hackme.....n00b:-)
DZomba
WDTVer
 
Posts: 24
Joined: Sun Apr 11, 2010 7:04 am

Previous

Return to n00b central

Who is online

Users browsing this forum: No registered users and 4 guests