Kernel 3.4.103 + debian Jessie- no acces when logging

Started by Mat_91, June 01, 2015, 04:08:17 PM

Previous topic - Next topic

Mat_91

Hi,

I compiled kernel 3.4.103 from linux-sunxi and when I used it whith olimex rootfs or ALIP rootfs from linaro everything works ok. But when I used this instruction https://olimex.wordpress.com/2014/07/21/how-to-create-bare-minimum-debian-wheezy-rootfs-from-scratch to create my own rootfs I can't log in by SSH.

Inside chroot I used command "passwd" to set my password, but if I use it for logging I get "Acces denied" error :/

Can anyone help me? How can I set password properly?

Mateusz Baran.

kalin

Check permissions on /etc/passwd (0644) and /etc/shadow (0600) owned by root:root

Make sure rootfs is mounted RW.
Check that `passwd` actually changes the correct /etc/passwd file (run md5sum on it before/after).

Can you login via serial?

Mat_91

I must check it inside chroot, right?

Unfortunately I can't use serial, I don't have usb-serial converter.

Mat_91

Hi,

It's working now. Inside the /etc/ssh/sshd_config is following line:

PermitRootLogin without-password

So I change it to

PermitRootLogin yes[/code[

And now I can log in as root. After it, I added standard user account and change

[code]PermitRootLogin no
.

Now I can use standard user account to log in by ssh and swith to root account by su command :)