Archive for the ‘Linux’ Category

MySql server error “Client does not support authentication protocol”.

After upgrade server to 5.1 generally we are getting following error message. Client does not support authentication protocol requested by server; consider upgrading MySQL client. The above error message are receiving because latest version of MySql uses a new format for the password in that case to use older client to use older version Mysql […]

How to check SUID/SGID programs on your Server?

You can check SUID/SGID programs on your systemSUID/SGID programs on your Server by using following command from your shell. admin@root# find / -type f \( -perm -04000 -o -perm -02000 \)  

How to change timezone on Linux server?

You can change the time zone for your server by using following command. root@admin[~]#date Wed Nov 11 19:30:29 EST 2009 For example we are changing time zone  from EST to GMT. root@admin[~]#ln -sf /usr/share/zoneinfo/GMT /etc/localtime root@admin[~]#date Thu Nov 12 00:31:36 GMT 2009  

How to install cPanel theme?

To install cPanl theme root login is required.Login into shell as root user and follow the steps root@admin[~]# cd /usr/local/cpanel/whostmgr/docroot/ root@admin[~]#mkdir -p cpanelappinstall root@admin[~]#cd cpanelappinstall root@gunjan[~]#wget -q http://www.cpanelskindepot.com/skindownload/cpanelappinstall.tar root@admin[~]#tar -xf cpanelappinstall.tar root@gunjan[~]#rm -f cpanelappinstall.tar Than browse following URL  http://91.100.00.01:2086/cpanelappinstall/install.php You can replace your server ip in above URL instead of 91.100.00.01 and follow the instruction […]

Disabling USB ports

If you administrating a small or large workstations running with Linux Desktops and want to disable the USB ports for security so that no one can copy the data via pen drive, try the following steps to disable the USB port(s). Edit the grub.conf and add the following lines(you need to login as root). # vi /boot/grub/grub.conf Then add the following lines on the […]

Clearing dmesg logs

What is dmesg? The main purpose of dmesg is to display kernel messages. dmesg can provide helpful information in case of hardware problems or problems with loading a module into the kernel. In addition, with dmesg, you can determine what hardware is installed on your server. During every boot, Linux checks your hardware and logs […]

Disable the Ctrl-Alt-Delete shutdown keys in Linux

DISABLE CTRL+ALT+DEL KEYS Open /etc/inittab file, enter: # vi /etc/inittab Search for line that read as follows: ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now And remove the line or comment out the above line by putting a hash mark (#) in front of it: # ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now Save the file and exit to shell […]

grub corrupted in linux server

A couple of days back I had faced a problem on one of the Linux Server. I rebooted the server for some task & the server didn’t came up for a long time. When I checked from the console, I found the grub command line screen. I knew that the grub has been corrupted. I […]

Recovering root password in linux (Red Hat)

Introduction: Sometimes a system administrator can come across a situation when he need to perform some administrative tasks on the linux box but unable to do so due to unavailability of root password for any reason. The root password can be recovered by performing the following steps on the linux box. Prerequisites: To perform the […]

Linux Yum Command Examples – Install, Uninstall, Update Packages

Installing, removing, and updating packages is a typical activity on Linux. Most of the Linux distributions provides some kind of package manager utility. For example, apt-get, dpkg, rpm, yum, etc. On some Linux distributions, yum is the default package manager. Yum stands for Yellowdog Updater Modified. This article explains 15 most frequently used yum commands […]