LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Buildroot Login Incorrect for Root (https://www.linuxquestions.org/questions/linux-software-2/buildroot-login-incorrect-for-root-933963/)

David2010 03-11-2012 09:47 PM

Buildroot Login Incorrect for Root
 
Ok I created a basic buildroot base and with three days of linux kernel tinkering I finally got the damn thing to boot up. :-D

However now I ran into a problem with the login.

The prompt shows up just fine but no matter what I enter, it won't let me log in.

In buildroot there is no password for root until you set one so I don't understand what is going on here. I even tried (chroot)ing into the partition and setting the root password and I still can't log in to my buildroot system.

It should be noted that I am using a standard console (That is, Not a serial line) for logging in.

I can bypass the login all together by setting: "tty1::respawn:/bin/sh" in /etc/inittab so I suspect it is either a problem with "getty", "login", or a configuration issue.

Is this a buildroot bug or a configuration problem???

If its a buildroot bug I will just bypass the standard login program and write my own to manage it.

/var/log/messages:

Code:


Mar 11 14:34:26 divix daemon.info init: starting pid 1, tty '/dev/tty1': '/sbin/getty -L tty1 0 vt100 '
Mar 11 14:34:29 divix authpriv.notice login: LOGIN FAILURE ON tty1, root
Mar 11 14:34:33 divix authpriv.notice login: 2 LOGIN FAILURES ON tty1, root
Mar 11 14:34:36 divix authpriv.notice login: 3 LOGIN FAILURES ON tty1, root
Mar 11 14:34:37 divix authpriv.notice login: 4 LOGIN FAILURES ON tty1, root
Mar 11 14:34:39 divix daemon.info init: starting pid 1, tty '': '/sbin/reboot'
Mar 11 14:34:39 divix daemon.info init: starting pid 1, tty '/dev/null': '/etc/init.d/rcK'
Mar 11 14:34:39 divix authpriv.info dropbear[1057]: Premature exit: Terminated by signal
Mar 11 14:34:39 divix daemon.info init: starting pid 1, tty '/dev/null': '/bin/umount -a -r'
Mar 11 14:34:39 divix daemon.info init: starting pid 1, tty '/dev/null': '/sbin/swapoff -a'
Mar 11 14:34:40 divix daemon.info init: The system is going down NOW!
Mar 11 14:34:40 divix syslog.info syslogd exiting

/etc/inittab:

Code:


# Startup the system
null::sysinit:/bin/mount -t proc proc /proc
null::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
null::sysinit:/bin/mkdir -p /dev/pts
null::sysinit:/bin/mkdir -p /dev/shm
null::sysinit:/bin/mount -a
null::sysinit:/bin/hostname -F /etc/hostname
# now run any rc scripts
::sysinit:/etc/init.d/rcS

# Put a getty on the tty
tty1::respawn:/sbin/getty -L tty1 0 vt100

# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot

# Stuff to do before rebooting
null::shutdown:/etc/init.d/rcK
null::shutdown:/bin/umount -a -r
null::shutdown:/sbin/swapoff -a

/etc/passwd:

Code:


root:x:0:0:root:/root:/bin/sh
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:100:sync:/bin:/bin/sync
mail:x:8:8:mail:/var/spool/mail:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
operator:x:37:37:Operator:/var:/bin/sh
haldaemon:x:68:68:hald:/:/bin/sh
dbus:x:81:81:dbus:/var/run/dbus:/bin/sh
ftp:x:83:83:ftp:/home/ftp:/bin/sh
nobody:x:99:99:nobody:/home:/bin/sh
sshd:x:103:99:Operator:/var:/bin/sh
default:x:1000:1000:Default non-root user:/home/default:/bin/sh

/etc/shadow:

Code:


root::10933:0:99999:7:::
bin:*:10933:0:99999:7:::
daemon:*:10933:0:99999:7:::
adm:*:10933:0:99999:7:::
lp:*:10933:0:99999:7:::
sync:*:10933:0:99999:7:::
shutdown:*:10933:0:99999:7:::
halt:*:10933:0:99999:7:::
uucp:*:10933:0:99999:7:::
operator:*:10933:0:99999:7:::
ftp:*:10933:0:99999:7:::
nobody:*:10933:0:99999:7:::
default::10933:0:99999:7:::

/etc/securetty:

Code:


tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
ttyS0
ttyS1
ttyS2
ttyS3



All times are GMT -5. The time now is 10:25 AM.