Skip to main content

Posts

Showing posts with the label Linux/Unix

How to Change the Root Password in Linux Server

Method 1: Through a terminal, while booted (Must have other accounts on the machine) Step 1: Open a Terminal at www.vcclhosting.com  C Area. This can be done by either pressing Ctrl+Alt+T, or by finding the Terminal program using the search function. If it’s a VPS or a server, simply SSH in like you normally would. Step 2: Enter the password change command. This command is what will allow you to change your root password. First, however, you will need to enter the password of your user account in order to authenticate the change. Of course, this assumes that your account is in the sudoers list, which essentially means that your account is an administrator account. If it is not, you will have to change your password using the second method. sudo -i passwd It will then ask you to enter a new UNIX password, and once you enter it, will ask you to repeat the password. Once this is done, you will have successfully changed the password of the root user. Now all you have to do...

How to Use Sudo on Debian, CentOS, and FreeBSD

Using a  sudo  user to access a server and execute commands at root level is a very common practice among Linux and Unix Systems Administrator. The use of a  sudo  user is often coupled by disabling direct root access to one's server in an effort to prevent unauthorized access. In this tutorial of www.vcclhosting.com blog, we will be covering the basic steps for disabling direct root access, creating a sudo user, and setting up the sudo group on CentOS, Debian, and FreeBSD. Prerequisites A newly installed Linux server with your preferred distribution . A text editor installed on the server whether it's nano, vi, vim, emacs. Step 1: Installing sudo Debian apt-get install sudo -y CentOS yum install sudo -y FreeBSD cd /usr/ports/security/sudo/ && make install clean or pkg install sudo Step 2: Adding the sudo user A  sudo  user is a normal user account on a Linux or Unix machine. Debian adduser mynewusername CentOS add...