楽し!こうでなくては!(笑
で、落ち着いて考えると、inittab を編集した記憶がない。
コンソールに getty を動かさないと Login は出ない
qube:~# mkdir /tmp/root qube:~# mount /dev/sdc2 /tmp/root qube:~#
qube:~# cd /tmp/root/etc/ qube:/tmp/root/etc# mv inittab{,.orig} qube:/tmp/root/etc# cp inittab{.orig,} qube:/tmp/root/etc# vi inittab : : qube:/tmp/root/etc# diff -u inittab{.orig,} --- inittab.orig 2010-11-15 07:42:29.000000000 +0900 +++ inittab 2010-12-24 21:34:39.265710740 +0900 @@ -51,17 +51,18 @@ # Note that on most Debian systems tty7 is used by the X Window System, # so if you want to add more getty's go ahead but skip tty7 if you run X. # -1:2345:respawn:/sbin/getty 38400 tty1 -2:23:respawn:/sbin/getty 38400 tty2 -3:23:respawn:/sbin/getty 38400 tty3 -4:23:respawn:/sbin/getty 38400 tty4 -5:23:respawn:/sbin/getty 38400 tty5 -6:23:respawn:/sbin/getty 38400 tty6 +#1:2345:respawn:/sbin/getty 38400 tty1 +#2:23:respawn:/sbin/getty 38400 tty2 +#3:23:respawn:/sbin/getty 38400 tty3 +#4:23:respawn:/sbin/getty 38400 tty4 +#5:23:respawn:/sbin/getty 38400 tty5 +#6:23:respawn:/sbin/getty 38400 tty6 # Example how to put a getty on a serial line (for a terminal) # #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100 #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100 +T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 # Example how to put a getty on a modem line. # qube:/tmp/root/etc#
qube:/tmp/root/etc# cd / qube:/# umount /tmp/root qube:/#
: : ---- in hackkit linuxrc --- XFS mounting filesystem sda2 VFS: Mounted root (xfs filesystem). Trying to move old root to /initrd ... okay Freeing init memory: 120K INIT: version 2.88 booting Using makefile-style concurrent boot in runlevel S. udev requires a kernel >= 2.6.26, not started. ... failed! failed! Activating swap...Adding 257032k swap on /dev/sda3. Priority:-1 extents:1 across:257032k done. Cleaning up ifupdown.... Setting up networking.... Loading kernel modules...done. Activating lvm and md swap...done. Checking file systems...fsck from util-linux-ng 2.17.2 /dev/sda1: recovering journal /dev/sda1: clean, 13/62248 files, 23019/248976 blocks /sbin/fsck.xfs: XFS file system. done. Mounting local filesystems...kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. XFS mounting filesystem sda4 done. Activating swapfile swap...done. Cleaning up temporary files.... Configuring network interfaces...eth reg(9) val=0x0300 eth0: link down done. Cleaning up temporary files.... Setting kernel variables ...done. startpar: service(s) returned failure: udev ... failed! INIT: Entering runlevel: 2 Using makefile-style concurrent boot in runlevel 2. Starting enhanced syslogd: rsyslogd. Starting periodic command scheduler: cron. Debian GNU/Linux squeeze/sid tate ttyS0 tate login: eth0: link up, full duplex, speed 1 Gbps Debian GNU/Linux squeeze/sid tate ttyS0 tate login:きたー!
よし、ログインと思ったものの、、、
Debian GNU/Linux squeeze/sid tate ttyS0 tate login: root Password: Login incorrect tate login: root Password: Login incorrect tate login: root Password: Login incorrect tate login: root Password: Login incorrect tate login: root Password: Login incorrect Maximum number of tries exceeded (5) Debian GNU/Linux squeeze/sid tate ttyS0 tate login: root Password: Login incorrect tate login: Debian GNU/Linux squeeze/sid tate ttyS0 tate login:あれ?パスワードがついた????
qube:/# cat /tmp/root/etc/shadow root:*:14965:0:99999:7::: daemon:*:14965:0:99999:7::: bin:*:14965:0:99999:7::: sys:*:14965:0:99999:7::: sync:*:14965:0:99999:7::: games:*:14965:0:99999:7::: man:*:14965:0:99999:7::: lp:*:14965:0:99999:7::: mail:*:14965:0:99999:7::: news:*:14965:0:99999:7::: uucp:*:14965:0:99999:7::: proxy:*:14965:0:99999:7::: www-data:*:14965:0:99999:7::: backup:*:14965:0:99999:7::: list:*:14965:0:99999:7::: irc:*:14965:0:99999:7::: gnats:*:14965:0:99999:7::: nobody:*:14965:0:99999:7::: libuuid:!:14965:0:99999:7::: qube:/#これでは、ログインできない。
パスワードをつける。
qube:/# chroot /tmp/root root@qube:/# passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully root@qube:/# exit exit qube:/# !cat cat /tmp/root/etc/shadow root:$6$ydz6Gi9j$z1y54j7b9Fkw8dzSMapnH9MVS2pMKbbVh9KM0mtW/mzF.zvavznKG9HlpIj/MhovANFDHrledtjR/WPZuRSg30:14967:0:99999:7::: daemon:*:14965:0:99999:7::: bin:*:14965:0:99999:7::: sys:*:14965:0:99999:7::: sync:*:14965:0:99999:7::: games:*:14965:0:99999:7::: man:*:14965:0:99999:7::: lp:*:14965:0:99999:7::: mail:*:14965:0:99999:7::: news:*:14965:0:99999:7::: uucp:*:14965:0:99999:7::: proxy:*:14965:0:99999:7::: www-data:*:14965:0:99999:7::: backup:*:14965:0:99999:7::: list:*:14965:0:99999:7::: irc:*:14965:0:99999:7::: gnats:*:14965:0:99999:7::: nobody:*:14965:0:99999:7::: libuuid:!:14965:0:99999:7::: qube:/#guest アカウントも作る
qube:/# !ch chroot /tmp/root root@qube:/# adduser guest Adding user `guest' ... Adding new group `guest' (1000) ... Adding new user `guest' (1000) with group `guest' ... Creating home directory `/home/guest' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for guest Enter the new value, or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] y root@qube:/# exit exit qube:/#
---- in hackkit linuxrc --- XFS mounting filesystem sda2 VFS: Mounted root (xfs filesystem). Trying to move old root to /initrd ... okay Freeing init memory: 120K INIT: version 2.88 booting Using makefile-style concurrent boot in runlevel S. udev requires a kernel >= 2.6.26, not started. ... failed! failed! Activating swap...Adding 257032k swap on /dev/sda3. Priority:-1 extents:1 across:257032k done. Cleaning up ifupdown.... Setting up networking.... Loading kernel modules...done. Activating lvm and md swap...done. Checking file systems...fsck from util-linux-ng 2.17.2 /dev/sda1: recovering journal /dev/sda1: clean, 13/62248 files, 23019/248976 blocks /sbin/fsck.xfs: XFS file system. done. Mounting local filesystems...kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. XFS mounting filesystem sda4 done. Activating swapfile swap...done. Cleaning up temporary files.... Configuring network interfaces...eth reg(9) val=0x0300 eth0: link down done. Cleaning up temporary files.... Setting kernel variables ...done. startpar: service(s) returned failure: udev ... failed! INIT: Entering runlevel: 2 Using makefile-style concurrent boot in runlevel 2. Starting enhanced syslogd: rsyslogd. Starting periodic command scheduler: cron. Debian GNU/Linux squeeze/sid tate ttyS0 tate login: eth0: link up, full duplex, speed 1 Gbps Debian GNU/Linux squeeze/sid tate ttyS0 tate login: root Password: Linux tate 2.6.22.7 #1 Thu Jun 18 21:48:29 JST 2009 armv5tejl The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@tate:~# uname -a Linux tate 2.6.22.7 #1 Thu Jun 18 21:48:29 JST 2009 armv5tejl GNU/Linux root@tate:~#good going!
ただ、、、LED が点滅したまま
でも、こうやってちゃくちゃくと攻略してる感がたまらない \^_^/
|
← Squeeze のインストール(5)LS-CL にインストール |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ Squeeze のインストール(7)トラブルシューティング |