skip to main | skip to sidebar

Linux Tutorial for Beginners

Pages

  • Home
 
  • RSS
  • Twitter
Showing posts with label Linux kernel. Show all posts
Showing posts with label Linux kernel. Show all posts
Monday, January 23, 2012

What is MBR (Master Boot Record)

Posted by Raju Gupta at 9:02 AM – 0 comments
 
The master boot record (MBR) is a small, dedicated section at the beginning of the hard disk which holds the boot information and partition layout for the whole disk. The MBR itself is only a single physical sector in lenght (512 bytes)
[ Read More ]
Read more...

Why and How to password Protect Linux Grub

Posted by Raju Gupta at 8:55 AM – 0 comments
 
GRUB is the 3rd stage in the Linux Boot Process that we discussed earlier.
Grub security features allows you to set a password to the grub entries. Once you set a password, you cannot edit any grub entries, or pass arguments to the kernel from the grub command line without entering the password.
It is highly recommended to set GRUB password on any critical production systems as explained in the article.
On a system where GRUB is not secured with the password, the following message will be displayed right under the GRUB menu during the system startup.
"
Press enter to boot the selected OS,
'e' to edit the commands before booting,
'a' to modify the kernel arguments before booting, or
'c' for a command-line
"
As you see from this message, anybody who is in front of the console rebooting the server, can edit the grub commands, or even modify the kernel arguments, which probably will cause problems, if someone who doesn’t know what they are doing, plays around with this on production systems.

Enter the Password command in grub.conf
/boot/grub/grub.conf contains information about the entries that are displayed in the GRUB menu during system startup. On some systems, /etc/grub.conf is a symbolic link to /boot/grub/grub.conf.
Add the following “password” line to the grub.conf file
"
$ cat /etc/grub.conf
default=0
timeout=15
password GrbPwd4SysAd$
..
"
Once the “password” command is added to the grub.conf, the following message will be displayed right under the GRUB menu during the system startup.
"
Press enter to boot the selected OS or
'p' to enter a password to unlock the next set of features.
"
Encrypt password using grub-crypt
You can use grub-crypt utility to create an encrypted password.
"
# grub-crypt
Password: GrbPwd4SysAd$
Retype password: GrbPwd4SysAd$
^9^32kwzzX./3WISQ0C
"
Modify the grub.conf file, add the “password” entry with the –encrypted argument as shown below.
"
$ cat /etc/grub.conf
default=0
timeout=15
password --encrypted ^9^32kwzzX./3WISQ0C
..
"
By default, the grub-crypt command encrypts the password using SHA-512 algorithm. You can also
encrypt the password either using SHA-256 or MD5 alrogithms as shown below.
"
# grub-crypt –sha-256
# grub-crypt –md5
"
You can also use md5crypt to encrypt the password. In that case, you should use “password –md5 encrypted-password” in your grub.conf file.
[ Read More ]
Read more...

What is linux kernel

Posted by Raju Gupta at 8:52 AM – 0 comments
 
"The kernel constitutes the core part of the linux operating system."
Kernel Duties
  • System initialization :-- Detects hardware resources and boots up the system.
  • Process Scheduling :-- Determines when processes should run and for how long.
  • Memory Management :-- Allocates memory on behalf of running processes.
  • Security :-- Constantly verifies filesystem permissions, SELinux contexts and firwell rules.
  • Provides buffers and caches to speed up hardware access.
  • Implements standard network protocols and filesystem formats.

Three kernel virsions available for x86
  • Regular :-- One or more processors but 4GB Ram or less.
  • PFA :-- Multiple processors and up to 64GB of ram.
  • Xen :-- Needed for virtualization
Some basic information about Linux Kernel
  • Kernel always installed under /boot/vmlinuz
  • kernel modules are located under /lib/modules/.
  • Some basic Commands
#lsmod Provides a list of loaded modules
#modprobe can load and unload module
#insmod will also load dependencies automatically
#modprobe -r To remove a currently loaded module
[ Read More ]
Read more...
Older Posts
Subscribe to: Posts (Atom)

Our Blogs

  • Java Programs with Output
  • C Programming Tutorial
  • Language Tutorial
  • Android Development Tutorial
  • Web Development Tutorial
  • Popular
  • Recent
  • Archives

Popular Posts

  • Apache Configuration File Security Option
    you’ll examine the security options available in the main Apache configuration file, httpd.conf. That file can be modified to secure the e...
  • AWS VPC Overview
    What is VPC ? A virtual private cloud (VPC) is a virtual network dedicated to your AWS account. It is logically isolated from other vir...
  • Advantages & Disadvantages of Kerberos
    Advantages of Kerberos Most conventional network services use password-based authentication schemes. Such schemes require a user to au...
  • SSH login without password
    The following steps can be used to ssh from one system to another without specifying a password: 1. On the client run the following com...
  • Apache Installation and Configuration through source code
    In this example we extract the source code to a directory under /usr/local/src/ cp httpd-2.0.46.tar.gz /usr/local/src cd /usr/local/src...
  • How to automatically chroot jail selected ssh user logins
    1. Creating basic chroot environment First we need to create a simple chroot environment. Our chroot environment will consist of a bash she...
  • How to Create the Kerberos database
    Create the database with the following command.  [root@coma ~] kdb5_util create -s This will prompt you for a password. You will ...
  • Kerberos and PAM
    Kerberos-aware services do not currently make use of Pluggable Authentication Modules (PAM) — these services bypass PAM completely. However...
  • Apache and SELinux File Labels
    Take a look at the SELinux settings associated with Apache. To review, SELinux settings, as they relate to a service, mostly fall into tw...
  • History of MINIX 3
    MINIX has a long history. It goes back to 1987 when the first edition of the book Operating Systems: Design and Implementation by Andrew S...
Powered by Blogger.

Archives

  • ▼  2014 (1)
    • ▼  May (1)
      • AWS VPC Overview
  • ►  2013 (4)
    • ►  February (4)
  • ►  2012 (89)
    • ►  November (1)
    • ►  March (4)
    • ►  February (36)
    • ►  January (48)
 

Followers

Labels

  • Apache (8)
  • aws (1)
  • Bridge (1)
  • cloud computing (1)
  • Configuration (1)
  • dhcp server (7)
  • DNS (8)
  • File system (11)
  • Fping (1)
  • Iptable basic (3)
  • KDC slave server (1)
  • Kerberos (14)
  • kerberos configuration (5)
  • kerberos database (1)
  • LaTeX (1)
  • Ldap basic (2)
  • Linux aliases (1)
  • Linux Commands (4)
  • Linux History (2)
  • Linux Installation (3)
  • Linux kernel (3)
  • Linux shell (2)
  • Linux software (2)
  • Lvm (1)
  • Mail Server (3)
  • Network Script (1)
  • PHP (1)
  • Raid (6)
  • SELinux (1)
  • Sendmail (3)
  • ssh (2)
  • Tcpdump example (1)
  • Virtualization (5)
  • Webmin (1)
  • Yum (2)
 
 
© 2011 Linux Tutorial for Beginners | Designs by Web2feel & Fab Themes

Bloggerized by DheTemplate.com - Main Blogger