设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
运维技术 —— LinuxSir.cn
›
网络技术\网络安全讨论
›
我不能用su了,救命!!
返回列表
查看:
797
|
回复:
2
我不能用su了,救命!!
[复制链接]
voodoomaster
voodoomaster
当前离线
积分
230
IP卡
狗仔卡
发表于 2004-12-6 07:53:27
|
显示全部楼层
|
阅读模式
今天想试试把root用户改成无法登陆,只能用普通用户登陆后再su切换,于是就在/etc/passwd里面把root的shell从/bin/bash改成/bin/false了.
之后退出,这下就完了,用普通用户登陆后,再用su命令,就算了输对了密码还是不能切换成root.
我用的是Debian,引导程序是Grub,有没有什么补救措施啊!!!以前那个用single模式引导的方法还管用不?这台电脑用apt更新过很多次了,重装的话我我简直就要跳楼了!!!
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
d00m3d
d00m3d
当前离线
积分
14541
IP卡
狗仔卡
发表于 2004-12-6 10:06:16
|
显示全部楼层
No need to re-install. You can:
1. boot up your Debian CD
2. go to rescue mode
3. mount your Linux partition
4. edit and correct the mistake in the passwd file in your Linux partition
5. save it back and restart your computer
回复
支持
反对
使用道具
举报
显身卡
voodoomaster
voodoomaster
当前离线
积分
230
IP卡
狗仔卡
楼主
|
发表于 2004-12-6 12:23:15
|
显示全部楼层
谢谢,搞定了.
回复
支持
反对
使用道具
举报
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
LinuxSir 论坛管理
内核与驱动开发
红旗 REDFLAG Linux
Gentoo Linux
硬件设备 Linux 驱动
Linux小型、嵌入式系统
Slackware Linux
shell进阶应用、shell编程
Ubuntu Linux 专题讨论
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表