employer cover photo
employer logo
employer logo

Rackspace Technology

Is this your company?

Rackspace Technology Interview Question

User has lost root password, how do you reset?

Interview Answers

Anonymous

Nov 24, 2013

Boot in single mode by typing E on the selected the kernel in grub then add S or single or 1 to the end of line eg. then B to boot the selected kernel. once in the single-user mode disable SElinux with below command eg: setenforce 0 now using passwd command "With SElinux Off as Selinux will not let you change it" eg: [root@centos images]# passwd Changing password for user root. New password: your-password BAD PASSWORD: it is based on a dictionary word BAD PASSWORD: is too simple Retype new password: your-password passwd: all authentication tokens updated successfully.

6

Anonymous

Apr 28, 2010

init 1, change root password... I missed this one.

2

Anonymous

Jun 4, 2011

"init 1" doesn't always work, if you're not already root some systems will ask you for root password, and if you're not logged into the system ? What always works is to boot of a live CD, mount the file system with /etc, edit the /etc/passwd, /etc/shadow file.

2