arm linux文件系统去掉login直接以root登陆(已经存在login功能的文件系统)

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/dao891230/article/details/7298831

问题:对于文件系统启动后需要输入用户名和密码才能进入shell如何不要这个功能直接以root权限进入shell呢?

解决方法:

               主要是修改文件系统目录下的/etc下面的inittab文件.

               要求login的inittab的文件内容为:


console::sysinit:/etc/init.d/rcS
console::respawn:/sbin/getty -L ttySAC0  115200 vt100 
 
::shutdown:/bin/umount -a -r
::restart:/sbin/init


去年login功能修改为如下:
console::sysinit:/etc/init.d/rcS
console::respawn:-/bin/sh


::shutdown:/bin/umount -a -r
::restart:/sbin/init

展开阅读全文

关于linux文件系统login的问题,请高手指教

07-13

我已编译好linux内核,并通过mkfs.jffs2来生成文件系统,由于我要将linux文件系统放在4M的Flash中,所以对文件系统作了裁剪。但是当我通过内核来引导文件系统时,出现如下问题,令我一星期茶饭不思,请高手指教。rn出现login提示符后,我输入root,马上出现login incorrect,没有出现password:的提示符,于是不能登录,相关trace 信息如下:rnVFS: open root device "mtdblock2" or 1f:02rnVFS: Mounted root (jffs2 filesystem).rnFreeing init memory: 68Krnthe execute_command is in 20040704rnthe argv_init is init in 20040704rnthe envp_init is HOME=/ in 20040704rnINIT: version 2.84 bootingrnActivating swap.rnSystem time was Thu Jan 1 00:00:24 UTC 1970.rnSetting the System Clock using the Hardware Clock as reference...rnCannot access the Hardware Clock via any known method.rnUse the --debug option to see the details of our search for an access method.rnSystem Clock set. System local time is now Thu Jan 1 00:00:24 UTC 1970.rnChecking all file systems...rnfsck 1.27 (8-Mar-2002)rnSetting kernel variables.rnMounting local filesystems...rnnothing was mountedrnCleaning: /etc/network/ifstate.rnrnSetting the System Clock using the Hardware Clock as reference...rnCannot access the Hardware Clock via any known method.rnUse the --debug option to see the details of our search for an access method.rnSystem Clock set. Local time: Thu Jan 1 00:00:28 UTC 1970rnrnCleaning: /tmp /var/lock /var/runchgrp: invalid group name `utmp'rn.rnRecovering nvi editor sessions... done.rnINIT: Entering runlevel: 2rnrnDebian GNU/Linux 3.0 mombassa ttyCH0 (fs woody v0.3)rnrnmombassa login: root\rnrnrnLogin incorrectrnrnmombassa login: rootrnrnrnrnrnrnmombassa login:rnDebian GNU/Linux 3.0 mombassa ttyCH0 (fs woody v0.3)rnrnmombassa login:rnDebian GNU/Linux 3.0 mombassa ttyCH0 (fs woody v0.3)rnrnmombassa login: rootrnrnLogin incorrectrnrnmombassa login:rnrnrnrotrnrnLogin incorrectrnrnmombassa login:rnLogin timed out after 60 seconds.rnrnDebian GNU/Linux 3.0 mombassa ttyCH0 (fs woody v0.3)rnrnmombassa login:rn 论坛

没有更多推荐了,返回首页