Name:______________
Quiz #2 -- Printing, YP, and More!
1) User Andrew "FAT" Tommy has accounts
"fat@shortyear.com" and "andy@gaag.nmu.edu". He would like
to be able to rlogin in from shortyear to gaag without typing in his password.
He would also like the rsh command to have permissions to send commands from
shortyear to gaag. Unfortunately, he does not know how to do this. What should
he do on gaag to allow this? (Hint: He's not root, but can still make this
happen.)
ANS --make an entry in ~/.rhosts on gaag that says "shortyear.com
fat"
2a) Andy-boy has been promoted to system admin on shortyear, and now has root
privliges. He now wants to be able to print from shortyear to the printer
attached to gaag. He is quite clueless on how to do this. What should he do to
allow printing from shortyear to the printer named 'turtle' on gaag?
ANS
a - make an /etc/printcap entry on shortyear like the one in the
printing-Howto.
b - make the spool directoy listed in /etc/printcap.
c - restart the lpd daemon.
d - On gaag, add shortyear to /etc/host.lpd
2b) If you don't know the actual 'printcap' entry, tell me how you would find
an example. In other words, tell me either what goes in /etc/printcap OR tell
me where you would look it up.
ANS -- look in the printing HOWTO.
3) Andy's girlfriend rises up in revolt against his poor system
administration. She would like to use the account information (/etc/passwd and
/etc/group) from gaag on shortyear. She's heard of YP/NIS/NYS, and thinks that
would help. How can she set up shortyear as a YP/NYS/NIS client of gaag's YP
server.
ANS -- assuming NYS ..
a- make a /var/yp directory
b - set up the file /etc/nsswitch.conf (see gaag for example)
c - set up the file yp.conf (see gaag for example).