Posts

DHCP SERVER CONFIGURATION RHEL 7

 DHCP (Dynamic Host Configuration Protocol) is a network protocol used to dynamically assign IP addresses for computers attached to the network. => Default Port : 67 (UDP) => Configuration File :  /etc/dhcp/dhcpd.conf => Install dhcp Service on the server #yum install dhcp* => Copy the example file data to the dhcpd.conf file #cp /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example /etc/dhcp/dhcpd.conf => Now  Edit configuration file : #vi /etc/dhcp/dhcpd.conf => Comment all the line except the following  authoritative; => edit the following details : #A slightly different .................................., below this line content subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.100 192.168.0.200; (Range of the IP Address for Client Machine) option routers 192.168.0.1; (Router IP address) option broadcast-address 192.168.0.255; ( place your broadcast address here) default-lease-time 600; max-lease-time 7200; } Save and Exit => Go to Client ...

NFS SERVER CONFIGURATION

=> NFS Network File Sharing (NFS) is a protocol that allows you to share directories and files with other Linux clients over a network. Shared directories are typically created on a file server, running the NFS server component. Users add files to them, which are then shared with other users who have access to the folder. => Package = nfs-utils   => Default Port = 2049   => Configuration file : /etc/exports    => Steps for Configuration:   :- Install NFS Package   :- #yum intsall nfs-utils*   :- #systemctl restart nfs.service => Add NFS Service to firewall : :- #firewall-cmd --zone=public --permanent --add-service=nfs => Add mountd service to firewall : : - #firewall-cmd --permanent --add-service=mountd => Add rpc service to firewall : :- #firewall-cmd --permanent --add-service=rpc-bind => Make a directory to share  :- #mkdir /nfsserver => Change the permission of the Directory :- #chmod 770 /...

how to configure ftp server in linux redhat 7 step by step command

Image
FTP is used to transfer files between computers on a network. You can use FTP to exchange files between computer accounts, transfer files between an account and a desktop computer, or access online software archives. =>   Install     vsftpd for   FTP Server =>    #yum install vsftpd.x86_64 –y =>  Then   start the service =>  #systemctl start vsftpd =>  Now check the status =>  #systemctl status vsftpd   =>  #Now check ftp server working or not    =>  #firefox ftp://192.168.1.10( Server IP)    => Now you will able to see the data on ftp server Thank You...

interview Questions on User Management in Linux

=> What will be the ownership of files owned by a deleted use? => How to change user’s home direcroty, login shell, uid , gid etc? =>  How to set ACLs so that the directory’s created in a ACL applied directory get inherited ACLs set? =>  Explain /etc/default/useradd =>  How to assign a duplicate uid to a user ? =>  How to recover a corruted/damaged password file ? =>  pwconv and pwunconv command? => H ow will you differentiate a primary and secondary group? =>  How to add more than one secondary group to user ? =>  finger command? =>  How to force a user to change its password on first login attempt? =>  Can you edit /etc/passwd, /etc/shadow and /etc/group files ? =>  What is configuration file for sudo and how to write in it ? =>  How to assign sudo access to a user ? =>  What is the meaning for three ALLs in assigning sudo access ? =>  How to assign the sudo access ...

How to configure Mail Server in Redhat Linux

Image
An email message is created using a mail client program. Mail is digital messaging service and which generally consists of a message body . =>   These are the most commonly used in the transfer of email Simple Mail Transport Protocols (SMTP-Port 25) delivery from a client application to the server, and from an originating server to the destination server, is handled by the  Simple Mail Transfer Protocol  ( SMTP ). =>  Mail Access Protocols POP (Post Office Protocol):  -( P ort 110 ) It  is an email accessing protocol used to receive mails from a mail server and  POP  will download all emails from the server to the user’s computer. IMAP (Internet Message Access Protocol):- ( Port 143 ) It   is another email accessing protocol however it is used to access the mails from the server.IMAP will synchronize a copy of the mail on the server to the user’s computer. All mail data is kept on the server as well as the user’s computer until they ...

Kernel and Module Interview Questions

=>   How to check the machine’s architecture ? =>   How to check the current kernel version running ? =>   How to see whether a module is loaded or no ? =>   How to load/unload a module ? =>   Where are kernel modules stored ? =>   How to find information about a module ? =>   How to upgrade your kernel ? =>   How to set kernel parameters?

SAMBA Server Configuration in Redhat Linux 8 and Redhat 7

Image
=>  Samba provides server and client software to allow file sharing between Linux and Windows machines. => Default Port : "445" => Daemon : "smb" => Install SAMBA Server   =>  # yum install samba* -y => Enable the samba service =>  #systemctl enable smb => Now start the service =>  #systemctl start smb => Disable the firewall or add the samba port =>  #systemctl stop firewalld =>  #systemctl disable firewalld => Create directory for sharing =>  #mkdir shared_folder => Assign full permission   =>  #chmod 777 shared_folder/ => Create users  =>  #adduser sam =>  #adduser tom => Make users as "samba" users =>  #smbpasswd -a sam =>  #smbpasswd -a tom => Configure the samba file   =>  #vim /etc/samba/smb.conf => Add the following lines :  => Save and exit => Restart samba services =>  #systemct...