首页 > 其他分享 >rhel8重置root密码

rhel8重置root密码

时间:2023-06-27 16:33:18浏览次数:32  
标签:Ctrl root 重置 rhel8 按下 sysroot

目的

重置root密码

env

  • rhel8.x

步骤

//1.重启进入启动项引导界面,e键进入内核编辑界面

//2.linux参数这行的最后面追加rd.break参数,然后按下Ctrl + X组合键运行修改过的内核程序

//3.依次输入以下命令,再连续按下两次Ctrl + D组合键盘来退出并重启
mount -o remount,rw /sysroot
chroot /sysroot
passwd
touch /.autorelabel

//4. reboot

标签:Ctrl,root,重置,rhel8,按下,sysroot
From: https://www.cnblogs.com/xiaochina/p/17509224.html

相关文章

  • Linux将home磁盘空间分给root_随笔记
    ==========================================将home空间配给roottarcvf/home.tar/home#备份家目录fuser-km/home#终止家目录所有进程umount/home#卸载家目录lvremove/dev/mapper/......
  • input样式重置
    input样式重置(outline:none) input样式重置(outline:none)我们在写表单的时候,经常需要自定义表单的样式,当然input输入框也不例外,那么如何能写出好看一点的输入框呢?例如简单的三个空按钮:<inputtype="button"id="btn1"><inputtype="button"i......
  • Authentication to host '10.167.32.123' for user 'root' using method 'mysql_
    连接Mysql5.7以上的版本的数据库出现报错:C#连接远程连接mysql时,抛异常:Authenticationtohost'10.167.32.123'foruser'root'usingmethod'mysql_native_password'failedwithmessage:Readingfromthestreamhasfailed最终在Mysql官网的bug提交区发现已经有人也遇到......
  • IDEA : Cannot Save Setting ** must not contain source root **. The root alrea
    今天突然碰到这个问题,具体原因是parant目录不能放src的code。解决方法图片右侧的父project的SoureceFolders,是不是把子模块module或者其他模块加载进来(会标红),删除即可......
  • 11.2.0.1 Grid Infrastructure Installation Failed at Second Nodes While Running r
     11.2.0.1GridInfrastructureInstallationFailedatSecondNodesWhileRunningroot.shDueToASMCrashCausedbylmonTimeout[ID1239123.1]--------------------------------------------------------------------------------  修改时间06-JAN-2011    ......
  • Access denied for user 'root'@'121.28.69.73' (using password: YES)问题的解决
    问题描述发现是连接不上远程数据库,那就只能先转成本地运行了问题解决转成本地的相关步骤:好吧,耽误了大概一个小时的时间,就是远程连接失败,需要换成本地的;就是将数据库改成本地连接就行啦!......
  • 腾讯轻量服务器 安装ubuntu 开启root登录
    腾讯轻量服务器安装ubuntu后,系统的默认用户名是ubuntu,并在安装过程中默认不设置root帐户和密码。想要设置中开启允许root用户登录。具体操作步骤如下(照抄的腾讯帮助文档,整理以方便查阅):1.使用ubuntu帐户登录。2.执行以下命令,设置root密码sudopasswdroot3. 执......
  • Ubuntu添加新用户并授权root
    打开终端。您可以使用快捷键Ctrl+Alt+T来打开终端,或者在应用程序菜单中搜索"终端"并打开它。在终端中,输入以下命令以使用超级用户权限登录(您需要输入当前用户的密码):sudo-i输入以下命令来添加新用户,将newuser替换为您想要设置的实际用户名:addusernewuser按......
  • CMake Error at /root/anaconda3/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (mess
     001、问题CMakeErrorat/root/anaconda3/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9(message):  Failedtofi 002、报错原因centos中没有安装opengl,安装opengl[[email protected]]#yum-yinstallmesa*freeglut*GLEW 003、再次编译[root......
  • -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the sys
     系统是centos7.6001、问题--CouldNOTfindOpenSSL,trytosetthepathtoOpenSSLrootfolderinthesystemvari 002、解决方法[[email protected]]#yum-yinstallopensslopenssl-devel 003、再次编译(刚才的报错解决)。  ......