• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How To Enable Root Login In Linux Ubuntu Command Line

How To Enable Root Login In Linux Ubuntu Command Line

By Sourabh / December 7, 2025 Category: How To, Ubuntu

How to enter root in Linux command? This post explains how to enable root login using Sudo root command in Linux Ubuntu. We will also learn how to execute Ubuntu login as root without password.

Login As Root User In Linux Ubuntu Terminal

The sudo allows a permitted user to execute a command as the superuser. Users can use “sudo” command to run terminal as administrator in Ubuntu. Simply type sudo before the rest of your command.

The command “sudo” stands for “substitute user do.” When a user executes sudo to the beginning of a command, the command runs as root. You will be prompted to enter your password before sudo runs the command.

NOTE: Users can also use “gksudo” before running a command that. It is for a program with a Graphical User Interface (GUI). In Linux Ubuntu, for security reasons, using “sudo” is not recommended to open GUI applications.

Using Sudo Command Run Terminal as Root in Ubuntu

Users can use Sudo command to tun terminal as root in Ubuntu. Use the sudo -i command. Open Terminal and type “sudo -i” command as follows:

$ sudo -i

The sudo -i command command will give you superuser access with root’s environment variables. Once executed, the prompt will change from $ to #, indicating you have root access.

Once you are done with the root commands execution, exit the root prompt by typing the exit command

Su Command – Ubuntu Login As Root Without Password

The command su is used to run a command with substitute user and group ID. When called with no user specified, su defaults to running an interactive shell as root. When user is specified, additional arguments can be supplied, in which case they are passed to the shell.

The command sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.

To Login As Root In Linux Without Password

  • Open the terminal.
  • Input the command % sudo su –
  • Press Enter.
  • You now have root privileges in the terminal window and your terminal prompt will become #.

Note that # shows that you are currently logged in using the root privileges.

Primary Sidebar

Latest Posts

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

Linux Command To Check RAM Size In Ubuntu Terminal In GB

How To Install Proprietary Drivers In Linux Ubuntu Using Terminal

How To Shutdown Linux With A 15 Minute Delay And Message

Free AI Courses With Certificate For Beginners In India

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap