<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3133500957547956426</id><updated>2011-07-30T09:53:53.355-07:00</updated><category term='IP route'/><category term='Network Interface Card'/><category term='DNS'/><category term='Remote Administration Telnet'/><category term='redhat server'/><category term='boot loader'/><category term='log messages'/><category term='fqdn'/><category term='service'/><category term='gz'/><category term='linux boot loader'/><category term='corn'/><category term='rhel'/><category term='restore'/><category term='multiboot'/><category term='job'/><category term='configuration'/><category term='FTP'/><category term='xinetd Access Control'/><category term='linux security'/><category term='single user mode'/><category term='dhcp server'/><category term='TCP WRAPPERS'/><category term='scp'/><category term='Apache'/><category term='syslog service'/><category term='backup'/><category term='compress'/><category term='NFS File server'/><category term='Web Server'/><category term='modify'/><category term='SSH'/><category term='Proxy server'/><category term='vsftp'/><category term='pocket linux guide'/><category term='IP Forwarding'/><category term='Linux installation guide'/><category term='modify xinetd service.'/><category term='sendmail'/><category term='user'/><category term='grub.cong'/><category term='PLUGGABLE AUTHENTICATION MODULE'/><category term='NAT'/><category term='squid'/><category term='NFS'/><category term='anonymous'/><category term='edit'/><category term='USERCTL'/><category term='Lan Card'/><category term='chainloader'/><category term='network'/><category term='squid proxy server'/><category term='xinetd server'/><category term='erase'/><category term='conf'/><category term='proxy'/><category term='grub'/><category term='drive'/><category term='working with log'/><category term='editor.command'/><category term='dump'/><category term='command'/><category term='log error'/><category term='Router'/><category term='VGA'/><category term='anaconda'/><category term='File server'/><category term='lvm.LOGICAL VOLUME MANAGER'/><category term='grub.conf'/><category term='display problem'/><category term='shell'/><category term='telnet'/><category term='at command'/><category term='x-window'/><category term='syslog server'/><category term='services'/><category term='linux administrator guide'/><category term='Configure secure imap'/><category term='firewall'/><category term='file'/><category term='TASKS'/><category term='boot'/><category term='vi'/><category term='red hat linux guide'/><category term='configure dhcp server'/><category term='instalation'/><category term='file server in linux'/><category term='SCHEDULING'/><category term='syslog'/><category term='file system'/><category term='book'/><category term='tar'/><category term='gunzip'/><category term='mail server'/><category term='imap'/><category term='unix'/><category term='Linux'/><category term='kernel'/><category term='decompress'/><category term='samba'/><category term='server'/><category term='guide to linux'/><category term='linux config'/><category term='password'/><category term='xinetd'/><category term='allow'/><category term='zip'/><title type='text'>linux guide</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-4736012007398871160</id><published>2009-11-18T02:09:00.000-08:00</published><updated>2009-11-18T02:14:27.412-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pocket linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='guide to linux'/><category scheme='http://www.blogger.com/atom/ns#' term='file system'/><category scheme='http://www.blogger.com/atom/ns#' term='red hat linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='linux config'/><category scheme='http://www.blogger.com/atom/ns#' term='edit'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='lvm.LOGICAL VOLUME MANAGER'/><category scheme='http://www.blogger.com/atom/ns#' term='instalation'/><category scheme='http://www.blogger.com/atom/ns#' term='linux administrator guide'/><title type='text'>LOGICAL VOLUME MANAGER (LVM)</title><content type='html'>If we  have  logical volume  we  can  dynamicly add or remove  diskspace  to  or  from  it.   Any disk  partitions  to  used  as  physical  volumes  need  to  have  their  partition  types  set  to  8e, Linux  LVM. After  creating  Primary  Volu me,  we  must  create  a  Volume  Group  with  any name.After  that  we  will create  Logical Volume.   Not  only  to the  Logical Volume, we  can extend or reduce the size of a Volume Group. &lt;br /&gt;Lets start -  &lt;br /&gt;Create a Partition of LVM type using fdisk and reboot the system. –  &lt;br /&gt; &lt;br /&gt; fdisk /dev/hda &lt;enter&gt; &lt;br /&gt;n &lt;enter&gt; &lt;br /&gt;(define/accept the first cylinder) &lt;enter&gt; &lt;br /&gt;(define the last cylinder) +100M &lt;enter&gt; &lt;br /&gt;n &lt;enter&gt; &lt;br /&gt;(define/accept the first cylinder) &lt;enter&gt; &lt;br /&gt;(define the last cylinder) +150M &lt;enter&gt; &lt;br /&gt;p &lt;enter&gt;  (check  the  newly created partitions  at the bottom, note down the  partition no.  &lt;br /&gt;We are assuming /dev/hda10 and /dev/hda11 are created) &lt;br /&gt;t &lt;enter&gt; &lt;br /&gt;10 (partition no) &lt;enter&gt; &lt;br /&gt;   l &lt;enter&gt; ( to list codes -  please note the code for Linux LVM, it is 8e) &lt;br /&gt;8e &lt;enter&gt; &lt;br /&gt;t &lt;enter&gt; &lt;br /&gt;11 (partition no) &lt;enter&gt; &lt;br /&gt;8e &lt;enter&gt; &lt;br /&gt;w &lt;enter&gt; (  to write to partition table and exit from fdisk) &lt;br /&gt; &lt;br /&gt;reboot (  reboot your system) &lt;br /&gt; &lt;br /&gt;Initialize the LVM Configuration Files&lt;br /&gt;vgscan  &lt;br /&gt; &lt;br /&gt;Initialize the LVM partitions as physical volumes. &lt;br /&gt;pvcreate /dev/hda10 /dev/hda11  &lt;br /&gt; &lt;br /&gt;Create Vouume Group. &lt;br /&gt;vgcreate vg1 /dev/ hda10  &lt;br /&gt;Here, vg1 is volume group name &lt;br /&gt; &lt;br /&gt;Create Logical Volume. &lt;br /&gt;&lt;br /&gt;lvcreate -L 50M -n lvm1 vg1  &lt;br /&gt;Here, lvm1 is logical volume name &lt;br /&gt; &lt;br /&gt;Make filesystem. &lt;br /&gt;&lt;br /&gt;mkfs /dev/vg1/lvm1 &lt;br /&gt;Mount the newly created logical volume to a directory, say /lvmone &lt;br /&gt;mount /dev/vg1/lvm1 /lvmone  &lt;br /&gt; &lt;br /&gt;Check the volume size. &lt;br /&gt;&lt;br /&gt;lvdisplay /dev/vg1/lvm1 &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;If you want to resize it, first unmount the partion and run &lt;br /&gt;e2fsadm -L+25M /dev/vg1/lvm1  &lt;br /&gt; &lt;br /&gt;Check the volume size once again.  If you want to reduce the partition size run -  &lt;br /&gt;e2fsadm -L-20M /dev/vg1/lvm1  &lt;br /&gt; &lt;br /&gt;Run the following command to see the volume group size and space left on it. &lt;br /&gt;vgdisplay &lt;br /&gt; &lt;br /&gt;To extend the volume group size   &lt;br /&gt; &lt;br /&gt;vgextend vg1 /dev/hda11 &lt;br /&gt; &lt;br /&gt;Run  ‘vgdisplay’  once  again  to  check  the  volume  group  size,  allocated  space  and  free space.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-4736012007398871160?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/4736012007398871160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/11/logical-volume-manager-lvm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4736012007398871160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4736012007398871160'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/11/logical-volume-manager-lvm.html' title='LOGICAL VOLUME MANAGER (LVM)'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-2718589541698922240</id><published>2009-11-17T01:30:00.000-08:00</published><updated>2009-11-17T01:34:54.912-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='guide to linux'/><category scheme='http://www.blogger.com/atom/ns#' term='pocket linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='linux config'/><category scheme='http://www.blogger.com/atom/ns#' term='edit'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='job'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux installation guide'/><category scheme='http://www.blogger.com/atom/ns#' term='file system'/><category scheme='http://www.blogger.com/atom/ns#' term='red hat linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='linux administrator guide'/><title type='text'>Some important commands regarding user and group</title><content type='html'>To Change owner of a file  &lt;br /&gt;chown  user_name  file_name &lt;br /&gt;Example:  You want to make gautam as owner of beragautam.tx &lt;br /&gt;chown gautam beragautam.tx &lt;br /&gt; &lt;br /&gt;To change owner and group of a file &lt;br /&gt;chown user_name.group_name file_name  &lt;br /&gt; &lt;br /&gt;You can also use this command as follows –  &lt;br /&gt;chown user_nam:group_name file_name  &lt;br /&gt;(Please note, you can use either “:” or “.”) &lt;br /&gt; &lt;br /&gt;If you want to assign a file would be used by a group use the following command. &lt;br /&gt;chgrp special atanu.tx &lt;br /&gt;Here group name is special and file name is beragautam.tx &lt;br /&gt; &lt;br /&gt;What  is  a  group?  &lt;br /&gt;A  group  is  used  to  represent  users,  who  have  similar  characteristics,exercise  similar  tasks  and  &lt;br /&gt;enjoy  similar  permission  and  environment  in  a  network. Now think about the situation here. &lt;br /&gt;You have a group of users who need similar type of access to a file, beragautam.tx.  What you will do?  Very simple &lt;br /&gt; &lt;br /&gt;Create a group. &lt;br /&gt; &lt;br /&gt;Issue the command that enables the group to access the file  &lt;br /&gt; &lt;br /&gt;Give file access permission to this group. (Example, all permissions to owner and read and &lt;br /&gt;execute permissions to group) &lt;br /&gt; &lt;br /&gt;Make the users members of a group. &lt;br /&gt; &lt;br /&gt;Do these tasks as defined below. &lt;br /&gt;groupadd newgroup &lt;br /&gt;chgrp newgroup bera.tx &lt;br /&gt;chmod 750 beragautam.tx &lt;br /&gt;&lt;br /&gt;And then add the user to this group. &lt;br /&gt; &lt;br /&gt;vi /etc/group &lt;br /&gt;At the  bottom  of the file verify  the entry  related  to newgroup  and  add the  user name.   It &lt;br /&gt;will look like – &lt;br /&gt;newgroup:x:600:beragautam,gautam &lt;br /&gt; &lt;br /&gt;Here,  beragautam and gautam  are  members  of  the  newly  created  group,  ‘newgroup’.    The  thing &lt;br /&gt;must  be  noted  is,  usernames  are  specified  by  comma  (,)  separated  form.    However, &lt;br /&gt;instead  of  editing  th e  /etc/group  file  directly,  we  can  use  commands  to  add  or  remove &lt;br /&gt;users from a group. &lt;br /&gt;&lt;br /&gt;If  we  want  to  add  members  (in  our  example,  the  name  of  the  group  is  acct  and  the &lt;br /&gt;members are red and green), we can use the following command – &lt;br /&gt;gpasswd –M red,green acct &lt;br /&gt; &lt;br /&gt;If we want to add user ‘blue’ in the ‘acct’ group we can use the following command –  &lt;br /&gt;gpasswd –a blue acct &lt;br /&gt; &lt;br /&gt;To remove user red from the acct group, we can use the following command – &lt;br /&gt;gpasswd –d red acct&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-2718589541698922240?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/2718589541698922240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/11/some-important-commands-regarding-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/2718589541698922240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/2718589541698922240'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/11/some-important-commands-regarding-user.html' title='Some important commands regarding user and group'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-5214146590106078816</id><published>2009-09-17T00:02:00.000-07:00</published><updated>2009-09-17T00:08:07.605-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pocket linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux installation guide'/><category scheme='http://www.blogger.com/atom/ns#' term='guide to linux'/><category scheme='http://www.blogger.com/atom/ns#' term='red hat linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='redhat server'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='dhcp server'/><category scheme='http://www.blogger.com/atom/ns#' term='configure dhcp server'/><category scheme='http://www.blogger.com/atom/ns#' term='linux administrator guide'/><title type='text'>DHCP SERVER</title><content type='html'>In a TCP/IP network, each host  should have a unique IP address according to the Network address.The  clients  may  also  require  other  information  to  access different  services  and resources.In a large network it increase the overhead for an administrator.  DHCP Server automates  this.    DHCP  Server  provides  clients  with  an  IP  address  along  with  some  host specific  configuration  parameters.   A  DHCP  Server  can  be  used  for  dynamic allocation,  or it can be used just as a bearer.   &lt;br /&gt;In RedHat linux, the main configuration file is /etc/dhcpd.conf &lt;br /&gt;&lt;br /&gt;DHCP related information are stored in /var/lib/dhcp/dhcpd.leases file&lt;br /&gt;By  default,  the  /etc/dhcpd.conf  file  not  exists  in  your  system.    Though  you  can  copy  a &lt;br /&gt;sample file, /usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample, to /etc/dhcpd.conf. &lt;br /&gt;&lt;br /&gt;Some options and systaxes in /etc/dhcpd.conf file: &lt;br /&gt; &lt;br /&gt;default-lease-time 720; &lt;br /&gt;max-lease-time 86400; &lt;br /&gt;(Values are in seconds) &lt;br /&gt;subnet    192.168.100.0   netmask   255.255.255.0   { &lt;br /&gt;  range 192.168.100.10  192.168.100.50; &lt;br /&gt;  range 192.168.100.101  192.168.100.150; &lt;br /&gt;} &lt;br /&gt;(Specifies subnet  address with mask  followed  by  subnet  address  range.   Here,  addresses &lt;br /&gt;from 192.168.100.51 to 192.168.100.100 will never allocated to any systems) &lt;br /&gt; &lt;br /&gt;host  comp1   { &lt;br /&gt;  hardware   Ethernet   00:04:5A:4F:8E:4B; &lt;br /&gt;  fixed  address  192.168.100.60; &lt;br /&gt;} &lt;br /&gt;(You  are  supplying  ip  address  ( 192.168.100.60)  to  comp1  whose  NIC  mac  address  is &lt;br /&gt;00:04:5A: 4F:8E:4B.) &lt;br /&gt; &lt;br /&gt;option    routers  192.168.100.1; &lt;br /&gt;(Gateway address) &lt;br /&gt; &lt;br /&gt;option    domain-name-servers  192.168.100.2,192.168.100.3; &lt;br /&gt;(Ip address of your Primary and Secondary DNS Server) &lt;br /&gt; &lt;br /&gt;option    time-servers  192.168.100.2; &lt;br /&gt;(Clients synchronizes time from this Time Server) &lt;br /&gt;option    netbios-name-servers  192.168.100.4; &lt;br /&gt;(Microsoft WINS Server) &lt;br /&gt;&lt;br /&gt;Check out the following example of a /etc/dhcpd.conf file for your perusal: -  &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mz9ZgjwKynY/SrHfbR2cYsI/AAAAAAAAAEU/6gYiGFNjk_w/s1600-h/dhcp.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 187px;" src="http://1.bp.blogspot.com/_mz9ZgjwKynY/SrHfbR2cYsI/AAAAAAAAAEU/6gYiGFNjk_w/s320/dhcp.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5382328689425670850" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To start the DHCP Server –  &lt;br /&gt;&lt;br /&gt;/etc/init.d/dhcpd start  or &lt;br /&gt;service dhcpd start &lt;br /&gt; &lt;br /&gt;To start the service automatically during the boot time – &lt;br /&gt;chkconfig dhcpd on&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-5214146590106078816?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/5214146590106078816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/09/dhcp-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/5214146590106078816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/5214146590106078816'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/09/dhcp-server.html' title='DHCP SERVER'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_mz9ZgjwKynY/SrHfbR2cYsI/AAAAAAAAAEU/6gYiGFNjk_w/s72-c/dhcp.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-1448986364631480496</id><published>2009-07-09T03:16:00.001-07:00</published><updated>2009-07-09T03:20:28.487-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TCP WRAPPERS'/><category scheme='http://www.blogger.com/atom/ns#' term='pocket linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux installation guide'/><category scheme='http://www.blogger.com/atom/ns#' term='guide to linux'/><category scheme='http://www.blogger.com/atom/ns#' term='red hat linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='redhat server'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='linux security'/><category scheme='http://www.blogger.com/atom/ns#' term='linux administrator guide'/><title type='text'>TCP WRAPPERS</title><content type='html'>TCP WRAPPERS&lt;br /&gt;To provide a better degree of access control, some service like sshd, portmap, xinetd are compiled with libwrap.a library. These are called “Tcp-wrapped” service.&lt;br /&gt;Now, we are going to implement control on tcp-wrapped service. We will modify /etc/hosts.deny file here as follows – see the highlighted section in the screenshot below.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mz9ZgjwKynY/SlXDo4VoTwI/AAAAAAAAAEM/0QeoKhO2Bnw/s1600-h/one.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_mz9ZgjwKynY/SlXDo4VoTwI/AAAAAAAAAEM/0QeoKhO2Bnw/s320/one.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5356402438912364290" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here, in the highlighted section –&lt;br /&gt;• The 1st line defines “ssh connection from any system will be disallowed”&lt;br /&gt;• The 2nd line defines “only a computer with IP address 172.16.1.38 will be allowed to establish ssh session – others will be disallowed”&lt;br /&gt;• The 3rd line defines “ssh connection from any system will be disallowed but the system will allow 172.16.1.38 and 172.16.1.178 to establish ssh session”&lt;br /&gt;• The 4th line allows “computer from 172.16.0.0/255.255.248.0 network will be establis allowed to h ssh session – other will be disallowed”&lt;br /&gt;• The 5th line defines “computer from 172.16.0.0/255.255.248.0 network, except 172.16.1.38, will be allowed and other systems will be disallowed to establish ssh session.&lt;br /&gt;• The 6th line defines “the same rule as it is defined in the 5th line, where the rule is here for telnet and ssh service”&lt;br /&gt;• The last line defines “all tcp-wrapped service can only be accessible from&lt;br /&gt;abc.com domain”&lt;br /&gt;&lt;br /&gt;In the screen shot above the last line is activated only as it is not commented out using #.&lt;br /&gt;Have a note, you do not need to start or restart any service to control tcp-wrapped service using tcp-wrapper. All you have to do is just modify the /etc/hosts.deny file.&lt;br /&gt;There is another important file, /etc/hosts.allow, as far as tcp wrapper is concerned. The system will check the /etc/hosts.allow file first, service will be accessible to users using it. Then the system will go through /etc/hosts.deny file and act accordingly.&lt;br /&gt;Let us assume, we have a requirement where we want only ssh service will be accessible from 172.16.1.38 and other “tcp-wrapped” services will be blocked from any user.&lt;br /&gt;The easiest solution is add the following line in /etc/hosts.deny file –&lt;br /&gt;ALL: ALL&lt;br /&gt;Add the following line in /etc/hosts.allow file –&lt;br /&gt;ssh: 172.16.1.38&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-1448986364631480496?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/1448986364631480496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/07/tcp-wrappers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/1448986364631480496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/1448986364631480496'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/07/tcp-wrappers.html' title='TCP WRAPPERS'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_mz9ZgjwKynY/SlXDo4VoTwI/AAAAAAAAAEM/0QeoKhO2Bnw/s72-c/one.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-214508618361713408</id><published>2009-06-26T01:04:00.000-07:00</published><updated>2009-06-26T01:10:46.880-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='guide to linux'/><category scheme='http://www.blogger.com/atom/ns#' term='pocket linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='linux security'/><category scheme='http://www.blogger.com/atom/ns#' term='boot loader'/><category scheme='http://www.blogger.com/atom/ns#' term='red hat linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='grub'/><category scheme='http://www.blogger.com/atom/ns#' term='redhat server'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='linux boot loader'/><category scheme='http://www.blogger.com/atom/ns#' term='single user mode'/><category scheme='http://www.blogger.com/atom/ns#' term='boot'/><category scheme='http://www.blogger.com/atom/ns#' term='grub.conf'/><category scheme='http://www.blogger.com/atom/ns#' term='linux administrator guide'/><title type='text'>Protecting the  boot loader(grub.conf) with  password</title><content type='html'>Protecting the /boot/grub/grub.conf with md5 password:&lt;br /&gt;&lt;br /&gt;For trouble shooting purpose, administrator sometimes boot the linux computer in single user mode. We will learn how to boot a linux system in single user mode shortly.&lt;br /&gt;If you boot a Linux computer in single user mode the system will never ask you to authenticate and assume you as root user. It is really helpful in case you forgot root user’s password, or the root password has expired, or you want to recover the grub boot loader in a dual-boot system etc.&lt;br /&gt;But there is a security risk also. For example, any one can change the root user’s password after booting the computer in single user mode.&lt;br /&gt;To protect unauthorized user to start the Linux computer in single user mode, it is recommended to set md5 password on grub. The md5 password can be implemented during the time of installation of the Linux computer. It is also possible to set the md5 password on grub after installation.&lt;br /&gt;Here, I will show you, how to set md5 password on grub after installation.&lt;br /&gt;Run, grub-md5-crypt&lt;br /&gt;The system will ask you to enter the password. Supply it.&lt;br /&gt;The system will return you a string on your monitor like this -&lt;br /&gt;$1$Hk/zc0$k3vGSgE0kYxqMKzF6Qi3g/&lt;br /&gt;Note down the string very carefully.&lt;br /&gt;Now, open the /boot/grub/grub.conf file in vi editor&lt;br /&gt;Just below the splashimage=(hd0,1)/grub/splash.xpm.gz line in the file, place the following line –&lt;br /&gt;password—md5 $1$Hk/zc0$k3vGSgE0kYxqMKzF6Qi3g/&lt;br /&gt;&lt;br /&gt;After modification, the /boot/grub/grub.conf will look like –&lt;br /&gt;# grub.conf generated by anaconda&lt;br /&gt;#&lt;br /&gt;#boot=/dev/hda&lt;br /&gt;default=0&lt;br /&gt;timeout=20&lt;br /&gt;splashimage=(hd0,1)/grub/splash.xpm.gz&lt;br /&gt;password --md5 $1$Hk/zc0$k3vGSgE0kYxqMKzF6Qi3g/&lt;br /&gt;title DOS&lt;br /&gt;rootnoverify (hd0,0)&lt;br /&gt;chainloader +1&lt;br /&gt;title Red Hat Linux (2.4.18-14)&lt;br /&gt;root (hd0,1)&lt;br /&gt;kernel /vmlinuz-2.4.18-14 ro root=LABEL=/&lt;br /&gt;initrd /initrd-2.4.18-14.img&lt;br /&gt;# end of file&lt;br /&gt;gr&lt;br /&gt;However, I never do the task the same way I describe you above. Rather I append the output of grub-md5-crypt to /etc/grub.conf by executing the following command –&lt;br /&gt;grub-md5-crypt &gt;&gt; /etc/grub.conf&lt;br /&gt;Then I delete unnecessary lines there in the grub.conf file and cut the string and paste it to right place.&lt;br /&gt;At this point if you reboot the computer and try to start the computer with single user mode, you need to supply the grub password, by default the system will boot according to the configuration in the /etc/inittab file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-214508618361713408?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/214508618361713408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/06/protecting-boot-loadergrubconf-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/214508618361713408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/214508618361713408'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/06/protecting-boot-loadergrubconf-with.html' title='Protecting the  boot loader(grub.conf) with  password'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-6357326592121708183</id><published>2009-06-24T03:58:00.000-07:00</published><updated>2009-06-24T04:11:14.977-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='guide to linux'/><category scheme='http://www.blogger.com/atom/ns#' term='telnet'/><category scheme='http://www.blogger.com/atom/ns#' term='edit'/><category scheme='http://www.blogger.com/atom/ns#' term='services'/><category scheme='http://www.blogger.com/atom/ns#' term='conf'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='password'/><category scheme='http://www.blogger.com/atom/ns#' term='user'/><category scheme='http://www.blogger.com/atom/ns#' term='squid'/><category scheme='http://www.blogger.com/atom/ns#' term='allow'/><category scheme='http://www.blogger.com/atom/ns#' term='redhat server'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='rhel'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='modify'/><category scheme='http://www.blogger.com/atom/ns#' term='SSH'/><category scheme='http://www.blogger.com/atom/ns#' term='scp'/><category scheme='http://www.blogger.com/atom/ns#' term='Remote Administration Telnet'/><category scheme='http://www.blogger.com/atom/ns#' term='proxy'/><title type='text'>Remote Administration Telnet, SSH, telnet</title><content type='html'>Remote Administration Telnet, SSH and telnet:&lt;br /&gt;Telnet&lt;br /&gt;Telnet is basically a virtual terminal program that helps you to configure a system remotely. In production environment, telnet is rarely used as it transfer keystroke in clear text.To enable telnet all you have to do is, run the following two commands &lt;br /&gt;chkconfig telnet on&lt;br /&gt;service xinetd restart&lt;br /&gt;By default, telnet to remote system using root user is disabled. You have to log into the telnet server as a non-privileged user then you can change your identity as root using the following command –&lt;br /&gt;su – root&lt;br /&gt;&lt;br /&gt;SSH&lt;br /&gt;&lt;br /&gt;Unlike telnet, ssh is considered a Secure Shell Service. Ssh runs on public/private key infrastructure using rsa or dsa technology.&lt;br /&gt;It is very easy to start ssh. Execute service sshd restart command.&lt;br /&gt;By default any user can establish ssh session. However, this can be controlled by modifying the /etc/ssh/sshd_config file. See the following screen shot. Here I have denied atanu and allowed all other users to establish an ssh session.&lt;br /&gt;We can also allow or deny one or multiple group using AllowGroups or DenyGroups directive, like AllowGroups acct mrkt.&lt;br /&gt;The modification can only be effected when you restart the ssh server.&lt;br /&gt;Check the last two lines in the screen shot in the page –&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mz9ZgjwKynY/SkIIsPIudoI/AAAAAAAAAD0/4dExtdeH3b0/s1600-h/one.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 257px;" src="http://3.bp.blogspot.com/_mz9ZgjwKynY/SkIIsPIudoI/AAAAAAAAAD0/4dExtdeH3b0/s320/one.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5350848863339968130" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In my network, I always use ssh to configure remote servers. Generally I configure my linux laptop as an ssh client. I have a RHEL 4 system and I use this particular computer to administer my proxy server that is running on 172.16.1.12. See, what I usually do –In my laptop I execute the following command to create the key –&lt;br /&gt;ssh-keygen –t dsa&lt;br /&gt;You can also use rsa here. See the following screen shot –&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mz9ZgjwKynY/SkII4ZebX2I/AAAAAAAAAD8/kx3FSkJY3mc/s1600-h/two.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://1.bp.blogspot.com/_mz9ZgjwKynY/SkII4ZebX2I/AAAAAAAAAD8/kx3FSkJY3mc/s320/two.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5350849072273776482" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Check the output, in the screen shot, carefully. In the 3rd Line, it is saying the key will be saved in /root/.ssh directory. If the .ssh directory is not exist in /root, the sshkeygen command will create it, check the 4th line. After creating /root/.ssh directory, the system will ask you to supply the passphrase. I enter empty passphrase, means just press enter twice. My identification is now saved in /root/.ssh/id_dsa file and the public key is id_dsa.pub.&lt;br /&gt;It is time to copy the id_dsa.pub in the /root/.ssh/ directory in my proxy server and the name of the file will be authorized_keys. I will be using the following command assuming in my proxy server, running on 172.16.1.12, the /root/.ssh directory exists.&lt;br /&gt;scp –rp /root/.ssh/id_dsa.pub root@172.16.1.12:/root/.ssh/authorized_keys&lt;br /&gt;See the output in the following screenshot. After executing the above command the system will ask your confirmation, type yes and press enter, supply root’s password for 172.16.1.12 and the file will be copied securely.&lt;br /&gt;&lt;br /&gt;The scp will be discussed shortly.&lt;br /&gt;Now, from your client computer if you execute ssh 172.16.1.12 the system will never ask you to supply the password!!&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mz9ZgjwKynY/SkIJN4o4QeI/AAAAAAAAAEE/J4LwDSsKJf8/s1600-h/third.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 182px;" src="http://4.bp.blogspot.com/_mz9ZgjwKynY/SkIJN4o4QeI/AAAAAAAAAEE/J4LwDSsKJf8/s320/third.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5350849441416364514" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;SCP&lt;br /&gt;&lt;br /&gt;Using scp, you can copy files from or to a remote linux system. In ssh section above, see how we use scp to copy id_dsa.pub. To refer a remote system we use user@machin_name_or_ip_address:/any/directory and a source can also be a remote system.&lt;br /&gt;While working with Windows system, I use winscp to communicate with linux system. The winscp382setup.exe is freely available for download in sourceforge.net.&lt;br /&gt;Please be noted, when you establish an ssh or scp session with a computer for the first time, the remote system related information is added in /root/.ssh/known_hosts text file. And if the remote system is re-installed you will be failed to establish ssh or scp session until you remove the system’s information from the /root/.ssh/known_hosts file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-6357326592121708183?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/6357326592121708183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/06/remote-administration-telnet-ssh-telnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/6357326592121708183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/6357326592121708183'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/06/remote-administration-telnet-ssh-telnet.html' title='Remote Administration Telnet, SSH, telnet'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_mz9ZgjwKynY/SkIIsPIudoI/AAAAAAAAAD0/4dExtdeH3b0/s72-c/one.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-2084315452401332130</id><published>2009-06-23T03:57:00.000-07:00</published><updated>2009-06-23T03:59:57.130-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pocket linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='guide to linux'/><category scheme='http://www.blogger.com/atom/ns#' term='red hat linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='PLUGGABLE AUTHENTICATION MODULE'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='linux security'/><category scheme='http://www.blogger.com/atom/ns#' term='linux administrator guide'/><title type='text'>PLUGGABLE AUTHENTICATION MODULE (PAM)</title><content type='html'>PLUGGABLE AUTHENTICATION MODULE (PAM)&lt;br /&gt;If you want to disallow console logins to all but root&lt;br /&gt;Open the /etc/security/access.conf file in any editor&lt;br /&gt;Copy the follwing line and paste it at the next line -&lt;br /&gt;# -:ALL EXCEPT wheel shutdown sync:LOCAL&lt;br /&gt;Modify the line as follows -&lt;br /&gt;-:ALL EXCEPT root sync:LOCAL&lt;br /&gt;Edit the /etc/pam.d/system-auth file - add the following line&lt;br /&gt;account required /lib/security/pam_access.so&lt;br /&gt;The above task will disallow console login locally. The user will be able to login to your server from remote system using telnet or ssh.&lt;br /&gt;To disallow local as well as virtual terminal login&lt;br /&gt;Edit the /etc/pam.d/system-auth file - add the following line&lt;br /&gt;account required /lib/security/pam_listfile.so item=user sense=allow&lt;br /&gt;onerr=fail file=/etc/security/validusers&lt;br /&gt;Do not be confused. I am repeating, the above is a single line input. It looks different because it does not fit into my document.&lt;br /&gt;Now, create the /etc/security/validusers file and add users’ name there one in a single line like –&lt;br /&gt;root&lt;br /&gt;user1&lt;br /&gt;&lt;br /&gt;The above configuration will allow root and  user only to log into your system’s terminal. If you replace sense=allow with sense=deny in the directive in&lt;br /&gt;/etc/pam.d/system-auth file, it will disallow root and .&lt;br /&gt;If you want to disallow a user from login from any terminal except ttyx&lt;br /&gt;Open the /etc/security/access.conf file in any editor&lt;br /&gt;Copy the follwing line and paste it at the next line -&lt;br /&gt;# -:ALL EXCEPT wheel shutdown sync:LOCAL&lt;br /&gt;Modify the line as follows -&lt;br /&gt;-:red:ALL EXCEPT tty3&lt;br /&gt;Edit the /etc/pam.d/system-auth file - add the following line&lt;br /&gt;account required /lib/security/pam_access.so&lt;br /&gt;Login Time Restriction&lt;br /&gt;Open the /etc/security/time.conf in any editor&lt;br /&gt;Add the following lines there -&lt;br /&gt;login;*;red;MoTuWeThFr0000-2400&lt;br /&gt;login;*;green;Mo1000-2400|TuWeThFr0000-2400|Sa0000-1400&lt;br /&gt;Edit the /etc/pam.d/system-auth file - add the following line&lt;br /&gt;account required /lib/security/pam_time.so&lt;br /&gt;Here, user red will be allowed to login from Monday to Friday. And&lt;br /&gt;user green will be allowed to login to the system from Monday 10 hrs to Saturday 14 hrs.&lt;br /&gt;We refer day by using the first two characters of it. For example to refer Sunday, we will be using Su only.&lt;br /&gt;We can use ! for reverse action. Check the following line–&lt;br /&gt;login;*;red;!MoTuWeThFr0000-2400&lt;br /&gt;Here, user red will be disallowed to login from Monday to Friday.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-2084315452401332130?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/2084315452401332130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/06/pluggable-authentication-module-pam.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/2084315452401332130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/2084315452401332130'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/06/pluggable-authentication-module-pam.html' title='PLUGGABLE AUTHENTICATION MODULE (PAM)'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-6919495885666254227</id><published>2009-06-20T01:30:00.000-07:00</published><updated>2009-06-20T01:35:41.941-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pocket linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='log messages'/><category scheme='http://www.blogger.com/atom/ns#' term='syslog'/><category scheme='http://www.blogger.com/atom/ns#' term='linux security'/><category scheme='http://www.blogger.com/atom/ns#' term='syslog service'/><category scheme='http://www.blogger.com/atom/ns#' term='red hat linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='working with log'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='log error'/><category scheme='http://www.blogger.com/atom/ns#' term='syslog server'/><category scheme='http://www.blogger.com/atom/ns#' term='linux administrator guide'/><title type='text'>Working with Log - Syslog</title><content type='html'>Working with Log - Syslog&lt;br /&gt;Linux applications use syslog utility to log application related error and status messages to a file, by default in /var/log directory.&lt;br /&gt;By default the syslog utility is running in your system to log messages. By default your syslog server accepts log messages from your local system. We can configure a centralized log server in our network that eventually eases track log messaging.&lt;br /&gt;The files related with syslog are /etc/syslog.conf and /etc/sysconfig/syslog.&lt;br /&gt;The /etc/syslog.conf defines in which files log messages will be written. The /etc/sysconfig/syslog file defines mode of operation, whether it will allow remote system to send log messages or not.&lt;br /&gt;A sample /etc/syslog.conf is as follows –&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mz9ZgjwKynY/SjyeWAR2kSI/AAAAAAAAADk/WlYlG3q14vA/s1600-h/one.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://1.bp.blogspot.com/_mz9ZgjwKynY/SjyeWAR2kSI/AAAAAAAAADk/WlYlG3q14vA/s320/one.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5349324558278496546" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In the default file, it defines –&lt;br /&gt;/var/log/messages is a “general purpose” log, many application logs messages here.&lt;br /&gt;/var/log/secure records login attempts, session related information.&lt;br /&gt;/var/log/maillog contains information about mailing&lt;br /&gt;/var/log/cron allows crond daemon to log messages&lt;br /&gt;/var/log/boot.log contains log messages related to service – start/stop/shutdows information.&lt;br /&gt;Briefly, the syslog service accepts log messages from different programs and writes the messages to appropriate files,generally in /var/log directory.&lt;br /&gt;If you want to configure syslog service to accept log-messages from remote system, you have to configure /etc/sysconfig/syslog file as follows. Note the highlighted section in the following screen shot of /etc/sysconfig/syslog file –&lt;br /&gt;in Syslog Server&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mz9ZgjwKynY/SjyegHhw1YI/AAAAAAAAADs/NTTGturzzFU/s1600-h/two.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 194px;" src="http://3.bp.blogspot.com/_mz9ZgjwKynY/SjyegHhw1YI/AAAAAAAAADs/NTTGturzzFU/s320/two.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5349324732022969730" /&gt;&lt;/a&gt;&lt;br /&gt;Here, what I have done is, replace SYSLOGD_OPTIONS=”-m 0” with&lt;br /&gt;SYSLOGD_OPTIONS=”-m 0 –r”&lt;br /&gt;Now, go to the Linux Client, the system that will send log-messages to your log-server, and do the following – assuming the IP address and name of your log-server is 172.16.1.230 and redhatlinux .&lt;br /&gt;Modify /etc/hosts file by adding the following entry -&lt;br /&gt;172.16.1.230 redhatlinux&lt;br /&gt;Modify /etc/syslog.conf as follows –&lt;br /&gt;authpriv.* @redhatlinux&lt;br /&gt;The above syntax will tell the syslog service to send authentication related information to your syslog server.&lt;br /&gt;Now, restart the syslog service in both, client and server, system. Execute –&lt;br /&gt;service syslog restart&lt;br /&gt;One important thing I must tell. The log files are really helpful. If you are getting problem always check the related log file.&lt;br /&gt;And for students preparing for RHCE exam, “If you fail to log in to your linux system, reboot your computer in single-user mode, check the /var/log/secure file”.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-6919495885666254227?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/6919495885666254227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/06/working-with-log-syslog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/6919495885666254227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/6919495885666254227'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/06/working-with-log-syslog.html' title='Working with Log - Syslog'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_mz9ZgjwKynY/SjyeWAR2kSI/AAAAAAAAADk/WlYlG3q14vA/s72-c/one.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-4545137957748008537</id><published>2009-06-18T23:13:00.000-07:00</published><updated>2009-06-18T23:18:44.439-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pocket linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux installation guide'/><category scheme='http://www.blogger.com/atom/ns#' term='guide to linux'/><category scheme='http://www.blogger.com/atom/ns#' term='red hat linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='Configure secure imap'/><category scheme='http://www.blogger.com/atom/ns#' term='imap'/><category scheme='http://www.blogger.com/atom/ns#' term='linux security'/><category scheme='http://www.blogger.com/atom/ns#' term='fqdn'/><category scheme='http://www.blogger.com/atom/ns#' term='linux administrator guide'/><title type='text'>Configure secure imap – imaps</title><content type='html'>Configure secure imap – imaps&lt;br /&gt;&lt;br /&gt;First of all check whether your mail server is running. If everything is going file, follow the steps –&lt;br /&gt;&lt;br /&gt;1. Have backup copy of dovecot.pem file&lt;br /&gt;cd /usr/share/ssl/certs&lt;br /&gt;mv dovecot.pem org.dovecot.pem&lt;br /&gt;cd ../private&lt;br /&gt;mv dovecot.pem org.dovecot.pem&lt;br /&gt;cd –&lt;br /&gt;&lt;br /&gt;2. Create new dovecot.pem file with your customized setting, execute make&lt;br /&gt;dovecot.pem. See the screen shot below&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mz9ZgjwKynY/SjssvwXJ1bI/AAAAAAAAADU/tJrrDosk18g/s1600-h/one.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 241px;" src="http://2.bp.blogspot.com/_mz9ZgjwKynY/SjssvwXJ1bI/AAAAAAAAADU/tJrrDosk18g/s320/one.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5348918181380085170" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;At this point your system will ask you to supply some information like – Country name&lt;br /&gt;etc. See what I have done in my case below –&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mz9ZgjwKynY/Sjss8fKW5gI/AAAAAAAAADc/BawwUpgLMYw/s1600-h/Two.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 115px;" src="http://1.bp.blogspot.com/_mz9ZgjwKynY/Sjss8fKW5gI/AAAAAAAAADc/BawwUpgLMYw/s320/Two.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5348918400101312002" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Carefully note the Common Name section. Here, you must supply the FQDN of your mailserver.&lt;br /&gt;At this point the /usr/share/ssl/certs/dovecot.pem is created. If there is any problem, remove the dovecot.pem file and recreate it.&lt;br /&gt;&lt;br /&gt;3. Copy the file to /usr/share/ssl/private directory –&lt;br /&gt;cp dovecot.pem ../private&lt;br /&gt;4. Modify /etc/dovecot.conf file as follows –&lt;br /&gt;protocols = ipop3 pop3 imap imaps&lt;br /&gt;5. Restart the servers –&lt;br /&gt;service dovecot restart&lt;br /&gt;service sendmail restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-4545137957748008537?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/4545137957748008537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/06/configure-secure-imap-imaps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4545137957748008537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4545137957748008537'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/06/configure-secure-imap-imaps.html' title='Configure secure imap – imaps'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_mz9ZgjwKynY/SjssvwXJ1bI/AAAAAAAAADU/tJrrDosk18g/s72-c/one.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-4828089479781898924</id><published>2009-06-17T20:38:00.000-07:00</published><updated>2009-06-17T20:43:22.693-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='service'/><category scheme='http://www.blogger.com/atom/ns#' term='pocket linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux installation guide'/><category scheme='http://www.blogger.com/atom/ns#' term='xinetd Access Control'/><category scheme='http://www.blogger.com/atom/ns#' term='red hat linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='xinetd server'/><category scheme='http://www.blogger.com/atom/ns#' term='modify xinetd service.'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='xinetd'/><category scheme='http://www.blogger.com/atom/ns#' term='linux security'/><category scheme='http://www.blogger.com/atom/ns#' term='linux administrator guide'/><title type='text'>xinetd Access Control</title><content type='html'>When you have a system available from the Internet or remote location, you must consider applying some security on your system. In Redhat there are some services run by xinetd server. xinetd is consider a “super server” in Redhat linux environment.&lt;br /&gt;Here I am going to show you how you can implement security on a service under xinetd in your system.&lt;br /&gt;Below I have printed a sample /etc/xinetd.d/telnet file for our purpose –&lt;br /&gt;# a sample /etc/xinetd.d/telnet file&lt;br /&gt;# default: on&lt;br /&gt;# description: The telnet server serves telnet sessions; it uses \&lt;br /&gt;# unencrypted username/password pairs for authentication.&lt;br /&gt;service telnet&lt;br /&gt;{&lt;br /&gt;flags = REUSE&lt;br /&gt;socket_type = stream&lt;br /&gt;wait = no&lt;br /&gt;user = root&lt;br /&gt;server = /usr/sbin/in.telnetd&lt;br /&gt;log_on_failure += USERID&lt;br /&gt;disable = no&lt;br /&gt;only_from = 172.16.0.0/16&lt;br /&gt;no_access = 172.16.1.2&lt;br /&gt;per_source = 1&lt;br /&gt;instances = 4&lt;br /&gt;access_times = 13:00-17:00&lt;br /&gt;}&lt;br /&gt;# end of file&lt;br /&gt;In the above sample file, -&lt;br /&gt;disable = no (enable telnet service)&lt;br /&gt;only_from = 172.16.0.0/16 (Telnet server will respond to clients from&lt;br /&gt;no_access = 172.16.1.2 172.16.0.0/16 network only, except&lt;br /&gt;172.16.1.2)&lt;br /&gt;per_source = 1 (Per source only one connection will be&lt;br /&gt;allowed)&lt;br /&gt;instances = 4 (Total number of connection allowed is 4)&lt;br /&gt;access_times = 13:00-15:00 (Connection will be allowed between 13 and&lt;br /&gt;15 hrs)&lt;br /&gt;However, whenever you modify /etc/xinetd.d/telnet file, never forget to restart the xinetd service. Run – service xinetd restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-4828089479781898924?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/4828089479781898924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/06/xinetd-access-control.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4828089479781898924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4828089479781898924'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/06/xinetd-access-control.html' title='xinetd Access Control'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-737736922814517364</id><published>2009-06-14T21:08:00.000-07:00</published><updated>2009-06-14T21:39:36.392-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pocket linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux installation guide'/><category scheme='http://www.blogger.com/atom/ns#' term='guide to linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Proxy server'/><category scheme='http://www.blogger.com/atom/ns#' term='red hat linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='linux config'/><category scheme='http://www.blogger.com/atom/ns#' term='firewall'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='squid proxy server'/><category scheme='http://www.blogger.com/atom/ns#' term='instalation'/><category scheme='http://www.blogger.com/atom/ns#' term='linux administrator guide'/><title type='text'>Squid Proxy Server</title><content type='html'>Squid Proxy Server  &lt;br /&gt;Basic Configuration  &lt;br /&gt;The main configuration file for squid proxy server is /etc/squid/squid.conf. &lt;br /&gt; &lt;br /&gt;The Squid Proxy Server has a dependency on a DNS Server.  Please be noted, &lt;br /&gt;while configuring the proxy client, what you only need to do is, specify the proxy &lt;br /&gt;server’s address and the port number the proxy server is listen to in the browser &lt;br /&gt;setting.  There is no need to define the DNS or Router’s address in the TCP/IP &lt;br /&gt;properties in the client machine. &lt;br /&gt; &lt;br /&gt;So, please check the /etc/resolv.conf file whether you have already putted any &lt;br /&gt;‘nameserver’ entry on not.  The Squid Proxy Server listens to Port 3128 by default.  &lt;br /&gt;And by default it will reject all packets.  If you want to allow users from your &lt;br /&gt;network only to get the service from squid proxy server – modify the &lt;br /&gt;/etc/squid/squid.conf file as follows.  Here we are assuming our network address &lt;br /&gt;is 192.168.0.0/24. &lt;br /&gt; &lt;br /&gt;First of all find out the visible_hostname directive in the squid.conf file.  By &lt;br /&gt;default it sets to none.  Just below the line # none – place an entry like this –  &lt;br /&gt; &lt;br /&gt;visible_hostname hostname or FQDN &lt;br /&gt; &lt;br /&gt;Now find out ‘acl all’ directive in the file.  You will find a line like the following –  &lt;br /&gt;acl all src 0.0.0.0/0.0.0.0 &lt;br /&gt; &lt;br /&gt;The above directive is a way to define every hosts in every network, src keyword &lt;br /&gt;define the “source”, by “all” access control list name.  If you move downwords, &lt;br /&gt;you will find a line like this –  &lt;br /&gt;http_access deny all &lt;br /&gt; &lt;br /&gt;Using the two lines, acl all src 0.0.0.0/0.0.0.0 and http_access deny all, the &lt;br /&gt;squid proxy server disallow all the clients to access the proxy service.  If you &lt;br /&gt;replace deny with allow in http_access deny all line here, it will allow all clients &lt;br /&gt;to access the serveice.  However our task here is to allow our network only.  So &lt;br /&gt;put a line that will define you network with an acl name and allow it using the &lt;br /&gt;http_access directive while keeping the default setting.  You can write a directive &lt;br /&gt;like this just after the acl all src 0.0.0.0/0.0.0.0 line –  &lt;br /&gt;acl ourlan src 192.168.0.0/255.255.255.0 &lt;br /&gt;&lt;br /&gt;Also put a line just before the http_access deny all directive like the following –  &lt;br /&gt;http_access allow ourlan &lt;br /&gt; &lt;br /&gt;While allowing clients, Squid Proxy Server goes through the policy one after &lt;br /&gt;another, top to bottom.  If it finds any match related to the current packet, it &lt;br /&gt;takes decision on that - whether the client will be allowed or denied.   &lt;br /&gt; &lt;br /&gt;To  start/stop/restart  the  squid  service  you  can  execute  the  following  command &lt;br /&gt;respectively –  &lt;br /&gt; &lt;br /&gt;service squid start &lt;br /&gt;service squid stop &lt;br /&gt;service squid restart &lt;br /&gt; &lt;br /&gt;chkconfig squid on command will start squid automatically at booting time. &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;User authenticated access to Squid Proxy &lt;br /&gt; &lt;br /&gt;The user can be authenticated from the local system (the squid proxy server) through &lt;br /&gt;ncsa authentication or from an LDAP server like Novell' s NDS or e-Directory or Microsoft's &lt;br /&gt;Active Directory. &lt;br /&gt; &lt;br /&gt;I am sending you the ncsa authentication implementation.... &lt;br /&gt; &lt;br /&gt;1.  First of all, create a password file for the users and assign read permission to all. &lt;br /&gt; &lt;br /&gt;touch /etc/squid/squid_passwd &lt;br /&gt;chmod o+r /etc/squid/squid_passwd &lt;br /&gt; &lt;br /&gt;2.  Create Users and Passwords for the users - &lt;br /&gt; &lt;br /&gt;htpasswd /etc/squid/squid_passwd user_1 &lt;br /&gt;htpasswd /etc/squid/squid_passwd user_2 &lt;br /&gt;htpasswd /etc/squid/squid_passwd user_n &lt;br /&gt; &lt;br /&gt;3.  Modify /etc/squid/squid.conf to support ncsa_auth program &lt;br /&gt;Open the /etc/squid/squid.conf in vi editor, find out auth_param directives, and add the &lt;br /&gt;following line just below the last auth_param directives -  &lt;br /&gt; &lt;br /&gt;auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd &lt;br /&gt; &lt;br /&gt;Move to acl section in the /etc/squid/squid.conf file - you can  find out acl all directive &lt;br /&gt;by pressing &lt;esc&gt;/acl all and press &lt;enter&gt;.  Add the follwing line - &lt;br /&gt; &lt;br /&gt;acl ncsa_users proxy_auth REQUIRED &lt;br /&gt; &lt;br /&gt;Scroll down to http_access deny all directive and insert a line at the top as follows - &lt;br /&gt; &lt;br /&gt;http_access allow ncsa_users &lt;br /&gt; &lt;br /&gt;4.  Restart your Squid proxy server -  &lt;br /&gt; &lt;br /&gt;service squid restart &lt;br /&gt; &lt;br /&gt;Web site restriction through Squid Proxy &lt;br /&gt; &lt;br /&gt;Open the /etc/squid/squid.conf in vi editor - move to acl ncsa_users proxy_auth &lt;br /&gt;REQUIRED &lt;br /&gt;add a line as follows -  &lt;br /&gt; &lt;br /&gt;acl blockdomain dstdomain "/etc/squid/blocked-domain-list" &lt;br /&gt; &lt;br /&gt;Scroll down to http_access allow ncsa_users &lt;br /&gt;put a line at the top like this -  &lt;br /&gt; &lt;br /&gt;http_access deny blockdomain &lt;br /&gt; &lt;br /&gt;After modification, it will look like these - &lt;br /&gt;... &lt;br /&gt;http_access deny blockdomain &lt;br /&gt;http_access allow ncsa_users &lt;br /&gt;http_access deny all &lt;br /&gt; &lt;br /&gt;Now create a file in /etc/squid, named blocked-domain-list &lt;br /&gt; &lt;br /&gt;Define the name of th e web sites you want to block as follows - &lt;br /&gt;.xxx.com &lt;br /&gt;.yyy.com &lt;br /&gt; &lt;br /&gt;Please be noted, you can only define one domain name in a single line. &lt;br /&gt; &lt;br /&gt;Restart your Squid proxy server -  &lt;br /&gt; &lt;br /&gt;service squid restart &lt;br /&gt; &lt;br /&gt;There are several methods of using a block list with squid.  One of them is the Malware &lt;br /&gt;Block list.  Let us check how to use this list. &lt;br /&gt; &lt;br /&gt;Now,  it  is  time  to  check,  the  activities  of  squid  proxy  server.    By  default  squid &lt;br /&gt;generates  log  report  in  /var/log/squid  directory.    The  access.log  reports  you &lt;br /&gt;information  about  website  access  using  your  proxy  server  where  cache.log  and &lt;br /&gt;store.log  keep  information  about cached information.    Commands are  available &lt;br /&gt;to  pipe  out  information.    However,  there  are  so  many  utilities  available  in  the &lt;br /&gt;Internet to show you information in easily readable format. &lt;br /&gt; &lt;br /&gt;In production environment I use SARG – the Squid Analysis Report Generator.  &lt;br /&gt;SARG helps you to analysis squid-log information using a browser where you can &lt;br /&gt;categorize information.  Top of that it is free. &lt;br /&gt; &lt;br /&gt;First of all, download the software.  I have downloaded it, sarg-2.2.2.tar.gz, from &lt;br /&gt;http://sarg.sourceforge.net/sarg.php.   &lt;br /&gt; &lt;br /&gt;Go to the directory where you have downloaded the software and extract it using &lt;br /&gt;the following command. &lt;br /&gt;tar xzvf sarg-2.2.2.tar.gz &lt;br /&gt; &lt;br /&gt;The command will extract the file in sarg-2.2.2 directory.  Change your working &lt;br /&gt;directory there – execute  cd sarg-2.2.2 &lt;br /&gt;./configure –-enable-htmldir=/var/www/html/report &lt;br /&gt;It is time to compile and install the software.  Execute the following commands –  &lt;br /&gt;make &amp;&amp; make install &lt;br /&gt; &lt;br /&gt;By default the sarg binary directory is /usr/bin, where the sarg configuration file &lt;br /&gt;is saved in /usr/local/sarg directory.  The name of the configuration file is &lt;br /&gt;sarg.conf. &lt;br /&gt; &lt;br /&gt;Now you have to modify /usr/local/sarg/sarg.conf so that it will find the &lt;br /&gt;access.log file, generated by squid, and generate a report by creating necessary &lt;br /&gt;files in a directory. &lt;br /&gt; &lt;br /&gt;In my case, I define minimum parameters like follows –  &lt;br /&gt;access_log /var/log/squid/access.log &lt;br /&gt;output_dir /var/www/html/squid/squid-reports &lt;br /&gt; &lt;br /&gt;You will find the access_log and output_dir parameters in sarg.conf file.  Remove &lt;br /&gt;the # and make necessary changes.  In my case the squid directory is created in &lt;br /&gt;/var/www/html directory.  You do not need to create squid-report directory, rather &lt;br /&gt;the sarg software will create it.  You have to make it sure whether squid has &lt;br /&gt;enough permission to create file there in /var/www/html/squid directory.  &lt;br /&gt; &lt;br /&gt;Now, generate the report that will be used by “sarg” using the following command &lt;br /&gt;–  &lt;br /&gt;sarg –f /usr/local/sarg/sarg.conf &lt;br /&gt; &lt;br /&gt;Now, configure Apache to access this report from your browser.  What I usually do &lt;br /&gt;is, I put the following Alias directives in my /etc/httpd/conf/httpd.conf file –  &lt;br /&gt; &lt;br /&gt;Alias /report “/var/www/html/squid/squid-reports/” &lt;br /&gt;&lt;Directory “/var/www/html/squid/squid-reports/”&gt; &lt;br /&gt;Options Indexes Includes &lt;br /&gt;&lt;/Directory&gt; &lt;br /&gt; &lt;br /&gt;Restart your apache web server.  From your web browser see the fascinating &lt;br /&gt;report using – http://squid_server’s_ip_address/report &lt;br /&gt;&lt;br /&gt;Here I am putting some screen shots –  &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mz9ZgjwKynY/SjXOevGnd8I/AAAAAAAAAC0/XkcLhheIKG8/s1600-h/file1.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 210px;" src="http://1.bp.blogspot.com/_mz9ZgjwKynY/SjXOevGnd8I/AAAAAAAAAC0/XkcLhheIKG8/s320/file1.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5347407160007948226" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mz9ZgjwKynY/SjXOznAe6BI/AAAAAAAAAC8/LOd8avvJ258/s1600-h/File2.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 251px;" src="http://4.bp.blogspot.com/_mz9ZgjwKynY/SjXOznAe6BI/AAAAAAAAAC8/LOd8avvJ258/s320/File2.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5347407518611990546" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mz9ZgjwKynY/SjXPFdu6wWI/AAAAAAAAADE/hcqeCTtSF2I/s1600-h/file3.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 302px;" src="http://3.bp.blogspot.com/_mz9ZgjwKynY/SjXPFdu6wWI/AAAAAAAAADE/hcqeCTtSF2I/s320/file3.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5347407825360044386" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;Thing is that whenever you run sarg –f /usr/local/sarg/sarg.conf, sarg-report &lt;br /&gt;will be created.  We can submit a cron job, so that the system will execute it &lt;br /&gt;automatically.  In my network, I put the following line after executing crontab –e, &lt;br /&gt; &lt;br /&gt;0 * * * * /usr/bin/sarg –f /usr/local/sarg/sarg.conf &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Setting customized message &lt;br /&gt; &lt;br /&gt;Create an html file with customized message and save it to /etc/squid/error &lt;br /&gt;directory. &lt;br /&gt; &lt;br /&gt;Now put the following directives in /etc/squid/httpd.conf –  &lt;br /&gt; &lt;br /&gt;acl blacklist dstdomain “/var/lib/squidguard/BL/blacklist” &lt;br /&gt;http_access deny blacklist &lt;br /&gt;deny_info blocked.htm blacklist &lt;br /&gt;&lt;br /&gt;Restart  squid  proxy  server  and  try  to  access  any  restricted  site,  as  per &lt;br /&gt;/var/lib/squidguard/BL/blacklist, from your workstation. &lt;br /&gt; &lt;br /&gt;See the result in my case –  &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mz9ZgjwKynY/SjXPQxEF0cI/AAAAAAAAADM/AWOTM7_KOQI/s1600-h/file4.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 188px;" src="http://4.bp.blogspot.com/_mz9ZgjwKynY/SjXPQxEF0cI/AAAAAAAAADM/AWOTM7_KOQI/s320/file4.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5347408019527684546" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-737736922814517364?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/737736922814517364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/06/squid-proxy-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/737736922814517364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/737736922814517364'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/06/squid-proxy-server.html' title='Squid Proxy Server'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_mz9ZgjwKynY/SjXOevGnd8I/AAAAAAAAAC0/XkcLhheIKG8/s72-c/file1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-8218107814294808117</id><published>2009-06-08T00:16:00.000-07:00</published><updated>2009-06-08T00:22:17.372-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='guide to linux'/><category scheme='http://www.blogger.com/atom/ns#' term='file server in linux'/><category scheme='http://www.blogger.com/atom/ns#' term='File server'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='file'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='samba'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><title type='text'>SAMBA FILE SERVER</title><content type='html'>SAMBA FILE SERVER&lt;br /&gt;SAMBA  is  a  software  package  that  lets  you  share  file  system  with  computer  running&lt;br /&gt;Session Message Black (SMB) Protocol.&lt;br /&gt;If we have all RedHat Linux or UNIX systems in our network, using NFS is the best choice.&lt;br /&gt;If we  have  windows  clients,  with  no  NFS installed  to  access  RedHat  Linux  directories  and&lt;br /&gt;files, configuring SAMBA is probably the best choice.&lt;br /&gt;The main configuration-file for SAMBA is /etc/samba/smb.conf.&lt;br /&gt;We can edit this file or can use swat program to configure SAMBA.&lt;br /&gt;Configuring the basic SAMBA server is a three steps procedure – &lt;br /&gt;1  Edit the smb.conf file&lt;br /&gt;2  Add samba users&lt;br /&gt;3  Start samba service&lt;br /&gt;&lt;br /&gt;1.&lt;br /&gt;The minimum settings in /etc/samba/smb.conf file are as follows –&lt;br /&gt;&lt;br /&gt;[global]&lt;br /&gt;workgroup = WORKGROUP  (It  will  always  better  to  have  same  workgroup  name  with  the&lt;br /&gt;respective window client – here, WORKGROUP)&lt;br /&gt;&lt;br /&gt;netbios name = LINUX    (When  windows  user  browse  the  network,  the  linux&lt;br /&gt;system will  be  displayed  as  LINUX.    If  we have  an  WINS  server  in  our  network,  we must&lt;br /&gt;manually add the host name and IP address of our LINUX SAMBA SERVER)&lt;br /&gt;&lt;br /&gt;hosts allow = 192.168.100.    (The  users  from  192.168.100.  network  can  access&lt;br /&gt;the SAMBA Server)&lt;br /&gt;&lt;br /&gt;security = user&lt;br /&gt;encrypt passwords = yes&lt;br /&gt;smb passwd file = /etc/samba/smbpasswd&lt;br /&gt;(Established  user  level  security,  users  need  to  be authenticated  using  samba  passwords,&lt;br /&gt;stored in / etc/samba/smbpasswd file)&lt;br /&gt;#[Share Defination Section]&lt;br /&gt;[home]&lt;br /&gt;browseable = yes&lt;br /&gt;writable = yes&lt;br /&gt;valid user = %S&lt;br /&gt;(Users can access their respective home directory)&lt;br /&gt;&lt;br /&gt;[accounting]&lt;br /&gt;path = path-to-the-directory-you-want-to-share&lt;br /&gt;(The shared folder will have ‘accounting’ share name)&lt;br /&gt;browseable = yes&lt;br /&gt;writable = yes&lt;br /&gt;valid users = user1,user2,user3,@group1&lt;br /&gt;(user1, user2 and user3 are valid users where group1 is a valid group)&lt;br /&gt;It is always better to modify the /etc/samba/smb.conf file to fulfill our purpose.&lt;br /&gt;&lt;br /&gt;2.&lt;br /&gt;&lt;br /&gt;To add samba users use the following command –&lt;br /&gt;useradd –m username&lt;br /&gt;&lt;br /&gt;To create passwords for samba users use the following command – &lt;br /&gt;smbpasswd –a username&lt;br /&gt;&lt;br /&gt;3.&lt;br /&gt;&lt;br /&gt;To start the samba service immediately – &lt;br /&gt;&lt;br /&gt;/etc/init.d/smb start or  service smb start&lt;br /&gt;&lt;br /&gt;To start the samba service automatically every time the system boots –&lt;br /&gt;&lt;br /&gt;chkconfig smb on&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;An example of /etc/samba/smb.conf may look like this – &lt;br /&gt;&lt;br /&gt;# Samba config file created using SWAT&lt;br /&gt;# from UNKNOWN (192.168.100.2)&lt;br /&gt;# Date: 2004/04/03 08:37:46&lt;br /&gt;&lt;br /&gt;# Global parameters&lt;br /&gt;[global]&lt;br /&gt;netbios name = LINUX&lt;br /&gt;server string = Samba Server&lt;br /&gt;encrypt passwords = Yes&lt;br /&gt;obey pam restrictions = Yes&lt;br /&gt;pam password change = Yes&lt;br /&gt;passwd program = /usr/bin/passwd %u&lt;br /&gt;passwd  chat  =  *New*password*  %n\n  *Retype*new*password*  %n\n&lt;br /&gt;*passwd:*all*authentication*tokens*updated*successfully*&lt;br /&gt;unix password sync = Yes&lt;br /&gt;log file = /var/log/samba/%m.log&lt;br /&gt;max log size = 0&lt;br /&gt;socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192&lt;br /&gt;dns proxy = No&lt;br /&gt;hosts allow = 192.168.100.&lt;br /&gt;printing = lprng&lt;br /&gt;&lt;br /&gt;[homes]&lt;br /&gt;comment = Home Directories&lt;br /&gt;valid users = %S&lt;br /&gt;read only = No&lt;br /&gt;create mask = 0664&lt;br /&gt;directory mask = 0775&lt;br /&gt;browseable = No&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[winusers]&lt;br /&gt;path=/home/winusers&lt;br /&gt;browseable = yes&lt;br /&gt;writable = yes&lt;br /&gt;valid users = user1,@wingroup&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-8218107814294808117?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/8218107814294808117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/06/samba-file-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/8218107814294808117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/8218107814294808117'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/06/samba-file-server.html' title='SAMBA FILE SERVER'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-463411436796847837</id><published>2009-05-23T02:26:00.000-07:00</published><updated>2009-05-23T02:35:20.191-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pocket linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux installation guide'/><category scheme='http://www.blogger.com/atom/ns#' term='guide to linux'/><category scheme='http://www.blogger.com/atom/ns#' term='red hat linux guide'/><category scheme='http://www.blogger.com/atom/ns#' term='linux config'/><category scheme='http://www.blogger.com/atom/ns#' term='NFS'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='mail server'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='NFS File server'/><category scheme='http://www.blogger.com/atom/ns#' term='linux administrator guide'/><category scheme='http://www.blogger.com/atom/ns#' term='book'/><title type='text'>NFS FILE SERVER</title><content type='html'>By default the RedHat linux has built in Kernel support for NFS.&lt;br /&gt;The Filesystem to share are defined in /etc/exports file.&lt;br /&gt;In  our  lab  session,  we  will  configure  our  web  server  so  that  users  can  access  their respective  home  directory  and  will  have  read- only  access  to  /all  directory.    We  must remind whatever  share  permission we specify  in the /etc/exports  file,  the  most  restrictive settings will activated.  The IP address of our NFS server is 192.168.100.2.&lt;br /&gt;First of all, edit the /etc/exports file by inserting the following lines&lt;br /&gt;/all    *(ro)&lt;br /&gt;/home   *(rw)&lt;br /&gt;Export the share using the following command –&lt;br /&gt;exportfs –a –v&lt;br /&gt;Restart the service –&lt;br /&gt;service nfs restart&lt;br /&gt;service nfslock restart&lt;br /&gt;&lt;br /&gt;Check which folders are NFS shared –&lt;br /&gt;exportfs&lt;br /&gt;Go to any client computer, make a directory using mkdir command say /all&lt;br /&gt;mkdir /all&lt;br /&gt;Assign necessary permission, here we will set – chmod 705 –R /all&lt;br /&gt;Mount the NFS shared directory to your client’s computer&lt;br /&gt;mount 192.168.100.2:/all /all&lt;br /&gt;At this point, users from your client computer will access /all directory in your NFS server.&lt;br /&gt;Yes, it is read-only access.&lt;br /&gt;Now, you  have  to configure  your  network such a way,  so that, whenever a user logs in to any  computer, he  will  get  the  same  file  system  and  hierarchy  in  his/her  home  directory.&lt;br /&gt;In  fact,  whenever  a  user  saves  files  to  his/her  home  directory,  it  will  be  saved  to  NFS Server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-463411436796847837?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/463411436796847837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/05/nfs-file-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/463411436796847837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/463411436796847837'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/05/nfs-file-server.html' title='NFS FILE SERVER'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-5348965941582495672</id><published>2009-05-13T23:30:00.000-07:00</published><updated>2009-05-13T23:52:05.680-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='boot loader'/><category scheme='http://www.blogger.com/atom/ns#' term='grub'/><category scheme='http://www.blogger.com/atom/ns#' term='multiboot'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='anaconda'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='linux boot loader'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='grub.cong'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='chainloader'/><category scheme='http://www.blogger.com/atom/ns#' term='boot'/><title type='text'>Working with Boot Loader</title><content type='html'>Let us know, how we can configure our boot loader.In linux the file is&lt;br /&gt;/boot/grub/grub.conf.  You will find a soft link of this file in /etc directory.&lt;br /&gt;The boot loader file specifies the computer where the system files exist in our system so that the computer can boot perfectly.  The grub.conf understands Microsoft’s boot loader file also.   If we have multiboot system, we can configure the linux boot loader file, /boot/grub/grub.conf to set the default operating system and how long the computer can wait before booting the system with the default operating system.&lt;br /&gt;Let us have a look at the screen shot below for /boot/grub/grub.conf file.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mz9ZgjwKynY/Sgu_b59y0CI/AAAAAAAAACs/fUTJn6Qukgo/s1600-h/boot.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 213px;" src="http://3.bp.blogspot.com/_mz9ZgjwKynY/Sgu_b59y0CI/AAAAAAAAACs/fUTJn6Qukgo/s320/boot.JPG" alt="" id="BLOGGER_PHOTO_ID_5335568669687861282" border="0" /&gt;&lt;/a&gt;According to the above example, there is only one operating system loaded – the Red Hat Enterprise Linux, see the title section here.  You are open to change the contents of the title .  The default=0 tells the system to boot using the OS referred by the first title. The  timeout=5 defines that the system will wait for 5 seconds before booting with the default Operating system.  The splashimage is nothing but the image you see in the boot loader screen.  Here, considering you have a dual booting system, you may choose which Operating System will be loaded.  The hiddenmenu does what its name implies – it hides the menu.  The root (hd0,0) indicates where the system will find the root of the booting related files.  In Red Hat linux, the name of the directory is /boot.  The hd0,0 section could be different in accordance with the partition information in your hard disk. Here hd0,0 indicates the first partition in the first hard disk. The next two lines defines the kernel and initrd image file name.Let us check another grub.conf file below –&lt;br /&gt;# grub.conf generated by anaconda&lt;br /&gt;#&lt;br /&gt;#boot=/dev/hda&lt;br /&gt;default=0&lt;br /&gt;timeout=10&lt;br /&gt;splashimage=(hd0,1)/grub/splash.xpm.gz&lt;br /&gt;title Red Hat Linux (2.4.18-14)&lt;br /&gt;root (hd0,1)&lt;br /&gt;kernel /vmlinuz-2.4.18-14 ro root=LABEL=/&lt;br /&gt;initrd /initrd-2.4.18-14.img&lt;br /&gt;title DOS&lt;br /&gt;rootnoverify (hd0,0)&lt;br /&gt;chainloader +1&lt;br /&gt;# end of file&lt;br /&gt;According to the above file the computer’s default operating system is Red Hat Linux.  You&lt;br /&gt;know, why !!.  If you want to set DOS as the default, what we can do is just change the&lt;br /&gt;value for ‘default’.  Replace 0 with 1.&lt;br /&gt;At this point if you reboot the computer you will see at the top Red Hat Linux exists though the DOS has been selected.  If you interchange the title directives, you will see at the top DOS exists and it has also been selected.&lt;br /&gt;Here is the modified /boot/grub/grub.conf file....&lt;br /&gt;# grub.conf generated by anaconda&lt;br /&gt;#&lt;br /&gt;#boot=/dev/hda&lt;br /&gt;default=0&lt;br /&gt;timeout=20&lt;br /&gt;splashimage=(hd0,1)/grub/splash.xpm.gz&lt;br /&gt;title DOS&lt;br /&gt;rootnoverify (hd0,0)&lt;br /&gt;chainloader +1&lt;br /&gt;title Red Hat Linux (2.4.18-14)&lt;br /&gt;root (hd0,1)&lt;br /&gt;kernel /vmlinuz-2.4.18-14 ro root=LABEL=/&lt;br /&gt;initrd /initrd-2.4.18-14.img&lt;br /&gt;# end of file&lt;br /&gt;Please note that, there is no need to run any command to make the change effective.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-5348965941582495672?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/5348965941582495672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/05/working-with-boot-loader.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/5348965941582495672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/5348965941582495672'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/05/working-with-boot-loader.html' title='Working with Boot Loader'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_mz9ZgjwKynY/Sgu_b59y0CI/AAAAAAAAACs/fUTJn6Qukgo/s72-c/boot.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-8037305161965509358</id><published>2009-05-04T22:43:00.000-07:00</published><updated>2009-05-04T22:49:48.183-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='FTP'/><category scheme='http://www.blogger.com/atom/ns#' term='anonymous'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='vsftp'/><category scheme='http://www.blogger.com/atom/ns#' term='user'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>FTP SERVER</title><content type='html'>Setting up FTP server is a standard method for sharing files over the internet.&lt;br /&gt;Two FTP server packages  are  provided with Linux RedHat  8 distribution,  - the Washington&lt;br /&gt;University FTPD (WUFTPD) and the Very Secure FTPD (VSFTPD). &lt;br /&gt;Among the two, VSFTPD is considered to be better for high-volume FTP servers. &lt;br /&gt;Access to  the  FTP  server  relies  on  a login process in  the  particular  FTP  server.   Users with&lt;br /&gt;their accounts on the system most likely have access to the greater part of the file system&lt;br /&gt;after been authenticated comparing to ‘Anonymous’ user. &lt;br /&gt;We will only concentrate to the VSFTPD configuration.&lt;br /&gt;Setting up VSFTPD:&lt;br /&gt;Start the VSFTPD FTP Server: Redhat 8 &lt;br /&gt;First  of all  check whether  WUFTPD  is  running  or  not.    To  stop  WUFTPD  you  must modify&lt;br /&gt;the /etc/xinetd.d/wu-ftpd file.  Replace the seeting &lt;br /&gt;disable = no with disable = yes.   &lt;br /&gt;Edit the /etc/xinetd.d/vsftpd file by replacing the setting &lt;br /&gt;disable = yes with disable = no &lt;br /&gt;Restart the xinetd server by running the following command –  &lt;br /&gt;service xinetd restart  or&lt;br /&gt;/etc/init.d/xinetd restart &lt;br /&gt;At  this  point,  by  default,  anonymous  users  are  given  ‘read-only’  access  to  files  and&lt;br /&gt;subdirectories in /var/ftp. &lt;br /&gt;Authenticated local users get access to their respective home directories.&lt;br /&gt;With  RHEL  3  or  RHEL  4  starting  ftp  service  is  really  simple.    All  you  have  to  do  is&lt;br /&gt;exetcute the following command -    service vsftpd restart .&lt;br /&gt;To Start the ftp service in booting time, execute chkconfig vsftpd on&lt;br /&gt;The  vsftp ftp  service  configuration file is  vsftpd.conf   In case of  Redhat  8,  you will find&lt;br /&gt;this file in /etc/ folder.  In RHEL 3/4 you will find the file in /etc/vsftpd/ directory. &lt;br /&gt;The vsftpd.conf file: &lt;br /&gt;Configuration for the anonymous users: &lt;br /&gt;By  default,  the  anonymous  users  have  read-only  access  to  /var/ftp  directory.    The&lt;br /&gt;default location  for anonymous users can be changed  by keeping the  following  directive in&lt;br /&gt;the vsftpd.conf file –  anon_root=/var/new .&lt;br /&gt;Please  be  noted,  whenever  you  modify  the  vsftpd.conf  file,  you  need  to  restart  the  ftp service. &lt;br /&gt;The  anonymous_enable=YES  option  in vsftpd.conf file  lets  the anonymous  users to  access&lt;br /&gt;the /var/ftp directory.  It is the default setting.&lt;br /&gt;If you want to disable anonymous access modify the &lt;br /&gt;anonymous_enable=YES to anonymous_enable=NO &lt;br /&gt;We can allow anonymous users to upload files using –&lt;br /&gt;anon_upload_enable=YES  option,  provided  that  the  directory  or  directories,  where  the&lt;br /&gt;filess  will  be  uploaded,  are  exist  with  write  permission.    For  the  security  reason  it  is&lt;br /&gt;always  better  to  create  a  directory  in  /var/ftp  with  777  permission  –  where  the&lt;br /&gt;anonymous users will upload their files. &lt;br /&gt;Create a directory, say, public &lt;br /&gt;mkdir /var/ftp/public&lt;br /&gt;Set the permission &lt;br /&gt;chmod 777 –R /var/ftp/public &lt;br /&gt;We  must  keep  in  mind,  ownership  will  be  granted  to  ftp  user  for  the  files  uploaded  by&lt;br /&gt;anonymous users.  So, it is understandable, anonymous users get read-only access to the uploaded files. &lt;br /&gt;If  you  want  to  allow  the  anonymous  users  to  rename  or  delete  the  files  in&lt;br /&gt;/var/ftp/public directory, place the following option in the vsftpd.conf file – &lt;br /&gt;anon_other_write_enable=YES&lt;br /&gt;If  you  want  to  allow  the  anonymous  users  to  create  their  own  directory  in  the&lt;br /&gt;/var/ftp/public directory, place the following option in the vsftpd.conf file – &lt;br /&gt;anon_mkdir_write_enable=YES &lt;br /&gt;If  you  want  to  configure  the  FTP  server  so  that  a  particular  user,  say  Linuxuser,  will  be&lt;br /&gt;granted  the  ownership of  the  files  uploaded by the  anonymous  users,  place the  following&lt;br /&gt;options in the vsftpd.conf file – &lt;br /&gt;chown_uploads=YES&lt;br /&gt;chown_username=Linuxuser&lt;br /&gt;Do not forget to restart ftp service – &lt;br /&gt;service vsftpd restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-8037305161965509358?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/8037305161965509358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/05/ftp-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/8037305161965509358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/8037305161965509358'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/05/ftp-server.html' title='FTP SERVER'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-4585558843835467238</id><published>2009-05-04T04:41:00.000-07:00</published><updated>2009-05-04T04:47:24.967-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Proxy server'/><category scheme='http://www.blogger.com/atom/ns#' term='file system'/><category scheme='http://www.blogger.com/atom/ns#' term='restore'/><category scheme='http://www.blogger.com/atom/ns#' term='dump'/><category scheme='http://www.blogger.com/atom/ns#' term='sendmail'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><category scheme='http://www.blogger.com/atom/ns#' term='mail server'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='erase'/><category scheme='http://www.blogger.com/atom/ns#' term='drive'/><title type='text'>DUMP and RESTORE</title><content type='html'>&lt;span style="font-weight: bold; font-family: courier new;"&gt;DUMP and RESTORE:&lt;/span&gt;&lt;br /&gt;Dump and Restore is used to take backup or restore ‘only ext2 or ext3’ file system.  This&lt;br /&gt;particular dump and restore utility can be u sed to take full or incremental backup.&lt;br /&gt;To  take  a  full  backup  of  the  /home  filesystem  onto  the  tape  device  nst1  we  can  use  the&lt;br /&gt;following command –  &lt;br /&gt;dump -0u-f /dev/nst0 /home&lt;br /&gt;Here we specify 0 to define full backup and u (dump -0u-f /dev/nst0 /home)&lt;br /&gt;is specified so  that  dump  information  will  be  recorded for  future  use  of  dump.    Generally&lt;br /&gt;administrators  love  to  take  full  backup  on  weekly  or  monthly  basis  while  regularly  take&lt;br /&gt;incremental backup.  For incremental backup, the command may be as follows – &lt;br /&gt;dump -4u-f /dev/nst0 /home&lt;br /&gt;Please note, we use 4 instead of 0 to define incremental backup.&lt;br /&gt;To restore  data  backed  up with  dump  command  we  use  restore  command.   For example,&lt;br /&gt;suppose  we  had  /dev/hda9  mounted  on  /home.    On  a  clean  device  mounted  on  /home,&lt;br /&gt;first  of  all  we  should  change  the  working  directory  there  and  then  use  the  following&lt;br /&gt;command –     restore –rf /dev/nst0&lt;br /&gt;Whenever  we  use  dump command  using  –u  option,  it  will  update  /etc/dumpdates,  which&lt;br /&gt;actually contents the dump-information.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;SOME BACKUP RELATED COMMANDS&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;To Erase Dat Drive&lt;br /&gt;mt –f /dev/st0 erase&lt;br /&gt;To rewind the Dat Drive&lt;br /&gt;mt –f /dev/st0 rewind&lt;br /&gt;To backup the www Server&lt;br /&gt;find /etc/httpd/conf /usr/local –print | cpio –ovcB &gt; /dev/st0&lt;br /&gt;To backup up Sendmail Mail Server&lt;br /&gt;find /var /home /etc/mail –print | cpio –ovcB &gt; /dev/st0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-4585558843835467238?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/4585558843835467238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/05/dump-and-restore.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4585558843835467238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4585558843835467238'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/05/dump-and-restore.html' title='DUMP and RESTORE'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-1288158191522526758</id><published>2009-05-02T02:31:00.000-07:00</published><updated>2009-05-02T02:34:20.088-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='TASKS'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='job'/><category scheme='http://www.blogger.com/atom/ns#' term='at command'/><category scheme='http://www.blogger.com/atom/ns#' term='corn'/><category scheme='http://www.blogger.com/atom/ns#' term='SCHEDULING'/><title type='text'>SCHEDULING TASKS:</title><content type='html'>Using the ‘at’ utility. The at facilty is designed to run jobs at specific times. Submitted jobs are spooled to /var/spool/at directory.&lt;br /&gt;The daemon name is atd. Access Control Files:&lt;br /&gt;/etc/at.allow  -  Contains list of users who are granted to submit ‘at’ jobs.&lt;br /&gt;/etc/at.deny  -  Contains  list  of  users  who  have  ‘No’  permission  to  submit  ‘at’ jobs.&lt;br /&gt;Let us see how can we use the ‘at’ facility.   For  Example, we  need to copy the contents  of /home directory in compressed form to /tmp/backup directory.&lt;br /&gt;To do this, we can run the following commands –&lt;br /&gt;at 12:00&lt;br /&gt;cd /home&lt;br /&gt;mkdir /tmp/home&lt;br /&gt;mkdir /tmp/backup&lt;br /&gt;cp –Rf * /tmp/home&lt;br /&gt;cd /tmp/home&lt;br /&gt;tar czvf backup.tar.gz *&lt;br /&gt;cp backup.tar.gz /tmp/backup&lt;br /&gt;&lt;ctrol&gt;+d&lt;br /&gt;We can also run a single command  to make  this happen  – this command will  do the  same task above.&lt;br /&gt;echo  “cd  /home;  mkdir  /tmp/home;  mkdir  /tmp/backup;  cp  –Rf  *  /tmp/home;  cd&lt;br /&gt;/tmp/home;  tar  czvf  backup.tar.gz  *;  cp  backup.tar.gz  /tmp/backup”  |  at 12:00&lt;br /&gt;Example for specifying times for at jobs:&lt;br /&gt;at now        The job will run immediately&lt;br /&gt;at now + 2 minutes    The job will run 2 minutes from the current time.&lt;br /&gt;at next hour    The job will run after 1 hour from the current time.&lt;br /&gt;at next month    The job will run after 1 month from the current time.&lt;br /&gt;at next year    The job will run after 1 year from the current time.&lt;br /&gt;at next fri    The job will run on next Friday&lt;br /&gt;at 16:00 today    The job will run today at 16 hours.&lt;br /&gt;at 16:00 tomorrow    The job will run tomorrow at 16 hours&lt;br /&gt;at 16:00 May 31 2004  The job will run on May 31s t , 2004 at 16 hours&lt;br /&gt;I think, the most efficient way to use the at facility with –f option.&lt;br /&gt;•  f option can be used to use contents of a file to executed as ‘at’ command.&lt;br /&gt;For Example, if we use the following command – &lt;br /&gt;at –f /home/newback now + 10 hours&lt;br /&gt;The  system  will  see  the  contents  of  the  /home/newback  file  and  use  them  as  ‘at’ command&lt;/ctrol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-1288158191522526758?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/1288158191522526758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/05/scheduling-tasks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/1288158191522526758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/1288158191522526758'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/05/scheduling-tasks.html' title='SCHEDULING TASKS:'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-4765743879076181995</id><published>2009-04-29T23:34:00.000-07:00</published><updated>2009-04-30T00:08:56.927-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gz'/><category scheme='http://www.blogger.com/atom/ns#' term='tar'/><category scheme='http://www.blogger.com/atom/ns#' term='gunzip'/><category scheme='http://www.blogger.com/atom/ns#' term='file'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='compress'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='zip'/><category scheme='http://www.blogger.com/atom/ns#' term='decompress'/><title type='text'>COMPRESSION UTILITY</title><content type='html'>To compress all files in the current directory –&lt;br /&gt;tar czvf myfile.tar.gz *&lt;br /&gt;To de-compress or extract&lt;br /&gt;tar xzvf myfile.tar.gz&lt;br /&gt;To compress a file with zip utility -&lt;br /&gt;gzip –v file_name (File_name will be zipped with .gz extension)&lt;br /&gt;gunzip file_name.gz  (Decompresses a zipped file)&lt;br /&gt;gunzip –c file_name.gz (Decompresses a zipped file while keeping the original .gz file)&lt;br /&gt;bzip2  –v  file_name  (Newer  compression  utility.    Creates  a  zipped  file  with  bz2 extension)&lt;br /&gt;bunzip2 file_name.bz2 (Decompress .bz2 file)&lt;br /&gt;tar cjvf myfile.tar.bz2 * (All files will be zipped with bz2 extension)&lt;br /&gt;Use the following command a have low level formatted floppy disk –&lt;br /&gt;fdformat /dev/fd0 H1440&lt;br /&gt;We  can  save  a  zipped  file  in  floppy  disk  (with  low  level  format)  without  mounting  the&lt;br /&gt;floppy disk using this following command –&lt;br /&gt;tar czvf /dev/fd0 &lt;directory_or_filename&gt;&lt;/directory_or_filename&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-4765743879076181995?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/4765743879076181995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/04/compression-utility.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4765743879076181995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4765743879076181995'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/04/compression-utility.html' title='COMPRESSION UTILITY'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-4891253890441573107</id><published>2009-04-25T01:10:00.000-07:00</published><updated>2009-04-25T01:19:57.797-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Proxy server'/><category scheme='http://www.blogger.com/atom/ns#' term='NAT'/><category scheme='http://www.blogger.com/atom/ns#' term='Router'/><category scheme='http://www.blogger.com/atom/ns#' term='firewall'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='IP Forwarding'/><title type='text'>IP Forwarding</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;IP  Forwarding is  a  feature of  the LINUX  kernel, which  can  be  turned  on  or off,&lt;br /&gt;if  needed, without rebooting the computer.  It is very much needed, especially&lt;br /&gt;when a LINUX system is used as a Firewall/Router or  a Proxy Server for&lt;br /&gt;a network and is doing Network Address Translation  (NAT)  to  masquerade&lt;br /&gt;a  private  subnet  behind  a  single  public  IP  address.    In this regard,&lt;br /&gt;what Administrators do is –&lt;br /&gt;Install  two network cards  (one will  be  assigned  with the  real or public IP&lt;br /&gt;address and the second will be assign ed with  the  private IP address.)&lt;br /&gt;To turn IP Forwarding on we can  run the following command –&lt;br /&gt;echo 1 &gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;The  above  command  will  enable  IP  forwarding  for  the  current  session,&lt;br /&gt;as  the  default setting is “disable”. To make it permanent, modify /etc/sysctl.conf as follows -&lt;br /&gt;net.ipv4.ip_forward = 1&lt;br /&gt;By  default  the  value  0  is  set,  means  the  NATing  is  disabled.    However,  after  modifying&lt;br /&gt;/etc/sysctl.conf,  reboot  your  machine  to  make  it  permanent.    During  the  time  of&lt;br /&gt;booting  the  computer  will  check  the  /etc/sysctl.conf  and  read  the  IP  forwarding  related&lt;br /&gt;parameters net.ipv4.ip_forward = x and load it to /proc/sys/net/ipv4/ip_forward file. &lt;br /&gt;However,  by  executing  -  echo  1  &gt;  /proc/sys/net/ipv4/ip_forward  you  can  enable  IP&lt;br /&gt;forwarding instantly.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-4891253890441573107?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/4891253890441573107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/04/ip-forwarding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4891253890441573107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4891253890441573107'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/04/ip-forwarding.html' title='IP Forwarding'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-5560609710244296697</id><published>2009-04-23T05:11:00.000-07:00</published><updated>2009-04-23T05:17:19.602-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='service'/><category scheme='http://www.blogger.com/atom/ns#' term='DNS'/><category scheme='http://www.blogger.com/atom/ns#' term='Network Interface Card'/><category scheme='http://www.blogger.com/atom/ns#' term='Lan Card'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='IP route'/><category scheme='http://www.blogger.com/atom/ns#' term='USERCTL'/><title type='text'>Configure Network Interface Card</title><content type='html'>&lt;span style="font-family: arial;"&gt;To view the current configuration of the Network Interface Card run :  ifconfig&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;We can  use ifconfig command to temporarily changes parameters  of  the  NIC.   The  syntax is –&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;ifconfig eth0 ip_address net_mask   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Example:  ifconfig eth0 192.168.100.1 255.255.255.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;We  must  keep  in  mind  that  the  ifconfig  command  is  used  to  assign  the  IP  address&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;temporarily.  To change the IP address permanently we must use netconfig command.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Using  netconfig  command  we  can  assign  IP  address,  subnet  mask  and  network  related&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;parameters,  like  –  Gateway  address,  DNS  server  address,  Host  name  of  this  Server,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Domain name etc.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;To make the  configuration  effected,  we  can  restart the  computer.    However,  we  can  also&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;restart  the  network  service  to  apply  the  settings.    To  do  this  we  can  use  the  following&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;command –   "service network restart "&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;We  must  remind,  if  we  use  netconfig  it  will  configure  the  eth0.    To  configure  eth1  we&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;should use the following command –  " netconfig –d eth1 "&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;We can  bind multiple IP address  to a  single Ethernet card.   To do  this we must  configure&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;sub-interface  for  that  particular  Network  Interface  Card.    To  create  sub-interface  0  for&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;eth0, we should use the following command –  "netconfig –d eth0:0 "&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;To create sub-interface 1 for eth0, we should use command - "netconfig –d eth0:1 ". After  setting  values &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;to  the  sub-interface(s),  don’t  forget  to  restart  the  network  service (service network restart).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;If we want to configure network card from GUI, we will run "system-config-network " in a Terminal.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Please be noted, the DNS server related configuration goes to /etc/resolv.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;It  is  also  possible  to  bind  a  single  or  multiple  range  of  IP  addresses  to  a  single  network&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;interface  card.    To  do  this,  go  to  / etc/sysconfig/network-scripts  folder  and  create  a  file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;named with ifcfg-eth0-range0.    I am assuming we are binding  a range of IP  addresses to eth0. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;The contents of this file will be – &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;IPADDR_START=192.168.0.50&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;IPADDR_END=192.168.0.100&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;CLONENUM_START=0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Do not forget to start the network service using service network restart command.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;You can bind maximu m 256 IP addresses to a single network interface card.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;To bring up/down an interface, say eth0, we use the following commands – &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;      ifup eth0  (To bring up)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;      ifdown eth0  (To bring down)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;To  configure  eth0  to  obtain  IP  address  from  dhcp  server,  we  can  edit  the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0 file as follows –&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;DEVICE=eth0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;BOOTPROTO=dhcp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;ONBOOT=yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Yes, we can also use the netconfig command in this respect.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;To allow a non-privileged user to  control network interface  card,  we  can add the following&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;line in /etc/sysconfig/network-scripts/ifcfg-eth0 file –&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;USERCTL=yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Define IP route:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;We can set static  route  per-interface  basis.   For exammple, if  we  want  to add a  route on&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;eth0, we must use the following file –  /etc/sysconfig/network- scripts/route-eth0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;The syntax is – ip-address/CIDR via gateway-address&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Example -    192.168.1.0/24 via 192.168.100.254&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;If  we  use  redhat-config-network  command,  the  command  uses  a  different  file.    It  is&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;/etc/sysconfig/networking/devices/eth0.route.    Here,  the  syntax  used  is  different. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;It will be like this –&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;ADDRESS0=192.168.1.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;NETMASK0=255.255.255.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;GATEWAY0=192.168.100.254&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Please  note,  I  define  ADDRESS0,NETMASK0  and  GATEWAY0.    Because,  they  define  the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;first  static  route.    For  the  second  static  you  route,  you  must  use  ADDRESS1,NETMASK1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;and GATEWAY1 with the same syntax.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;OK?&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-5560609710244296697?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/5560609710244296697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/04/configure-network-interface-card.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/5560609710244296697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/5560609710244296697'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/04/configure-network-interface-card.html' title='Configure Network Interface Card'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-1811297864193061334</id><published>2009-04-20T22:52:00.000-07:00</published><updated>2009-04-20T22:54:54.878-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='editor.command'/><category scheme='http://www.blogger.com/atom/ns#' term='vi'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Vi editor</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Use   vi   editor &lt;/span&gt;&lt;br /&gt;There  are  so  many  editors  available  with  RedHat  Linux  distribution.You  must  know  one&lt;br /&gt;of them.    We  will  learn and  use  vi editor  in  our classroom.    To  configure  and maintain a&lt;br /&gt;RedHat Linux system we must know the followings –&lt;br /&gt;To create/edit a file with  vi editor we use vi file_name command.&lt;br /&gt;Press ‘I’ or ‘Insert’ button to insert contents to a file.&lt;br /&gt;&lt;esc&gt;:wq       -  Save and Exit&lt;br /&gt;&lt;esc&gt;:w      -  Save&lt;br /&gt;&lt;esc&gt;:q      -  Quit&lt;br /&gt;&lt;esc&gt;:x      -  Save and Exit&lt;br /&gt;&lt;esc&gt;:se nu     -  Sets number of lines&lt;br /&gt;&lt;esc&gt;/text      -  Searches a text&lt;br /&gt;&lt;esc&gt;?text      -  Searches the text above the current position&lt;br /&gt;&lt;esc&gt;yy      -  Yanking (Copy) line&lt;br /&gt;&lt;esc&gt;No.yy     -  Copy lines (Replace No. with the number you want to copy)&lt;br /&gt;&lt;esc&gt;dd      -  Delete line&lt;br /&gt;&lt;esc&gt;p      -  Paste line&lt;br /&gt;&lt;esc&gt;u      -  Undo changes&lt;br /&gt;&lt;esc&gt;G      -  Go to the last line in the file&lt;br /&gt;&lt;esc&gt;1G      -  Go to the first line in the file&lt;br /&gt;&lt;esc&gt;!!command    -  Replace the blank line with the output of the command.&lt;br /&gt;&lt;esc&gt;:1,$s/text/newtext/g  -  Search  and  Replace  –  text  will  be  replaced  by  newtext           throughout the document.&lt;br /&gt;&lt;esc&gt;:8,12s/text/newtext/g  -   Find and Replace – between line 8 and 12&lt;br /&gt;&lt;esc&gt;:.,.+10s/text/newtext/g -  Replace between current line and next 10 lines&lt;br /&gt;&lt;esc&gt;:r file_name   -  Read file_name and place it after the cursor.&lt;br /&gt;&lt;esc&gt;:1,20w   newfile    -  1s t to 20t h line will be saved to newfile&lt;br /&gt;&lt;esc&gt;:10,20w &gt;&gt; newfile1  -  10th to 20t h line will be appended to newfile1&lt;br /&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;/esc&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-1811297864193061334?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/1811297864193061334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/04/vi-editor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/1811297864193061334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/1811297864193061334'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/04/vi-editor.html' title='Vi editor'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-3325645323348188147</id><published>2009-04-08T01:38:00.000-07:00</published><updated>2009-04-16T11:55:27.402-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='command'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>Linux command</title><content type='html'>&lt;span style="font-size:85%;"&gt;Some Important Commands:&lt;br /&gt;Before we start, we must commit not to delete files except those, that are created by us.&lt;br /&gt;Lets go…..&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:85%;" &gt;Log &lt;/span&gt;&lt;span style="font-size:85%;"&gt;in as root&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:130%;"&gt;pwd&lt;/span&gt; is used to display full path name of the current directory.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cd&lt;/span&gt; command changes the current directory to a specified directory. &lt;br /&gt;Example – cd /usr/bin&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;~&lt;/span&gt;  sign  specifies  full  path  for  your  home  directory&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mkdir&lt;/span&gt; is used to  create a directory.   Example  –  mkdir  new  (will  create  directory  in  the  current directory)  mkdir  /home/new (will create directory under /home)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mkdir –p /all/{tom,dic,harry}/{old,new}&lt;/span&gt;&lt;br /&gt;The  above  command will  create  tom, dic and harry directories  in /all and also  creates  old and new directory in each tome, dic and harry directory.&lt;br /&gt;ls is used to display list of files and directory. &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ls  –l&lt;/span&gt;  displays  a  detail  list  of  files  and  directories,  indicating  directory/file, file acess&lt;br /&gt;permission, link ,file, directory, owner, group owner, size in  bytes,creation  date and time&lt;br /&gt;and name of directory/ file.  In the first field, “-“ indicates “file”, “d” indicates directory”.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ll &lt;/span&gt;  will also gives the same result as ls –l.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ls –la&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;ll -a&lt;/span&gt; list all files including the hidden files.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ls –R –l&lt;/span&gt; recursive  listing  of  files, includes contents of the specified/current directory  and all the subdirectories.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ls –r –l&lt;/span&gt; displays files and directory in reverse order.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ls –s –l&lt;/span&gt; list files, sorts by file size.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cp&lt;/span&gt; command is used to copy file.  Example – cp file1 file2 (here file1 is source file and&lt;br /&gt;file2 is the destination).&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cp /etc/* &lt;/span&gt;. (copy all files from the /etc directory into the current position)&lt;br /&gt;cp  –r  file_name  destination_directory  (Copy  file  to  destination  and  preserve&lt;br /&gt;permission, ownership and time stamps)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cp  –r  /etc/*    /home/user1&lt;/span&gt;  copy  all  files  and  directories,  including  subdirectories  in&lt;br /&gt;/home/user1directory. &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;rm  * &lt;/span&gt; delets  all  files  from  the  current  directory.    Here  the  system  will  ask  your&lt;br /&gt;confirmation.  Only files will be deleted.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;rm  –f  *&lt;/span&gt;  deletes  all  files  from  the  current  directory  forcefully.    The  system  will  not  ask your confirmation before deleting files.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;rm –Rf *&lt;/span&gt;  this command removes all files and subdirectories&lt;br /&gt;cat command is used to display contents of a file.  Example – cat file1&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cat  &gt;  file2  &lt;/span&gt;command  allows  you  to  create  file,  named  as  file2,  and  it  gives  you  an interface  to add contents to  this file.   However  after adding  contents  we  can  save the  file using &lt;ctrl&gt;+d command.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cat file1 file2 &gt; file3&lt;/span&gt;:it create  a file, named file3, with  the contents of file1  and  file2&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cat  file1  &gt;  file2&lt;/span&gt;  (here,  the  contents  of  file2  will  be  overwritten  by  the  contents  of file1)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cat file1 &gt;&gt; file2&lt;/span&gt; (here, the contents of file1 will be appended to the contents of file2)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;touch&lt;/span&gt; command can be used to create file/files with no contents.  Example -&lt;br /&gt;touch file_name1 file_name2 file_name3&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;echo&lt;/span&gt; command is used display any string&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;rmdir&lt;/span&gt;  deletes  directory.    Example  rmdir  /home/new.    This  command  will  remove /home/new directory if it is empty.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;rm &lt;/span&gt;deletes file.  Example rm file1&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;date&lt;/span&gt; command displays current date &amp;amp; time&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;clear &lt;/span&gt;will clear the console screen.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;df –h&lt;/span&gt; displays partition(s) and space used in partitions&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;w&lt;/span&gt; OR&lt;span style="font-weight: bold;"&gt; who &lt;/span&gt;is used to view who are logged on to this server&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;useradd&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;adduser&lt;/span&gt; is used to create user object.Example:  useradd user_name&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;passwd&lt;/span&gt;  -   a user can change his password using this command&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;passwd user_name&lt;/span&gt; :If  root  user  wants  to  change  the  password  for  any  user&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Here are some important passwd commands&lt;/span&gt;: -&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;passwd –d user-name&lt;/span&gt; (will empty password for that user)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;passwd –l user-name&lt;/span&gt; (will lock the user account)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;passwd –u user-name&lt;/span&gt; (will unlock the user account &lt;br /&gt;&lt;/ctrl&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-3325645323348188147?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/3325645323348188147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/04/linux-command.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/3325645323348188147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/3325645323348188147'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/04/linux-command.html' title='Linux command'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-4199483765467496305</id><published>2009-04-06T20:56:00.001-07:00</published><updated>2009-04-06T21:01:52.415-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='x-window'/><category scheme='http://www.blogger.com/atom/ns#' term='VGA'/><category scheme='http://www.blogger.com/atom/ns#' term='display problem'/><title type='text'>X-Windows</title><content type='html'>&lt;span style="font-size:85%;"&gt;The X Window System or X or X11 is the foundation for the Graphical User Interface on RedHat Linux. The X Server works with Graphics Hardware (VGA). Any application requires graphic display is an X Client. RedHat provides two desktop environment – GNOME and KDE. The GNOME is the default desktop. To switch between the GNOME and KDE run switchdesk and select your desired desktop. We will come to this point later. By default RedHat Linux has configured with six (6) virtual console and one X console. We can move to any virtual console by typing ctrl+alt+Fx (Where F – Function key and in place of x we can use 1 to 6 to switch from one virtual terminal to another) or we can switch to X console by typing ctrl+alt+F7. We can start the X server by running the following command – startx considering the system has started in run level 3. We will discuss “run level” later. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-4199483765467496305?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/4199483765467496305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/04/x-window-system-or-x-or-x11-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4199483765467496305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4199483765467496305'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/04/x-window-system-or-x-or-x11-is.html' title='X-Windows'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-4190508658495372724</id><published>2009-04-06T20:56:00.000-07:00</published><updated>2009-04-30T00:42:52.533-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='x-window'/><category scheme='http://www.blogger.com/atom/ns#' term='VGA'/><category scheme='http://www.blogger.com/atom/ns#' term='display problem'/><title type='text'>X window</title><content type='html'>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:"MS Gothic"; 	panose-1:2 11 6 9 7 2 5 8 2 4; 	mso-font-alt:"Arial Unicode MS"; 	mso-font-charset:128; 	mso-generic-font-family:modern; 	mso-font-format:other; 	mso-font-pitch:fixed; 	mso-font-signature:1 134676480 16 0 131072 0;} @font-face 	{font-family:"\@MS Gothic"; 	panose-1:0 0 0 0 0 0 0 0 0 0; 	mso-font-charset:128; 	mso-generic-font-family:modern; 	mso-font-format:other; 	mso-font-pitch:fixed; 	mso-font-signature:1 134676480 16 0 131072 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	text-align:justify; 	mso-pagination:none; 	font-size:10.5pt; 	font-family:"MS Gothic"; 	mso-ascii-font-family:"Times New Roman"; 	mso-hansi-font-family:"Times New Roman"; 	mso-bidi-font-family:"MS Gothic"; 	mso-font-kerning:1.0pt;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;The&lt;span style=""&gt;  &lt;/span&gt;X&lt;span style=""&gt;  &lt;/span&gt;Window&lt;span style=""&gt;  &lt;/span&gt;System&lt;span style=""&gt;  &lt;/span&gt;or&lt;span style=""&gt;  &lt;/span&gt;X&lt;span style=""&gt;  &lt;/span&gt;or&lt;span style=""&gt;  &lt;/span&gt;X11&lt;span style=""&gt;  &lt;/span&gt;is&lt;span style=""&gt;  &lt;/span&gt;the&lt;span style=""&gt;  &lt;/span&gt;foundation&lt;span style=""&gt;  &lt;/span&gt;for&lt;span style=""&gt;  &lt;/span&gt;the&lt;span style=""&gt;  &lt;/span&gt;Graphical&lt;span style=""&gt;  &lt;/span&gt;User&lt;span style=""&gt;  &lt;/span&gt;Interface&lt;span style=""&gt;  &lt;/span&gt;on &lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;RedHat&lt;span style=""&gt;  &lt;/span&gt;Linux.&lt;span style=""&gt;    &lt;/span&gt;The&lt;span style=""&gt;  &lt;/span&gt;X&lt;span style=""&gt;  &lt;/span&gt;Server&lt;span style=""&gt;  &lt;/span&gt;works&lt;span style=""&gt;  &lt;/span&gt;with&lt;span style=""&gt;  &lt;/span&gt;Graphics&lt;span style=""&gt;  &lt;/span&gt;Hardware&lt;span style=""&gt;  &lt;/span&gt;(VGA).&lt;span style=""&gt;    &lt;/span&gt;Any&lt;span style=""&gt;  &lt;/span&gt;application &lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;requires graphic display is an X Client. &lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;RedHat provides two desktop environment – GNOME and KDE.&lt;span style=""&gt;  &lt;/span&gt;The GNOME is the default &lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;desktop.&lt;span style=""&gt;    &lt;/span&gt;To&lt;span style=""&gt;  &lt;/span&gt;switch&lt;span style=""&gt;  &lt;/span&gt;between&lt;span style=""&gt;  &lt;/span&gt;the&lt;span style=""&gt;  &lt;/span&gt;GNOME&lt;span style=""&gt;  &lt;/span&gt;and&lt;span style=""&gt;  &lt;/span&gt;KDE&lt;span style=""&gt;  &lt;/span&gt;run&lt;span style=""&gt;  &lt;/span&gt;switchdesk&lt;span style=""&gt;  &lt;/span&gt;and&lt;span style=""&gt;  &lt;/span&gt;select&lt;span style=""&gt;  &lt;/span&gt;your &lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;desired desktop.&lt;span style=""&gt;  &lt;/span&gt;We will come to this point later. &lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;By&lt;span style=""&gt;  &lt;/span&gt;default&lt;span style=""&gt;  &lt;/span&gt;RedHat&lt;span style=""&gt;  &lt;/span&gt;Linux&lt;span style=""&gt;  &lt;/span&gt;has&lt;span style=""&gt;  &lt;/span&gt;configured&lt;span style=""&gt;  &lt;/span&gt;with&lt;span style=""&gt;  &lt;/span&gt;six&lt;span style=""&gt;  &lt;/span&gt;(6)&lt;span style=""&gt;  &lt;/span&gt;virtual&lt;span style=""&gt;  &lt;/span&gt;console&lt;span style=""&gt;  &lt;/span&gt;and&lt;span style=""&gt;  &lt;/span&gt;one&lt;span style=""&gt;  &lt;/span&gt;X&lt;span style=""&gt;  &lt;/span&gt;console.&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;We can move to&lt;span style=""&gt;  &lt;/span&gt;any&lt;span style=""&gt;  &lt;/span&gt;virtual console by typing ctrl+alt+Fx&lt;span style=""&gt;  &lt;/span&gt;(Where&lt;span style=""&gt;  &lt;/span&gt;F&lt;span style=""&gt;  &lt;/span&gt;–&lt;span style=""&gt;  &lt;/span&gt;Function key&lt;span style=""&gt;  &lt;/span&gt;and &lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;in place&lt;span style=""&gt;  &lt;/span&gt;of&lt;span style=""&gt;  &lt;/span&gt;x&lt;span style=""&gt;  &lt;/span&gt;we can&lt;span style=""&gt;  &lt;/span&gt;use&lt;span style=""&gt;  &lt;/span&gt;1 to&lt;span style=""&gt;  &lt;/span&gt;6&lt;span style=""&gt;  &lt;/span&gt;to switch from&lt;span style=""&gt;  &lt;/span&gt;one&lt;span style=""&gt;  &lt;/span&gt;virtual terminal&lt;span style=""&gt;  &lt;/span&gt;to another)&lt;span style=""&gt;  &lt;/span&gt;or&lt;span style=""&gt;  &lt;/span&gt;we&lt;span style=""&gt;  &lt;/span&gt;can &lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;switch to X console by typing ctrl+alt+F7. &lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;We can start the X server by running the following command – &lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;startx&lt;span style=""&gt;  &lt;/span&gt;considering the system has&lt;span style=""&gt;  &lt;/span&gt;started in run level 3.&lt;span style=""&gt;   &lt;/span&gt;We will&lt;span style=""&gt;  &lt;/span&gt;discuss&lt;span style=""&gt;  &lt;/span&gt;“run level” &lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 88.6pt;"&gt;&lt;span style="font-size: 11.5pt; color: black;"&gt;later. &lt;/span&gt;&lt;span style="font-size: 11.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-4190508658495372724?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/4190508658495372724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/04/x-window.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4190508658495372724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/4190508658495372724'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/04/x-window.html' title='X window'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-5990436769611465422</id><published>2009-04-04T04:42:00.000-07:00</published><updated>2009-04-08T00:02:30.696-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><category scheme='http://www.blogger.com/atom/ns#' term='instalation'/><title type='text'>Apache Web Server</title><content type='html'>APACHE WEB SERVER &lt;br /&gt;We are assuming the FQDN of our Web Server is – mail.bera.com and the IP address is 192.168.100.2. Our DNS Server is configured properly and it is running. &lt;br /&gt;Minimum Configuration to start the Web Server: -&lt;br /&gt;The main configuration file is /etc/httpd/conf/httpd.conf.&lt;br /&gt;Please make a copy of the httpd.conf file by using  the following command – &lt;br /&gt;cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.org &lt;br /&gt;Now  you have to edit the file as below step.&lt;br /&gt;1. Edit the /etc/httpd/conf/httpd.conf file - &lt;br /&gt;(Find the ‘ServerName’ directive and place the FQDN or IP address as follows - &lt;br /&gt;ServerName 192.168.100.2:80 &lt;br /&gt;2. Put an html file (which will be displayed as your ‘home page’) in the /var/www/html &lt;br /&gt;directory. The preferred name of the file, may be, index.html. &lt;br /&gt;3. Start the httpd server - service httpd start or /etc/init.d/httpd start &lt;br /&gt;To start the service every time you boot the system, run the following command – &lt;br /&gt;chkconfig httpd on &lt;br /&gt;&lt;br /&gt;This is a very simple configuration. Isn’t it? &lt;br /&gt;&lt;br /&gt;If you have any problem then post your comment’s that I can provide the solution.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-5990436769611465422?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/5990436769611465422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/04/apache-web-server-we-are-assuming-fqdn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/5990436769611465422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/5990436769611465422'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/04/apache-web-server-we-are-assuming-fqdn.html' title='Apache Web Server'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3133500957547956426.post-726774911721849825</id><published>2009-04-04T04:30:00.000-07:00</published><updated>2009-04-08T01:52:32.485-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>About Linux short briefing</title><content type='html'>Linus Torvalds introduced LINUX in 1991. LINUX is developed keeping UNIX as a&lt;br /&gt;reference model. We can consider LINUX as another version of UNIX. Mr. Linus has made the source code of the LINUX KERNEL available for study, develop and change over the internet. LINUX is an open-development model. It accepts modification to the KERNEL code. Now different distributions are available in the internet. Like RedHat, Mandrake,Slackware, SUSE etc. The core of the LINUX System is KERNEL. It controls the resource of the computer and allots these resources to users and different tasks. In other words we can say the KERNEL allows the users to interact with the hardware. However, we must keep in mind,users cannot access the KERNEL directly. Rather they use a simple user interface to communicate with the KERNEL, called a SHELL.&lt;br /&gt;We will use RedHat E nterprise Linux Release 4 in the training program.&lt;br /&gt;Before starting here is quick look to -&lt;br /&gt;UNIX SHELL&lt;br /&gt;Bourne Shell (sh) : Original UNIX shell written by Steven Bourne at AT&amp;T.&lt;br /&gt;C Shell (csh) : Written by Bill Joy at UC Berkeley&lt;br /&gt;Korn Shell (ksh) : Written by David Korn at AT&amp;T.&lt;br /&gt;Bourne Again Shell (bash) : The default shell for RedHat Linux. We will find&lt;br /&gt;many of the extra features of all the above shells – these include –&lt;br /&gt;Command line completion&lt;br /&gt;Command line editing&lt;br /&gt;Command line h istory&lt;br /&gt;Prompt control.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3133500957547956426-726774911721849825?l=guide2linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guide2linux.blogspot.com/feeds/726774911721849825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guide2linux.blogspot.com/2009/04/about-linux-short-briefing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/726774911721849825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3133500957547956426/posts/default/726774911721849825'/><link rel='alternate' type='text/html' href='http://guide2linux.blogspot.com/2009/04/about-linux-short-briefing.html' title='About Linux short briefing'/><author><name>Gautam</name><uri>http://www.blogger.com/profile/13468047820578281856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_mz9ZgjwKynY/SeeEProrkuI/AAAAAAAAAB4/Hw95g4tBxp4/S220/mypic.gif'/></author><thr:total>0</thr:total></entry></feed>
