Dear all,
I want to build up my own livecd, but I have the login problem on it. Please give me some suggestion to solve it. thanks.
I am using Busybox and Tinylogin for my shell and login into system, but it can't login into system and the system didn't have any error message about login failed.
The following are the file needed for login.
/etc/iniitab
::sysinit:/etc/rcS
::respawn:/sbin/getty 38400 tty1
::respawn:/sbin/getty 38400 tty2
/etc/passwd
root::0:0::/:/sbin/ash
nobody:x:99:99:nobody:/:
sshd:x:100:100::/home/sshd:
after the system start and wait in the login prompt, after I enter the username the the system will handed. need to reboot the system and can't finish the login process.
localhost login: root
root
password: <<-- Handed
I change other method for login, this time I skip the login prompt and directly enter into system.
/etc/inittab
::sysinit:/etc/rcS
::respawn:/bin/sh
/etc/passwd
root::0:0::/:/sbin/ash
nobody:x:99:99:nobody:/:
sshd:x:100:100::/home/sshd:
after entered into system, I want to use "passwd" to change the root's password, but it can't, have the following error:
/ # passwd
passwd: Cannot determine your user name.
So, I hope anyone have this experiences to help me to solve this 2 problem:
1/ How can I use tinylogin to login into system?
2/ Why I can't change my root's password with command "passwd"
Thanks for everyone.