Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A10 => Topic started by: Mat_91 on June 01, 2015, 04:08:17 PM

Title: Kernel 3.4.103 + debian Jessie- no acces when logging
Post by: Mat_91 on June 01, 2015, 04:08:17 PM
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 (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.
Title: Re: Kernel 3.4.103 + debian Jessie- no acces when logging
Post by: kalin on June 01, 2015, 06:10:46 PM
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?
Title: Re: Kernel 3.4.103 + debian Jessie- no acces when logging
Post by: Mat_91 on June 01, 2015, 07:04:57 PM
I must check it inside chroot, right?

Unfortunately I can't use serial, I don't have usb-serial converter.
Title: Re: Kernel 3.4.103 + debian Jessie- no acces when logging
Post by: Mat_91 on June 07, 2015, 03:34:53 PM
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 :)