Skip to contentSkip to conversation

/etc/passwd root login issue.

DISCUSSION sateesh m 2 participants 3 messages Jan 25, 2024 – Jan 29, 2024

lore
Share & tools
lore

sateesh m

author
#0 lore raw

I have created MP.appl, MP.prod, MP.serv three users and root user. After compile my recipe my order is coming as mentioned below /etc/passwd MP.appl:x:0:1000::/home/MP.appl:/bin/sh
MP.prod:x:0:1001::/home/MP.prod:/bin/sh
MP.serv:x:0:1002::/home/MP.serv:/bin/sh
root:x:0:0:root:/home/root:/bin/sh

Because of this reason my credentials login is correct root & my password.  But it is entering to MP.appl@ even root.
So manually I rearrange oder as mentioned below root@  its coming. I want this order and why it is changing. if I want to get as mentioned below How can I rectify it. root:x:0:0:root:/home/root:/bin/sh
MP.appl:x:0:1000::/home/MP.appl:/bin/sh
MP.prod:x:0:1001::/home/MP.prod:/bin/sh
MP.serv:x:0:1002::/home/MP.serv:/bin/sh

Thanks & Regards,
Sateesh

author
#1 lore raw

Hi Team,

Can anybody respond this.

Regards,
Sateesh

#2 lore raw

If you put “passwd first line” into your favorite Internet search engine, you’ll get:
The first line contains information about root user followed by system user accounts and normal user accounts.

So what you request is not possible without deep changes in Linux OS core components.

Peter

From: [email protected] <[email protected]> On Behalf Of sateesh m via lists.yoctoproject.org
Sent: Monday, January 29, 2024 5:17
To: sateesh m <[email protected]>; [email protected]
Subject: Re: [yocto] /etc/passwd root login issue.

Quoted 6 lines

Hi Team,

Can anybody respond this.

Regards,
Sateesh