forgotten how to log in as root in terminal using ubuntu 19

Asked by warren.ireland

have just loaded ubuntu 19'4 on my old desktop and have forgotten how to login as root or as administrator.
when downloading programs i use sudo or su but still confused as how to log in as admin.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

1. There is no "Ubuntu 19". Ubuntu version numbers are YY.MM, with year and month of publication.
You are probably talking about Ubuntu 19.04. There will be an Ubuntu version 19.10 later this year, which currently is in development. See e.g. https://ubuntu.com/about/release-cycle

2. Ubuntu's security concept uses the "sudo" function to grant admin rights. For security reasons the possibility to log in as admin has been blocked.
If you find an instruction telling something like "log in as admin and execute the command abc", on an Ubuntu System its equivalent is "execute the command sudo abc".

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Use sudo as your account. When asked for a password use the password you log in with. If you forget about root you'll have a better OS experience. When you need admin access just prefix your command with 'sudo'

Revision history for this message
warren.ireland (wodd) said :
#3

thankyou for taking the time to answer but i didnt ask for advice. I need
to know how to log in as root.
wjames u0026 frankie

On Tue, 25 Jun 2019 at 18:28, actionparsnip <
<email address hidden>> wrote:

> Your question #681580 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/681580
>
> actionparsnip proposed the following answer:
> Use sudo as your account. When asked for a password use the password you
> log in with. If you forget about root you'll have a better OS
> experience. When you need admin access just prefix your command with
> 'sudo'
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/681580/+confirm?answer_id=1
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/681580
>
> You received this question notification because you asked the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Running:

sudo su -

Will give you a root terminal. Is that what you mean?

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Re: " I need to know how to log in as root."

Answer: You should never log in as root on an Ubuntu system. You simply don't do that.

As already written earlier:
If you find an instruction telling something like "log in as admin (or root) and execute the command abc", its equivalent on an Ubuntu System is "execute the command sudo abc".

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.