Switching to Root User on Linux
Running your web hosting server will require many times to run commands as the root user. Many admins choose to block direct root logins, so first, you will need to log in as a normal user and then switch to…
Running your web hosting server will require many times to run commands as the root user. Many admins choose to block direct root logins, so first, you will need to log in as a normal user and then switch to…
Many times we are asked by our clients how to put the site offline but still be able to work on it. We will show in this article how to set a "maintenance mode"/ "down for maintenance" page. WordPress users…
To add a Linux user to your server you will use the adduser command: # adduser <new_username> # passwd <username_password> Here we will add user 'ph1' to the server: root@web [/]# adduser ph1 root@web [/]# passwd ph1 Changing password for…
To list the active FTP connections on your server use: netstat -n | grep :21 root@web [~]# netstat -n | grep :21 tcp 0 0 162.255.200.197:80 17.58.101.200:21715 TIME_WAIT tcp 0 0 162.255.200.197:37224 29.112.111.129:21 TIME_WAIT tcp 0 0 162.255.200.197:21 69.117.199.248:3861 ESTABLISHED…
Do you want to control the login timeout for the SSH server? You can control it with the LoginGraceTime setting. LoginGraceTimeThe server disconnects after this time if the user has not successfully logged in. If the value is 0, there…
You installed CentOS with the GUI and you want to remove it later? Instead of removing it, you can just switch the system from GUI to the terminal. For this, we will use systemd targets. Below are the systemd targets…