Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hello
I do building new distrobution .
when system running. User can not login ; because my new distro do not request password for users ! , and reply login ... !
shadow is installed and passwd,pwconv,pwunconv,useradd,userdel commands with chroot working ... .
user authentication working with shadow file .
nsswitch.conf is true :
passwd: files
group: files
shadow: files
passwd and shadow files is true .
Example :
root:x:1:1:Super User:/root:/bin/bash
where is problem ... ?
excuse me for bad Englishing .
Since you're working in a chroot environment your users cannot connect to that one. You'll need to boot into your OS instead. Then if all is set up correctly your users will be able to login. At least that's what I think is wrong. Are you trying to have your users login to a 'chrooted' environment?
I do turn on my computer and switch to new distribution .
runlevel is 2 and System request username for login .
I write username and Enter . now system most request password but do not this job and tray to write username ...
What do you mean by 'switch to new distribution'? Do you mean that you boot into for example Debian and then 'switch' to the distro you're building with chroot?
So then like the LFS distro, as mentioned in the LFS book, you need to boot into your distro and not continue using the host system and chroot. Once you booted in the LFS system you should be able to authenticate your users correctly if they are created and passwords are set for them.
excuse me , My English language not good .
=============================================
Ok , After logout , User can not login ; Because system do not request password !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.