farribeiro/wscef-docker

Password authentication fails for `su`

eullerborges opened this issue · 7 comments

The su -c commands for installing warsaw and starting the service fail (Authentication Error) because the root password has not been set in Ubuntu, so inputting an empty password or any password at all fails. I had to set the password on the Dockerfile through adding this line to the RUN command (substituting by the desired password):

&& echo root:<password> | chpasswd \

and also remove this line that unsets the password:

&& passwd -d root \

After doing that, it all worked like a charm for BB.

Thanks for the great work, man.

The unset works fine, here not see that error... If you would like suggest a PR for this, this will is wellcome.

This warsaw is for CEF and have reports that works with BB by Issue #9 (comment)

Alguém tem queixa referente este solicitação?

Sim. Eu tenho o mesmo problema.

Mande informações de como tratar este problema, apenas setar soluciona a questão?

A discussão continua no PR

Estou com um problema em relação à senha. Em docker-compose run --name wscef wscef ele me pede a senha e, ao colocar wscef, ele funciona certinho. Inclusive até abre o firefox..

Agora, quando vou rodar o container com docker start -a wscef, ele aparece o prompt Senha:, e apos colocar wscef e apertar enter, o mesmo fica travado.

Algumas coisas interessantes aqui:

  1. Diferentemente do run, no start, a senha que eu digito fica visível. Não funciona como um prompt de senha su padrão.
  2. Ao dar um ps aux no meu sistema, vejo que o processo su - c <path_to_warsaw> está realmente travado.

Em relação ao meu comentário, aparentemente, apos ler o man docker-start, ele não estava conectando no STDIN. Rodando docker start -i -a wscef (com o -i) resolveu!

@hackedbellini Eu irei acrescentar sua resolução ao README brevemente o possível