Configure key based authentication in SSH to allow users to login without entering their password. Key based authentication uses public key cryptography to make sure only the owner of the correct private pair logs in through SSH. If the user logs in using password based authentication anyone knowing that user’s password can login. But with key based authentication only the person possessing the correct private key pair for the public key located on the SSH server can login. To add more security you can even add a passphrase to the SSH key.Continue Reading…
Forgot MySQL root user password (Linux)
Reset your MySQL root password if you ever forget it by following the instructions provided here. Earlier I wrote an article to reset the MySQL root password in windows, this article does the same thing in Linux resetting the MySQL root user’s password if you forget it. The instructions outlined here are based on the Linux command-line. The procedure is same for both Windows and Linux, stopping the MySQL service, creating an file with the SQL query to reset the Linux password and executing it through the init-file option.Continue Reading…
Change Home Directory in Linux
Change the home directory of a Linux user with a simple usermod command. While creating a user if you didn’t specify any –home parameter Linux assumes the home directory of the user to be /home/username even if you did specify you can later change it to something else according to your needs. Apart from changing the home directory using the usermod command you’ll have to assign proper ownership and permissions to the new folder. You can also change the home directory by editing the /etc/passwd file. I’ll outline both the steps here.Continue Reading…
Reset Root Password in Linux
Reset your Linux root user a.k.a. superuser password by going to single user mode. Its simple even for newbies who dread the command line. It always happens that you forget the Linux root user password and fumble about without knowing what to do. I’ll outline the steps to reset root password on both redhat variants (fedora, Mandriva) and Debian (Knoppix, Ubuntu) variants. And also tell you how to overcome certain errors you might face while doing so.Continue Reading…
Setup a DHCP server on Linux
DHCP (Dynamic Host Configuration Protocol) is a service running on port number 67 which assigns IP addresses to computers in a network. Setting up a DHCP server requires you to specify a range of IP addresses which will be assigned to the computers on the network, a gateway address which is the address of the router or modem and a DNS server address which will be used to resolve hostnames. Doing this in Linux is a simple matter of installing an application and editing a .conf file.Continue Reading…
How to change the default runlevel in Linux
Linux has several runlevels which are different modes of operations of the Operating System. Each of the runlevel may be selected according to the user’s requirements. For example while installing device drivers it is recommended to be in single user mode. In fact runlevels are required for both shutdown and restart operations. After the installation of Linux Operating System using default settings the system directly starts in GUI mode. But many people prefer starting the command line terminal mode. Even though you can Ctrl+Alt+F1 at the GUI login screen and enter into terminal 1 its cooler and easier to directly startup with your desired runlevel. Change the default runlevel in linux by following the instructions below.Continue Reading…
- « Previous Page
- 1
- …
- 4
- 5
- 6
- 7
- Next Page »