V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
fazero
V2EX  ›  Ubuntu

忘记 ubuntu 密码和 root 密码了怎么重置

  •  
  •   fazero · 2015-08-29 12:41:34 +08:00 · 3818 次点击
    这是一个创建于 3156 天前的主题,其中的信息可能已经有所发展或是发生改变。

    1.用的是 zsh
    2.能进入系统,因为没设开机密码
    3.https://help.ubuntu.com/community/LostPassword 这里 3. Select your image.

    1. Highlight the line that begins kernel and press 'e' to edit

    2. Go to the very end of the line, change the ro to rw and add init=/bin/bash

    press enter, then press b to boot your system.看得不是很懂

    5 条回复    2015-08-30 11:29:37 +08:00
    jamesxu
        1
    jamesxu  
       2015-08-29 12:55:12 +08:00
    就是启动的时候从 grub 进入单用户模式,再修改 root 和其他用户密码
    fazero
        2
    fazero  
    OP
       2015-08-29 13:36:07 +08:00
    @jamesxu 已解决,记录步骤下来了[解决方法]( http://www.jianshu.com/p/fc319446f5f4 )
    inmyfree
        3
    inmyfree  
       2015-08-29 13:51:29 +08:00
    单用户模式可以解决这个问题
    loading
        4
    loading  
       2015-08-29 14:10:53 +08:00 via Android
    single 模式
    lxx1
        5
    lxx1  
       2015-08-30 11:29:37 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5201 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 08:46 · PVG 16:46 · LAX 01:46 · JFK 04:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.