Jump to content


Photo

Cannot set password for root user


  • Please log in to reply
37 replies to this topic

#1 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 26 January 2014 - 17:07

Dear all,

 

Something weird I discovered today.

In the past I had a password for the user root, but I realised today there is none anymore.

I can login to the box with the user root, and teh system doesn ot even prompt for a password.

 

I tried to to "passwd" with the root account, the system asked me the new password twice, but still after that, I can still telnet with no password!

 

Any view?

 

I have a vu plus duo running open pli 4.

 

Regards,



Re: Cannot set password for root user #2 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 28 January 2014 - 19:39

I fixed it. Iedited the passwd file an added a x on the root line between the 2 :

There is another issue it was there before i editedthe passwd file.

After some time after reboot, i cannot telnet to the box anymore.looks like the telnetd daemon is dying after some time.
Is there a log that would contain the reason?
Thanks.

Re: Cannot set password for root user #3 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 28 January 2014 - 20:05

Maybe someone was "administering" your box from the outside?
Real musicians never die - they just decompose

Re: Cannot set password for root user #4 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 28 January 2014 - 20:14

That was my first thought too... those things like "cannot change password", "telnet dies", dont happen out of the blue due to some hardware failure or software failure.


@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: Cannot set password for root user #5 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 28 January 2014 - 21:18

Thxs for the warning.
I will monitor the situation.
How could i stop telnetd to die.

Re: Cannot set password for root user #6 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 28 January 2014 - 21:52

I suggest You first take a backup off settings only and channels settings. Avoid using a backup programma now as it's possible that someone entered you're box from the out.

 

Make a fresh flash. First thing to do after flash is :

 

telnet to box and use passwd to set password. (before any restore)

 

exit and test . You will see that it's back ok.

 

Now set back you're settings



Re: Cannot set password for root user #7 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 29 January 2014 - 08:45

Before anything else, stop exposing your box to the internet. Don't forward ports to it from your router/modem.
Real musicians never die - they just decompose

Re: Cannot set password for root user #8 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 29 January 2014 - 10:08

You were all right!!!

After having enable root password and manage to put a password

I have checked the syslog in /var/log/messages and I saw:

 

Jan 29 08:48:24 vuduo authpriv.warn login[521]: invalid password for 'root'  on
'/dev/pts/2' from '78.188.196.69:39180'
 
Jan 29 08:38:23 vuduo authpriv.warn login[477]: invalid password for 'root'  on
'/dev/pts/2' from '117.218.161.86:10553'
 
Jan 29 08:35:26 vuduo authpriv.warn login[435]: invalid password for 'root'  on
'/dev/pts/2' from '1.34.123.62:51869'
 
All these addresses are from India, Turkey.....
 
Then I have isolated the box from internet.
 
A question I have: When openPli 4 is installed does the user root has no password by default? (i.e. entry in /etc/passwd like "root::0:0:root:/home/root:/bin/sh" )
This issue started end of last year after I installed OpenPli 4.0  (before that date I had a openPli 2). 
 
Thanks for the help.
 
PS: My telnet is now working perfectly.


Re: Cannot set password for root user #9 WanWizard

  • PLi® Core member
  • 70,949 posts

+1,835
Excellent

Posted 29 January 2014 - 10:12

You should never expose anything to the internet. You don't do it with your PC or NAS, you should not do it with an STB either. With or without password, it is not secure.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Cannot set password for root user #10 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 29 January 2014 - 10:53

You were all right!!!

After having enable root password and manage to put a password

I have checked the syslog in /var/log/messages and I saw:

 

Jan 29 08:48:24 vuduo authpriv.warn login[521]: invalid password for 'root'  on
'/dev/pts/2' from '78.188.196.69:39180'
 

Jan 29 08:38:23 vuduo authpriv.warn login[477]: invalid password for 'root'  on
'/dev/pts/2' from '117.218.161.86:10553'
 

Jan 29 08:35:26 vuduo authpriv.warn login[435]: invalid password for 'root'  on
'/dev/pts/2' from '1.34.123.62:51869'
 
All these addresses are from India, Turkey.....
 
Then I have isolated the box from internet.
 
A question I have: When openPli 4 is installed does the user root has no password by default? (i.e. entry in /etc/passwd like "root::0:0:root:/home/root:/bin/sh" )
This issue started end of last year after I installed OpenPli 4.0  (before that date I had a openPli 2). 
 
Thanks for the help.
 
PS: My telnet is now working perfectly.

That would be of no use, As they will have to publish this password to public.

 

Like WanWizard said Never expose you're stb directly to the internet , always use router with firewall and nat.

 

If you self wan't to acces you're box from abroad. use ssh . Do not use telnet and or ftp.



Re: Cannot set password for root user #11 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 29 January 2014 - 11:17

You can safely forward port 22 (ssh) from the box to the outside.

All other ports (in particular telnet, http and ftp) are totally insecure. They're intended for in-home sharing only, NEVER forward them to the outside world, with or without passwords.
Real musicians never die - they just decompose

Re: Cannot set password for root user #12 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 29 January 2014 - 11:19

what do you mean with "That would be of no use, As they will have to publish this password to public."?

my question was "When openPli 4 is installed does the user root has no password by default? (i.e. entry in /etc/passwd like "root::0:0:root:/home/root:/bin/sh" )".

I was asking it because just typing  "passwd" after install is not good enough, it changes the password but does not add the x in /etc/passwd, so root user can still login with nopassword

 

Thanks again.



Re: Cannot set password for root user #13 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 29 January 2014 - 12:06

what do you mean with "That would be of no use, As they will have to publish this password to public."?

my question was "When openPli 4 is installed does the user root has no password by default? (i.e. entry in /etc/passwd like "root::0:0:root:/home/root:/bin/sh" )".

I was asking it because just typing  "passwd" after install is not good enough, it changes the password but does not add the x in /etc/passwd, so root user can still login with nopassword

 

Thanks again.

negatif it does add the x after you used passwd. Seems that You personnally modifie something or was hacked again. Again like Milo and WanWizard said do not open you're box to the world wide web.

Use router and firewall.



Re: Cannot set password for root user #14 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 29 January 2014 - 12:15

I have tried again:

  - removed the x from /etc/passwd

  - change password

 

the x had not been added in /etc/passwd!!!

 

The box is 100% isolated now, so it is not hacked again.

 

Could the exe "-rwsr-xr-x    1 root     root         58192 Sep  7 15:35 /usr/bin/passwd.shadow" had been changed?

 

Very weird.



Re: Cannot set password for root user #15 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 29 January 2014 - 12:46

To openpli there is nothing wrong. Just reflash and see that you're box is behind router and firewall before !!! That's all You can do You've been hacked . It requires an expert to solve this out .



Re: Cannot set password for root user #16 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 29 January 2014 - 13:31

I was not complaining about OpenPli!

Simply asking what is the behaviour of the command passwd. Have you try it on your box? (or like me you assume the x shall be set by passwd command).



Re: Cannot set password for root user #17 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 29 January 2014 - 13:43

I was not complaining about OpenPli!

Simply asking what is the behaviour of the command passwd. Have you try it on your box? (or like me you assume the x shall be set by passwd command).

I not only assume the x is set it is set by using passwd. Reflash and you're problem is solved.



Re: Cannot set password for root user #18 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 29 January 2014 - 13:47

Sorry to insist but have you try yes or no?

Sorry again.

 

I also found this post http://openpli.org/f...ot-doesnt-work/ that describes exactly the problem I had!!!!!


Edited by antoine3_dupres, 29 January 2014 - 13:51.


Re: Cannot set password for root user #19 WanWizard

  • PLi® Core member
  • 70,949 posts

+1,835
Excellent

Posted 29 January 2014 - 14:26

I don't have any 'x' in /etc/passwd, and I have no password problems whatsoever. So what is exactly the issue here?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Cannot set password for root user #20 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 29 January 2014 - 15:01

You mean your entry in /etc/passwd is  "root::0:0:root:/home/root:/bin/sh"  ?

Then when you telnet to the box no password is asked for the root user.




9 user(s) are reading this topic

0 members, 9 guests, 0 anonymous users