Jump to content


Photo

Cannot set password for root user


  • Please log in to reply
37 replies to this topic

Re: Cannot set password for root user #21 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 29 January 2014 - 15:53

@antoine3_dupres:

 

What exactly do you want to know? Is passwd working? Yes, on non-compromised boxes, it is working, it sets password for root, and that password is required on next telnet session. And yes, I can see x in my /etc/password file. Is this not working as expected for you? Well, have you followed all the advices users gave you in this thread?



Re: Cannot set password for root user #22 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 29 January 2014 - 16:53

What I had asked was:

   - have you edited your /etc/passwd and removed the x

   - run the command passwd

   - checked that the password has been changed AND that the x is added in the /etc/passwd !!!!!

 

Looks like I am not the only one who had this issue (see other post on this forum http://openpli.org/f...ot-doesnt-work/ )

 

What I suspect has happened on my box:

  - I upgraded it to version 4.

  - I have set the passwd of root .....But as the x was not added!!!!

 

Can you try please?

Thanks.


Edited by antoine3_dupres, 29 January 2014 - 16:55.


Re: Cannot set password for root user #23 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 29 January 2014 - 17:00

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.

 
No, it contains (password string modified ;)):

root:$1$VGQkvRXz$w/PaaXPaFHsEaEERuNtTcEZ0:0:0:root:/home/root:/bin/sh

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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 #24 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 29 January 2014 - 17:04

my /etc/passwd contains "root:x:0:0:root:/home/root:/bin/sh"

and my /etc/shadow contains "root:3UyCYewCWvYsd:16099:0:99999:7:::"   (password string modified  ;)):



Re: Cannot set password for root user #25 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 29 January 2014 - 17:08

So the question is really:

 

"if the use of /etc/shadow is not enabled for an account, why does passwd not automatically enable it"?

 

I think that is not a feature of passwd. Either it is enabled (with the 'x'), and passwd will store the new password in /etc/shadow, or it isn't, in which case the password is stored in /etc/passwd, like in my case.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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 #26 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 29 January 2014 - 17:18

My passwd command is a soft link:

lrwxrwxrwx    1 root     root            22 Nov  4 07:49 /usr/bin/passwd -> /usr/bin/passwd.shadow

 

So during install of Pli this option was activated by default I suspect?

 

The behavior that I am noticing is that if there is no x in the /etc/passwd, then the command passwd.shadow changes the password in the /etc/shadow (it really does, I see it with the date and the content) but it will not add the x in /etc/passwd!!!!!

 

Not too sure if somebody can validate that?



Re: Cannot set password for root user #27 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 29 January 2014 - 18:29

Yes, that option is by default on, on duo2 at least.

Yes, I can confirm, that when I remove x-es from /etc/passwd, passwd command does not restore them and you can log in without password. And after restoring x-es, I have to log in with password, but with that new one.

 

So it is like passwd.shadow does not validate /etc/passwd file.



Re: Cannot set password for root user #28 antoine3_dupres

  • Member
  • 30 posts

0
Neutral

Posted 29 January 2014 - 18:58

Thanks a lot for your test!
i suspect this did happened on my box after i installed pli 4 on my vu duo.
Thxs to all of view for you help.

Re: Cannot set password for root user #29 openplinalle077

  • Member
  • 5 posts

0
Neutral

Posted 21 November 2015 - 00:32

Just to be clear if anybody else finds this thread and have the same problem.

The command in telnet is "passwd root"

NOT just "passwd"

if you type "passwd" you will set a password but you set it to ?

"passwd root" will set a password to root.

Over and out ;)



Re: Cannot set password for root user #30 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 21 November 2015 - 00:34

if you type "passwd" you will set a password but you set it to ?

 

Current user


@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 #31 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 21 November 2015 - 12:12

which is "root"?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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 #32 openplinalle077

  • Member
  • 5 posts

0
Neutral

Posted 22 November 2015 - 15:04

which is "root"?

Ok. maby it is, but it does not work.

You have to write "passwd root"



Re: Cannot set password for root user #33 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 22 November 2015 - 17:29

Never had to do that. Ever. And I don't have any problems with setting a password.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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 #34 openplinalle077

  • Member
  • 5 posts

0
Neutral

Posted 22 November 2015 - 23:49

Never had to do that. Ever. And I don't have any problems with setting a password.

Ok. Good for you. I tried several times with command "passwd"

and It did indeed say it changed password,

But you could connect ftp and telnet without it.

Once I tried "passwd root" everything worked great.

If anyone have the same problem, try like I did.

Just wanted to write that in this thread if anyone else finds it like I did.



Re: Cannot set password for root user #35 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 23 November 2015 - 01:06

What you have is not normal.

 

And it doesn't normally happen with an OpenPLi image. So what are you running, on which box, and what has changed on it with regards to a standard image?

 

It if is a problem it needs to be fixed, not worked around.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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 #36 openplinalle077

  • Member
  • 5 posts

0
Neutral

Posted 24 November 2015 - 23:24

What you have is not normal.

 

And it doesn't normally happen with an OpenPLi image. So what are you running, on which box, and what has changed on it with regards to a standard image?

 

It if is a problem it needs to be fixed, not worked around

 

This is th Image I am runing

OpenPLi-4.0-beta-dm800 SSL #84d dailybuild by gjstroom

it is patched to work with DM800.

maby that is why it is not working.

I do not really care as it is working with "passwd root"

which does the exact same thing or is it a difference???

 



Re: Cannot set password for root user #37 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 24 November 2015 - 23:42

Perhaps you should ask this gjstroom for support? We haven't made that image, so no clue what it does or doesn't do...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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 #38 openplinalle077

  • Member
  • 5 posts

0
Neutral

Posted 25 November 2015 - 23:47

Perhaps you should ask this gjstroom for support? We haven't made that image, so no clue what it does or doesn't do...

Have already done :) I just wrote it here because it seems to be the exact same thing as the threadstarter had problem with.

Exactly the same about the X not beeing there and things like that.

Anyways everything is great now. over and out




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users