- 论坛徽章:
- 0
|
busybox1.13做的文件系统,希望用root用户进嵌入式系统的,结果是$用户
文件linuxrc:
#!/bin/sh
echo "mount /etc as ramfs"
/bin/mount -n -t ramfs ramfs /etc
/bin/cp -a /mnt/etc/* /etc
echo "re-creat the /etc/mtab entries"
/bin/mount -f -t cramfs -o remount,ro /dev/mtdblock/2/
echo "........mount /proc as proc"
/bin/mount -n -t proc none /proc
echo "mount /sys as sysfs"
/bin/mount -n -t sysfs none /sys
exec /sbin/init
文件inintab
::sysinit:/etc/init.d/rcS
# /bin/sh
#
# Start an "askfirst" shell on the console (whatever that may be)
::askfirst:-/bin/sh
# Stuff to do when restarting the init process
::restart:/sbin/init
# Stuff to do before rebooting
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
::shutdown:/sbin/swapoff -a
文件passwd
root :0:0:root:/root:/bin/bash
文件group
root :0:root
无shadow文件。希望root无密码登陆
[ 本帖最后由 feihu02 于 2008-9-19 15:45 编辑 ] |
|