You can easily changed your black ssh screen to colorful screen by using following steps. 1) Login to the server via SSH as root 2) Edit the .bash_profile file found in the /root directory & paste the following line: vi ...
Category: Shell Programming and Scripting
Basic Linux, Shell Programming and Scripting
email when access the server
It's always a good practice & from the security point of view to get notified instantly through an email when someone logs into your server through SSH with root privileges. Open the file .bashrc for the root user. Vi /root/.bashrc...
Shell Programming and Scripting
Some common script
1 ) Script to change server wide ownership for all cpanel users. ==================== #!/bin/bash cd /var/cpanel/users for user in * do chown -Rv $user.$mail /home/$user/etc chown -v $user.$nobody /home/$user/public_html chown -Rv $user.$user /home/$user done ====================
Email Marketing Series, How to, PHP, Shell Programming and Scripting
Set expiration for you index page
If you want to set the expiration to your site means after some date or year your site shows custom error on the page then you can add following code in index page below the "<?php" code and set...