Jump to content


Photo

[Duo2] /etc/passwd error


  • Please log in to reply
2 replies to this topic

#1 qnopli

  • Member
  • 17 posts

0
Neutral

Posted 19 May 2016 - 20:26

Hi,

 

after flashing software on Duo2 today, I wasn't able to login via Telnet. 

╭─root@playground-vm  ~
╰─$ telnet 192.168.75.99
Trying 192.168.75.99...
Connected to 192.168.75.99.
Escape character is '^]'.

openpli 4 vuduo2


vuduo2 login: root
Cannot execute bash: No such file or directory
Connection closed by foreign host.

Via Samba I was able to search for the cause of this problem and in /etc/passwd I saw the entry for root was this

root:x:0:0:root:/home/root:bash

I corrected the root entry to

root:x:0:0:root:/home/root:/bin/bash 

and I was than able to login again.

 

Is this an error in the current image?


Edited by qnopli, 19 May 2016 - 20:27.


Re: [Duo2] /etc/passwd error #2 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 19 May 2016 - 20:54

Normally there is not bash shell...

# cat /etc/passwd | grep bash
So, if your receiver is exposed to internet, consider reflashing.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: [Duo2] /etc/passwd error #3 qnopli

  • Member
  • 17 posts

0
Neutral

Posted 19 May 2016 - 21:36

OK, Thank You.

 

I've installed the bash plugin and bash gets installed via Autobackup after flashing. Maybe the plugin is screwing up the /etc/passwd during install. I have my workaround.

vuduo2:~# opkg list-installed | grep bash
bash - 4.3-r1.0
util-linux-bash-completion - 2.25.2-r1.0



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users