Open main menu

CDOT Wiki β

Changes

OPS335 NIS Lab

25 bytes removed, 16:53, 14 January 2013
m
Updating part C
cd ~
*You should recieve a permission denied error as the UID on the local system differs from the UID of the file owner on the remote server. Change back to your root account.
*Install ypbind, configure it to use your domain and NIS server and start cd into the service.*Edit home directory of the /etc/nsswitch file change user whose UID on the following lines as they appear below: passwd: nis files shadow: nis files group: nis files initgroups: files*Save and exit host matches the file. Again try to change to UID on your learnid account (or other account where UID/GID differs between systems)vm.*You should now be successful, cd to your home . Obtain a directory and do a listing. Below is some example output:
[paul@vm02 ~]$ ll
total 384
[paul@vm02 ~]$ touch empty_from_vm02
[paul@vm02 ~]$ ll
-rw-rw-r--. 1 nis-user nis-user paul paul 0 Mar 18 14:58 empty_from_vm02
*And finally
pwd
*Notice you are in your the other user's home directory, however files show they are owned by a different your current user, even when you create a new one.*Change users back to root*Install ypbind, configure it to use your domain and NIS server and start the service.*Edit the /etc/nsswitch file change the following lines as they appear below: passwd: nis files shadow: nis files group: nis files initgroups: files*Save and exit the file.
*Ensure ypbind will start at boot and restart the vm.
*Again SSH to the machine, this time using your learnid account. You should now be able to see the files in your home directory with the correct mapping.
932
edits