Author Topic: How do I log into root?  (Read 4048 times)

Offline rtroxel

  • Newbie
  • *
  • Posts: 1
How do I log into root?
« on: February 05, 2013, 01:16:20 PM »
When I installed Ubuntu 12.10  last week, I forgot to set up a root account. Is this still possible?

Thanks,

Roy
« Last Edit: February 05, 2013, 01:28:51 PM by rtroxel »

Ubuntu Forums (Ubuntu Linux Support)

How do I log into root?
« on: February 05, 2013, 01:16:20 PM »

Offline UbuntuGeek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 296
Re: How do I log into root?
« Reply #1 on: February 07, 2013, 09:02:11 PM »
Try the following

To enable the root account and access directly via the console in root mode, you must type the command:

$ sudo passwd root   

This command allows you to set up the password mode for the root user which will be activated for the console sessions only (no GUI). Once the password is initialized, it will be possible to open a console session with the user root.

When I installed Ubuntu 12.10  last week, I forgot to set up a root account. Is this still possible?

Thanks,

Roy

Offline PandaJim

  • Newbie
  • *
  • Posts: 1
Re: How do I log into root?
« Reply #2 on: July 05, 2013, 02:56:55 PM »
Seriously, you don't need to log in as root.

Get the root privilege in command console via:

<pre>sudo su</pre>

Or, run software as root by add gksudo at beginning, such as open Nautilus browser as root:

<pre>gksudo nautilus</pre>