Menu
InformatiWeb Pro
  • Index
  • System admin
  • Virtualization

Login

Registration Password lost ?
FR
  • Windows Server
    • WMS 2012
    • WS2012 R2
    • WS2016
  • Citrix
    • Citrix NetScaler Gateway
    • Citrix XenApp / XenDesktop
    • Citrix XenServer
  • VMware
    • VMware vSphere
    • VMware Workstation
  • Microsoft
    • Hyper-V
  • InformatiWeb Pro
  • System admin
  • Linux
  • Enable root account on Ubuntu
  • Linux
  • 11 January 2014 at 16:55 UTC
  • InformatiWeb

Enable root account on Ubuntu

On Ubuntu, the root account is disabled by default. Instead you must use the "sudo" command to perform the required operations with the root account. However, if you want to enable the root account, you can just define it a password.
Type the command :

Bash

sudo passwd root

Then type your password (because of sudo) and 2 times the new password for the root account.

Bash

[sudo] password for informatiweb:
Enter the new UNIX password :
Retype new UNIX password :

You can then log in as root by typing the following command and using the password of the root (not the one you specified with sudo) account :

Bash

su -
Password:
root@informatiweb-pc:~# 

If ultimately you want to re-disable the root account, you can simply use the parameter "l" of "passwd" command.
Since the password has expired, the account will be disabled.

Bash

sudo passwd -l root

Share this tutorial

Partager
Tweet

To see also

  • Debian - Transform your server into a router and a DHCP server

    Linux 12/31/2016

    Debian - Transform your server into a router and a DHCP server

  • Debian / Ubuntu - Configure an iSCSI server and an iSCSI client

    Linux 10/11/2016

    Debian / Ubuntu - Configure an iSCSI server and an iSCSI client

  • Install and use the LVM on Linux

    Linux 10/2/2016

    Install and use the LVM on Linux

  • Ubuntu - Secure your Apache web server (HTTPS)

    Linux 2/13/2014

    Ubuntu - Secure your Apache web server (HTTPS)

Comments

You must be logged in to post a comment

Share your opinion

Pinned content

  • Software (System admin)
  • Linux softwares
  • Our programs
  • Terms and conditions
  • Share your opinion

Contact

  • Guest book
  • Technical support
  • Contact

® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.

Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.