Skip to content

Trevweb

Computing, education and assorted other bits.

  • Home
  • About Me

Tag: disable

Disabling Root User on Ubuntu Server 14.04 LTS

Root is often disabled by default when Ubuntu is installed. However, you might find it active when Ubuntu (or other Linux distribution) is deployed in automated environments E.g. when installed with a Virtual Private Server (VPS).

To disable root and administer the system from other user accounts, consider setting up sudo. As root, add a user to sudo that can execute commands as root:

$ sudo adduser trevor sudo

Note that you should replace trevor with a username on your system. Exit the shell as root and login with the username that you just added to sudo (or any other pre-configured sudoer). Use sudo to disable the root password, thus disabling login.

$ sudo passwd -dl root

Enabling Root

If you are in a circumstance where you need to enable the root account, type the following while logged in as a sudoer:

$ sudo passwd root

You will be prompted to enter and confirm the password for root.

Further Reading

Read the Ubuntu Official Documentation on RootSudo for additional information and a clear explanation on the benefits of disabling root.

Author TrevorPosted on August 14, 2015Categories UbuntuTags 14.04 LTS, disable, enable, login, root, tutorial, ubuntu1 Comment on Disabling Root User on Ubuntu Server 14.04 LTS

Recent Posts

  • Configure SMTP Server on Microsoft Windows Server 2022
  • Kata – Revolver Roulette
  • My Children and Social Media
  • Create a PFX certificate file using OpenSSL
  • SMTP Service Auto-Start on Windows Server 2016

Categories

  • Agile
    • Kata
  • Education
  • Mac
  • Personal
  • Software Development
    • Apple
      • OS X
      • Xcode
    • Clojure
    • Games Programming
    • Java
  • Software Engineering
  • Ubuntu
  • Web Development
    • Generic JavaScript
    • PHP
      • CakePHP
  • Windows
    • Windows Server 2016
    • Windows Server 2022

Top Posts & Pages

  • Create a PFX certificate file using OpenSSL
BCS Professional Member
  • Home
  • About Me
Trevweb Proudly powered by WordPress