Configuration of NIS Server & Client in RHEL 8 | Install & Configure NIS in Linux | Nehra Classes

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ย. 2024
  • NIS Server & Client Configuration in RHEL 8:
    ======================================
    The Linux NIS server (Network Information Service) is a server used for sharing critical data stored in flat files between systems on a network.
    It is often ideal to have a common repository (such as NIS) for storing user and group information that is traditionally stored in flat files like /etc/passwd.
    ======================================
    NIS Server Configuration:
    RHEL 8
    (192.168.1.104)
    hostnamectl set-hostname nisserver.nehraclasses.local
    vim /etc/hosts
    192.168.1.104 nisserver.nehraclasses.local nisserver
    192.168.1.160 nisclient.nehraclasses.local nisclient
    systemctl restart hostname
    dnf repolist
    yum install -y ypserv rpcbind yp-tools nss-pam-ldapd
    ypdomainname NehraClasses
    ypdomainname
    vim /etc/sysconfig/network
    NISDOMAIN=NehraClasses
    YPSERV_ARGS="-p 955"
    YPXFRD_ARGS="-p 956"
    vim /etc/yp.conf
    ypserver nisserver.nehraclasses.local
    systemctl start rpcbind ypserv ypxfrd yppasswdd
    systemctl enable rpcbind ypserv ypxfrd yppasswdd
    systemctl status rpcbind ypserv ypxfrd yppasswdd
    useradd nisuser1 ; useradd nisuser2
    passwd nisuser1
    passwd nisuser2
    /usr/lib64/yp/ypinit -m
    cd /var/yp
    make
    ll
    cd NehraClasses ; ll
    vim /etc/sysconfig/yppasswdd
    YPPASSWDD_ARGS="-p 957"
    systemctl restart rpcbind ypserv ypxfrd yppasswdd
    systemctl status rpcbind ypserv ypxfrd yppasswdd
    rpcinfo -p
    firewall-cmd --permanent --add-service=rpc-bind
    firewall-cmd --permanent --add-port=955/tcp
    firewall-cmd --permanent --add-port=955/udp
    firewall-cmd --permanent --add-port=956/tcp
    firewall-cmd --permanent --add-port=956/udp
    firewall-cmd --permanent --add-port=957/tcp
    firewall-cmd --permanent --add-port=957/udp
    firewall-cmd --reload
    getenforce
    setenforce 0
    getenforce
    ============================================
    NIS Client:
    RHEL 7
    (192.168.1.160)
    hostnamectl set-hostname nisclient.nehraclasses.local
    vim /etc/hosts
    192.168.1.104 nisserver.nehraclasses.local nisserver
    192.168.1.160 nisclient.nehraclasses.local nisclient
    systemctl restart hostname
    yum repolist
    yum install -y ypbind yp-tools authconfig-gtk
    vim /etc/yp.conf
    ypdomainname NehraClasses nisserver.nehraclasses.local nisserver
    ypserver nisserver.nehraclasses.local
    systemctl start ypbind.service
    ping nisserver
    setenforce 0
    getenforce
    authconfig-tui
    nehraclasses
    192.168.1.104
    Go to GUI
    system-config-authentication
    Go to Advance Tab and check create home dir for new users.
    OR
    authconfig --enablenis --nisdomain=NehraClasses --nisserver=192.168.1.104 --enablemkhomedir --update
    ypwhich
    ypcat passwd
    cat /etc/passwd
    hostname
    ssh nisuser1@localhost
    yppasswd nisuser2
    ----------
    DNF/Yum Repository in RHEL 8:
    • Configure Local DNF / ...
    ================
    Thanks for watching the video. Please like our videos, share with your friends and feel free to ask anything, post your queries in comments section. We will be glad to answer your queries. Don't forget to subscribe the channel & turn on the bell notifications.
    ===============
    Our Some Popular Videos:
    NAVIC:
    • NAVIC: The Indian GPS ...
    Learn Linux Fundamentals:
    • Learn Linux Fundamenta...
    Concept of All RAID Levels:
    • Session-31 | Concept o...
    Configure RAID-0 in Linux:
    • Live Linux Training (R...
    Configure RAID-1 in Linux:
    • Live Linux Training (R...
    Configure RAID-5 in Linux:
    • Live Linux Training (R...
    Configure RAID-6 in Linux:
    • Live Linux Training (R...
    Configure RAID-10 in Linux:
    • Live Linux Training (R...
    LVM Snapshot:
    • Session-30 | Logical V...
    ===============================
    Contact Us:
    To Follow Vikas Nehra's Twitter Handle:👇
    bit.ly/VikasNeh...
    For Registration:👇
    bit.ly/NehraCla...
    To Follow Our Twitter Handle:👇
    bit.ly/NehraCla...
    To Visit Our Facebook Page:👇
    nehraclasses
    To Follow Nehra Classes on Instagram:👇
    / nehraclasses
    To Our Visit Our Webpage:👇
    bit.ly/NehraCla...
    Join Us on Telegram App: 👇
    t.me/NehraClasses
    WhatsApp Us: 👇
    bit.ly/2Kpqp5z
    Email Us:👇
    Email: nehraclasses@gmail.com
    ============
    ©COPYRIGHT. ALL RIGHTS RESERVED.
    #NehraClasses #LinuxTraining #Trending

ความคิดเห็น • 22

  • @rajlawanivlogs
    @rajlawanivlogs ปีที่แล้ว +1

    Thank you very much for this tuttorial. Its explained in very simple manner to understand. We have exactly the same set up in our environment but got more clarity after watching your vedio

  • @techkwondo1962
    @techkwondo1962 4 ปีที่แล้ว +3

    Not every hero wears a cape. Amazing work my friend.

  • @paramveersingh5122
    @paramveersingh5122 3 ปีที่แล้ว +1

    great vid, helped me perform the entire practical

  • @niteshsingla5447
    @niteshsingla5447 ปีที่แล้ว +1

    Sir authconfig-gtk doesn't install in Rhel 8 ,how can I install this please help me

  • @defsecops
    @defsecops 3 ปีที่แล้ว +2

    authconfig-gtk is now depricated [RHEL8.2] ... So wht can i use instead ??

  • @priyadutt7290
    @priyadutt7290 2 ปีที่แล้ว

    what are advantage NIS ? While we can used ssh login

    • @NehraClasses
      @NehraClasses  2 ปีที่แล้ว

      SSH is used for connecting to remote machine if the user is present on the remote machine while NIS is used to authenticate the user account.

  • @muntasirahmed8342
    @muntasirahmed8342 4 ปีที่แล้ว +1

    good work

  • @shejimshad
    @shejimshad 3 ปีที่แล้ว +1

    Can u pls tell me the command in rhel 8 equivalent of authconfig-tui...

    • @NehraClasses
      @NehraClasses  3 ปีที่แล้ว +1

      Authconfig doesn't work in RHEL 8, can u please elaborate why do u need this?

    • @shejimshad
      @shejimshad 3 ปีที่แล้ว +1

      @@NehraClasses i need to configure NIS client on rhel 8....

    • @NehraClasses
      @NehraClasses  3 ปีที่แล้ว

      Can upload a tutorial on this if you want, please join our telegram channel and raise a request there 🙏

  • @mohdnaim7298
    @mohdnaim7298 ปีที่แล้ว +1

    Xcat ke through pxe boot kaise krte h

  • @kirankumarvura2394
    @kirankumarvura2394 2 ปีที่แล้ว +1

    Good