Updating netid byname funny redneck dating jokes
[[email protected] tmp]# chkconfig nfslock on [[email protected] tmp]# chkconfig netfs on [[email protected] tmp]# chkconfig portmap on [[email protected] tmp]# service portmap start Starting portmapper: [ OK ] [[email protected] tmp]# service netfs start Mounting other filesystems: [ OK ] [[email protected] tmp]# service nfslock start Starting NFS statd: [ OK ] [[email protected] tmp]# [[email protected] tmp]# mv /home /[[email protected] tmp]# mkdir /home [[email protected] tmp]# ll / ... drwxr-xr-x 1 root root 11 Nov 16 home drwxr-xr-x 2 root root 4096 Jan 24 2003 ... This is because by default NFS activates the root squash feature, which disables this user from having privileged access to directories on remote NFS servers.
You'll be able to test this later after NIS is configured.
The developers had to change the name after a copyright infringement lawsuit, yet many of the key programs associated with NIS have kept their original names beginning with yp. [[email protected] tmp]# service ypbind start Binding to the NIS domain: [ OK ] Listening for an NIS domain server.
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.
It is for this reason that LDAP has become increasingly popular for this type of application.
LDAP is discussed in more detail in Chapter 31, "Centralized Logins Using LDAP and RADIUS".
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.