This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:jcavalu3:portfolio:eoce:0x1 [2014/05/07 15:23] – [Down to Business] jcavalu3 | user:jcavalu3:portfolio:eoce:0x1 [2014/05/08 04:55] (current) – [NIS Configuration] jcavalu3 | ||
---|---|---|---|
Line 95: | Line 95: | ||
vm-055 | vm-055 | ||
vm-056 | vm-056 | ||
- | arbiter | + | client-057 |
- | masterchief | + | client-058 |
- | cortana | + | srv-059 |
+ | arbiter | ||
+ | masterchief | ||
+ | cortana | ||
</ | </ | ||
Line 123: | Line 126: | ||
# | # | ||
# Example for NFSv2 and NFSv3: | # Example for NFSv2 and NFSv3: | ||
- | /srv | + | /srv |
# | # | ||
# Example for NFSv4: | # Example for NFSv4: | ||
Line 133: | Line 136: | ||
**The uncommented line contains the client mount settings.** | **The uncommented line contains the client mount settings.** | ||
+ | **fstab** has been configured to mount cortana:/ | ||
+ | |||
+ | < | ||
+ | # /etc/fstab: static file system information. | ||
+ | # | ||
+ | # <file system> <mount point> | ||
+ | proc /proc | ||
+ | devpts | ||
+ | /dev/xvda1 none swap sw 0 0 | ||
+ | /dev/xvda2 / ext3 noatime, | ||
+ | cortana:/ | ||
+ | </ | ||
+ | |||
+ | ====NIS Configuration==== | ||
+ | ---- | ||
+ | |||
+ | I followed a tutorial online to set up the NIS server and clients. | ||
+ | |||
+ | Server configuration can be seen [[http:// | ||
+ | Client configuration can be seen [[http:// | ||
+ | |||
+ | ===Server=== | ||
+ | |||
+ | The NIS domain is on the cortana server (srv-059). | ||
+ | |||
+ | The first order of business is installing the **nis** package onto the server: | ||
+ | |||
+ | <cli> | ||
+ | apt-get install nis | ||
+ | </ | ||
+ | |||
+ | At the end of the installation, | ||
+ | |||
+ | To go along with the tutorial and keep things simple and readable, I will only list the important changes in each file (all changes indicated with **change**): | ||
+ | |||
+ | < | ||
+ | |||
+ | root@cortana: | ||
+ | |||
+ | # line 6: set NISSERVER to master | ||
+ | NISSERVER=**master** | ||
+ | |||
+ | |||
+ | |||
+ | root@cortana: | ||
+ | |||
+ | # This line gives access to everybody | ||
+ | 0.0.0.0 0.0.0.0 | ||
+ | |||
+ | |||
+ | |||
+ | root@cortana: | ||
+ | |||
+ | # add shadow in front of passwd on line 119 | ||
+ | |||
+ | ALL = passwd **shadow** group hosts rpc services netid protocols netgrp | ||
+ | |||
+ | |||
+ | |||
+ | root@cortana: | ||
+ | |||
+ | 127.0.0.1 | ||
+ | 127.0.1.1 | ||
+ | # add the IP address for the NIS database | ||
+ | **10.80.3.59 | ||
+ | |||
+ | |||
+ | #update NIS database (press control-d when prompted) | ||
+ | root@cortana: | ||
+ | |||
+ | |||
+ | # start the NIS server | ||
+ | root@cortana: | ||
+ | |||
+ | # When adding new users, you MUST UPDATE THE NIS DATABASE with the following method | ||
+ | root@cortana: | ||
+ | root@cortana: | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===Client Configuration=== | ||
+ | |||
+ | Client configuration begins with the installation of the NIS package and asks for the NIS domain name, which will be **cortana**. | ||
+ | |||
+ | Next, the real configuration: | ||
+ | |||
+ | < | ||
+ | |||
+ | root@client: | ||
+ | |||
+ | # At the end of the file, add the domain name followed by the server in the following format: | ||
+ | cortana cortana.projects.lan | ||
+ | |||
+ | |||
+ | |||
+ | root@client: | ||
+ | |||
+ | passwd: | ||
+ | group: | ||
+ | shadow: | ||
+ | |||
+ | hosts: | ||
+ | |||
+ | # Lastly, reboot the client. | ||
+ | </ | ||
+ | |||
+ | With NFS and NIS configured correctly, you should now be able to log onto cortana from arbiter and masterchief as the users on cortana. | ||