On This Page
Resetting the Root User Password
-
The TufinOS 3 operating system reached EOL (end of life) on June 30, 2024 and is no longer supported. The final version - TufinOS 3.110 - was released in December 2023. If you are still running on TufinOS 3, we recommend upgrading to TufinOS 4 to get the benefit of the latest security patches.
-
TufinOS 4 does not support TOS releases earlier than R22-2 so if you are still running R22-1 or earlier, you must upgrade TOS before upgrading to TufinOS 4.
In TufinOS administration privileges are handled through the tufin-admin user. However, there are also instances where the root user is going to be required, such as:
-
Recovering the password for the tufin-admin user
-
Entering Rescue Mode (only relevant for TufinOS 3.100).
If faced with such a situation, you are going to need to enter rd.break mode and reset the password of the root user.
This procedure is also relevant for non-TufinOS Linux systems.
Reset the Root User Password
-
Reboot the operating system.
-
When the grub menu appears, make sure the first line (the number of lines depends on the operating system version) is selected and press e to edit.
-
Add the rd.break boot parameter.
This parameter interrupts the boot process.
If you are connected with a serial console cable, remove
console=tty1
.-
For TufinOS 3.x: From the grub options, find the line that starts with
linux16
and addrd.break
to the end of the line. -
For TufinOS 4.x: From the grub options, find the line that starts with
linux
and addrd.break
to the end of the line.
-
-
Press Ctrl+X to reboot.
The root file system is mounted in read only mode to /sysroot and must be remounted with read/write (rw) permissions.
-
Enter mount -o remount,rw /sysroot.
After remounting, you are going to need to switch to chroot jail so that that /sysroot is used as the root of the file system. This is required so that any further commands you run will be in regards to /sysroot.
-
Enter chroot /sysroot.
-
To reset the password of the root user, enter passwd.
-
Enter the new password and then retype it.
You have updated the password of the root user.
-
To exit the chroot jail environment and reboot the system, enter Exit twice.
Once the system reboots, you will be able to access the root user account with the password you created.
Was this helpful?
Thank you!
We’d love your feedback
We really appreciate your feedback
Send this page to a colleague