shellinabox / shellinabox

Official-ish Fork of Shell In A Box
https://code.google.com/p/shellinabox/
Other
2.89k stars 463 forks source link

When trying to log in as root no password option is given #443

Open Benji-Collins opened 6 years ago

Benji-Collins commented 6 years ago

I just installed SIAB and set it up to run with Apache. When I try to log in as root, I am not given the option to enter my password and I am simply told that my login is incorrect.

capture

When I create a user called Test and try to login, I am given the option for a password and everything works as expected.

capture

How can I fix this? I am using ShellInABox version 2.19. It was installed today on Ubuntu Server 16.04. I am using Apache2. I am running the --disable-ssl option as I get 502 proxy errors if I don't.

stadelmannj commented 5 years ago

Hello, any update on the above question ? I do have the same issue. If i try to login as root, no password promit is shown. any other user works

can this be fixed/configured?

Benji-Collins commented 5 years ago

@stadelmannj I never found a solution. I ended up making a new user, then just switching to root once logged in.

crissty commented 5 years ago

I can not found anything about this behaviour. It is not possible to login as root.

stephankn commented 5 years ago

Are you spawning /bin/login? My best guess is that you have configured PAM to not allow interactive password logins for root. Could you please double-check? Especially look for pam_securetty (see http://man7.org/linux/man-pages/man8/pam_securetty.8.html)