Updating nis maps linux dating forum gratis g teborg
To understand the benefits of NFS, consider an example.A school wants to set up a small computer lab for its students.
The Lightweight Directory Access Protocol (LDAP) offers similar features to NIS but has the advantage of supporting encryption without additional software and can support clients across multiple networks without the need for slave servers.
You also need to configure the NFS clients to mount their /home directories on the NFS server. In a production environment in which the /home directory would be actively used, you'd have to force the users to log off, backup the data, restore it to the NFS server, and then follow the steps below. Edit your /etc/auto.master file to refer to file /etc/for mounting information whenever the /home directory is accessed. If the line is too long to view on your screen, you can add a \ character at the end to continue on the next line.
As this is a lab environment, these prerequisites aren't necessary. Make sure the required netfs, nfslock, and portmap daemons are running and configured to start after the next reboot. After doing this, you won't be able to see the contents of the /home directory on bigboy as user root.
You will be prompted for the name of the NIS server, which in this case is bigboy. New password: Retype new password: passwd: all authentication tokens updated successfully. gmake: Leaving directory `/var/yp/NIS-SCHOOL-NETWORK' [[email protected] yp]# You can also use the getent command, which has similar syntax.
With this procedure, all nonprivileged accounts are automatically accessible via NIS. [[email protected] tmp]# cd /var/yp [[email protected] yp]# make gmake: Entering directory `/var/yp/NIS-SCHOOL-NETWORK' Updating passwd.byname... Unlike ypmatch, getent doesn't provide an encrypted password when run on an NIS server, it just provides the user's entry in the /etc/passwd file.