Linux Server: Change root Password after fresh install.

This topic contains 0 replies, has 1 voice, and was last updated by  Caezar De Castro II 2 months, 3 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #9431

    After you install or deploy Linux os on your machine on the cloud or locally. You are required to execute command initial command. Of course to secure your server from any anonymous access.

    sudo apt-get update

    This will update your Linux os if there is an available new package.

    `sudo apt-get upgrade’

    This will upgrade your Linux server from the update you just requested earlier.

    To change the password on Linux server, only need few commands.

    sudo passwd root

    This will initiate password change on the root account. That will allow you to enter your password and retype to confirm.

    Now, what you need to do is to check for your root password is set successfully. Just execute the command to enter the root server.

    su root

    From this action, the server will ask you for root password which is set earlier. You can now navigate into the root of the server. Just execute command to navigate to the root directory.

    cd /

    Now, all things set you can now install all other packages that you will be using but I advise you to first deal with the networking and security like firewall and iptables. See, Server Admin: Basic Manual for Performance and Security forum for more server administration.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic. Login here