All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Randy MacLeod" <randy.macleod@windriver.com>
To: "Teemu K." <maillinglists18@gmail.com>,
	Yocto discussion list <yocto@yoctoproject.org>
Subject: Re: [yocto] Root login not working with Warrior
Date: Wed, 15 Jan 2020 11:39:32 -0500	[thread overview]
Message-ID: <06ad9e06-62b6-5064-4392-9c0057b2c212@windriver.com> (raw)
In-Reply-To: <CAAmVmrptcat5-BZa4f=ntcsZYgH=Rn3Xt9zK6K=1ykXZwOwcig@mail.gmail.com>

On 1/13/20 10:37 AM, Teemu K. wrote:
> Hi,
> 
> I have Yocto image that was originally made with Thud - version of
> Yocto. It was working fine and I was able to login as root via serial
> console.
> 
> Then I updated Yocto to Warrior and now for some reason when I try to
> login as root via serial console it says 'login incorrect' when I
> enter 'root' as a user and press enter. It doesn't even ask any
> passwords before saying that. I tried enabling debug-tweaks and still
> the same. Can't login as a root.
> 
> I have another user that I can login just fine and with sudo I can
> also use root access. I just can't login as root.
> 
> I looked through /etc/passwd and /etc/shadow and they looked okay. Has
> something changed in Warrior regarding this? I tried googling, but
> didn't find anything.

Hi Teemu,

I'm not sure what's wrong but you can always add strace to your image,
login as a user and run:
   $ sudo strace -f -o /tmp/trace-[root|user].log -p <pidof login>
where the pid you specify is either the login process or agetty. I'd
have to try it to figure out what process to trace.

If you do that and then login as 1) root and then 2) as a user, you can
compare the strace logs and usually figure out what the difference is.
The logs will be verbose and do require some expertise to understand
but that should help. ltrace is also sometimes helpful.

Good luck,
../Randy

> 
> -Teemu K.
> 
> 
> 
> 


-- 
# Randy MacLeod
# Wind River Linux

  reply	other threads:[~2020-01-15 16:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-13 15:37 Root login not working with Warrior Teemu K.
2020-01-15 16:39 ` Randy MacLeod [this message]
2020-01-16  9:14 ` [yocto] " Paul Eggleton
2020-01-16  9:18   ` Paul Eggleton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=06ad9e06-62b6-5064-4392-9c0057b2c212@windriver.com \
    --to=randy.macleod@windriver.com \
    --cc=maillinglists18@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.