virtualdatingservice com - Nis slave not updating

This tutorial covers mostly RPM based distributions of GNU/Linux such as Red Hat, Fedora, or Cent OS.

There are also references to Debian based distrbutions such as Ubuntu.

On Red Hat we would issue the following commands:[[email protected]]# /etc/init.d/portmap start Starting portmapper: [ OK ] [[email protected]]# /etc/init.d/yppasswdd start Starting YP passwd service: [ OK ] [[email protected]]# /etc/init.d/ypserv start Setting NIS domain name LINUX-NIS: [ OK ] Starting YP server services: [ OK ] [[email protected]]# /etc/init.d/portmap start Starting portmapper: [ OK ] [[email protected]]# /etc/init.d/nis start Setting NIS domainname to: LINUX-NIS Starting NIS services: ypserv yppasswdd ypxfrd ypbind: [ OK ] Note: The ypxfrd and ypbind daemons start with the all-encompassing nis startup script for Debian. This procedure makes all NIS-enabled, nonprivileged accounts become automatically accessible via NIS, not just newly created ones.

nis slave not updating-39

We now need to start a couple of the NIS daemons in the /etc/init.d directory. In this case, you'll create a user account called nisuser and give it a new password.

In this case we will only be starting the portmap, yppasswdd, and ypserv daemons so that we can initialize the NIS domain. Once this is complete, you then have to update the NIS domain's authentication files by executing the make command in the /var/yp directory.

By commenting, you are accepting the DISQUS terms of service.

Network Information Service (NIS) is used for keeping a centralized repository of users, hostnames and other useful information in a computer network.

Let NFS read the /etc/exports file for the new entry, and make /homeavailable to the network with the exportfs command.#exportfs -a3. COM server 1.16#/etc/sysconfig/network NISDOMAIN=MTWP3NIS. Here you can see where NISentries were added for the important login files.#/etc/nsswitch.confpasswd: files nisshadow: files nisgroup: files nis These entries are updated successfully4. You can run the ypcat, ypmatch, and getent commands to make surecommunication to the server is correct.# ypcat passwdnisuser:$1$Cs2GMe6r$1hohky G7ALr DLj H0:home/nisuser:/bin/bash## ypmatch nisuser passwdnisuser:$1$d6E2i79Q$wp3Eo0Qw9n FD/:50:home/nisuser:/bin/bash## getent passwd nisusernisuser:$1$d6E2i79Q$wp3Eo0Qw9n FD/:50:home/nisuser:/bin/bash#All commands ran successfully7.

Make sure the required nfs, nfslock, and portmap daemons are both runningand configured to start after the next reboot.# chkconfig nfslock on# chkconfig nfs on# chkconfig portmap on# service portmap start Starting portmapper: [ OK ]# service nfslock start Starting NFS statd: [ OK ]# service nfs start Starting NFS services: [ OK ]Starting NFS quotas: [ OK ]Starting NFS daemon: [ OK ]Starting NFS mountd: [ OK ]#The above services were started successfully. Start the ypbind NIS client, and portmap daemons in the /etc/init.ddirectory and use the chkconfig command to ensure they start after the nextreboot. Try logging into the NIS client via SSH.# ssh -l nisuser [email protected]'s password:[[email protected] nisuser]$This does not work.In single server UNIX environments, the list of users and groups is usually kept in a file such as /etc/passwd.Using NIS adds a "global" directory which is used for authenticating users from any host on the network.It'll guide you through the details of setting up a slave and a whole lot more. Edit the /etc/exports file to allow NFS mounts of the /home directory withread/write access./home * (rw,sync,no_root_squash)2. Italso edits the /etc/sysconfig/network file to define the NIS domain to whichthe NIS client belongs.# /etc/- ypbind configuration filedomain MTWP3NIS. In addition, the authconfig program updates the /etc/file thatlists the order in which certain data sources should be searched for namelookups, such as those in DNS, LDAP, and NIS.[y/n: y] y We need a few minutes to build the databases...

Tags: , ,