News Ticker

How to activate and deactivate root in ubuntu server

By Ajay Verma - Saturday, 12 November 2016 1 Comment
Hi, today i am going to explain about How to activate and deactivate root in ubuntu server
Enabling root password:
To enable root logins first you have to set a password for the root account and then unlock the locked root account. If you don't set a password for the root account the passwd command will return

passwd: unlocking the password would result in a passwordless account. 
So, first execute in a terminal
sudo passwd root

you will be prompted for a new Unix password. Write it twice (second for confirmation).

Then execute
sudo passwd -u root

to unlock the account. This should return
passwd: password expiry information changed

Reverting back:
If you want to disable root account in Ubuntu you need to lock the root account by using the following command
sudo passwd -l root

1 comment to ''How to activate and deactivate root in ubuntu server"

ADD COMMENT
  1. casino | Israel News 1688
    This air jordan 18 stockx super is an overview of the site. If you where to find air jordan 18 retro want to great air jordan 18 stockx get an idea of what is the casino, you will need air jordan 18 retro red online store an extensive list of its air jordan 18 retro men to good site games.

    ReplyDelete