User Management Basics

“User management” is very crucial and very important for “Server Administrator”. I have compiled this document for Linux Admins to get overview of User Management in Linux.   Please note that I have used CentOS or RedHat Linux here. Each linux flavor has differences. However basic is same.

RPM – RedHat Package Manager

Package Management System is a collection of software tools to automate the process of installing, upgrading, configuring, and removing software packages for a OS in a consistent manner.   RPM is Package Management System introduced by RedHat. RPM typically contains the compiled version of the software. Originally standing for “Red Hat Package Manager”, RPM now…

Script for Adduser with Random pasword

I have just created a small bash script which will create user without asking for password. It will use random password. At the end it will show you username and password. I have made important 2 lines in bold and highlighted. Please note that It doesnt have any validation on User input or any other…

Starting with OpenLDAP

Starting with OpenLDAP 1. Install OpenLDAP on Ubuntu2. apt-get install slapd ldap-utils gq db4.8-util db4.8-doc jxplorer3. Create slapd.conf /usr/share/slapd/slapd.conf or whereever you want only thing it should be readable. Change domain components and admin password, dn as per your requirement4. Please check apparmor is off5. Please check /var/run/slapd directory is there or not. If yes…

Virtual hosting in Apache

There are 2 types of VirtualHosting:1. Name Based Virtual Hosting2. IP Based Virtual Hosting 1. Name Based Virtual Hosting:In this we host multiple websites on Single IP.Here is the basic configuration for name based virtual hosting in httpd.conf: ======================== NameVirtualHost  ganesh.com <———– <VirtualHost ganesh.com>    ServerAdmin webmaster@ganesh.com    DocumentRoot /var/www/html    ServerName ganesh.com    ServerAlias www.ganesh.com    ErrorLog logs/ganesh.com-error_log    CustomLog…

Linux Boot Process (Simplified)

Linux Boot Process is consist of all process from starting PC upto userspace initialization in Linux. We will make simple flow of Linux Boot Process Power ON || ||BIOS || ||Stage 1 Boot Loader –> MBR || ||Stage 2 Boot Loader –> LILO/GRUB || ||Kernel –> Linux || ||init -> Father of all processes Overview…

Configuring Apache with Authentication

Basic Authentication: 1. Create user database with htpasswdhtpasswd is a program which create user database. In this example we will create users in /etc/apache2/users     $ htpasswd -c /etc/apache2/users test  ===========> Here test is username 2. Server side configuration: Here in httpd.conf or your virtual host configuration file between <Directory … >  </Directory> Give following…

Tuning MySQL

 1. To know current default values for mysqld give               $ mysqld –verbose –help 2. While Tuning MySQL, 2 values are most important      a. key_buffer_size  –> key_buffer_size is the size of the buffer used for index blocks. The key buffer is also known as the key cache.The maximum permissible setting for…

Linux Interview Questions

1. What is Reverse Proxy & transperent proxy? 2. What is difference between statefull firewall and stateless firewall ? 3. What is cifs? is it protocol or filesystem? explain 4. What is snort ? 5. what is difference between IPS & IDS ? 6. What is Crashdump? 7. What is clustering ? What are types…