{"id":493,"date":"2009-02-17T11:39:15","date_gmt":"2009-02-17T16:39:15","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=493"},"modified":"2009-02-17T11:39:15","modified_gmt":"2009-02-17T16:39:15","slug":"nis","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=493","title":{"rendered":"NIS"},"content":{"rendered":"<p>Nis<\/p>\n<p>\u00a7Commands<br \/>\n\u2022ypwhich duck<br \/>\n\u2022ypcat -k passwd<br \/>\n\u2022ypcat group<br \/>\n\u2022ypmatch duck hosts<br \/>\n\u2022getent passwd root<br \/>\n\u2022yppasswd<\/p>\n<p>\u00a7files<br \/>\n\u2022\/var\/yp\/Makefile<\/p>\n<p>\u00a7set up nis master server<br \/>\n\u2022cp \/usr\/lib\/NIS.Makefile \/var\/yp\/Makefile<br \/>\n\u2022edit \/etc\/defaultdomain<br \/>\n\u2022set B=-b in Makefile to allow dns to work w\/ nis<br \/>\n\u2022\/usr\/etc\/yp\/ypinit -m<br \/>\n\u2022to start:<br \/>\nypserv<br \/>\nypbind<br \/>\nypxfrd<br \/>\n\u2022autostarted by \/etc\/rc2.d\/S71rpc<\/p>\n<p>\u00a7set up nis slave server<br \/>\n\u2022\/etc\/domainname should = nis domain name in the master<br \/>\n\u2022ypbind<br \/>\n\u2022ypcat -k ypservers<br \/>\n\u2022ypinit -s master-hostname<br \/>\n\u2022ypserv<\/p>\n<p>\u00a7setup nis client<br \/>\n\u2022vi \/etc\/defaultdomain<br \/>\nmust be = master nis domain name<br \/>\n\u2022cp \/etc\/nsswitch.nis \/etc\/nsswitch.conf<br \/>\n\u2022to use dns as well:<br \/>\n-vi \/etc\/nsswitch.conf<br \/>\nhosts:\tfiles nis dns<br \/>\n-configure \/etc\/resolv.conf<br \/>\n\u2022ypinit -c<\/p>\n<p>\u00a7remove nis from solaris client<br \/>\n\u2022rm -r \/var\/yp\/&#8217;domainname&#8217;<br \/>\n\u2022rm \/etc\/defaultdomain<br \/>\n\u2022cp \/etc\/nsswitch.files \/etc\/nsswitch.conf<br \/>\n\u2022vi \/etc\/nsswitch.conf<br \/>\n-hosts:\tfiles dns<br \/>\n\u2022reboot<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nis \u00a7Commands \u2022ypwhich duck \u2022ypcat -k passwd \u2022ypcat group \u2022ypmatch duck hosts \u2022getent passwd root \u2022yppasswd \u00a7files \u2022\/var\/yp\/Makefile \u00a7set up nis master server \u2022cp \/usr\/lib\/NIS.Makefile \/var\/yp\/Makefile \u2022edit \/etc\/defaultdomain \u2022set B=-b in Makefile to allow dns to work w\/ nis \u2022\/usr\/etc\/yp\/ypinit &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=493\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[45],"tags":[],"class_list":["post-493","post","type-post","status-publish","format-standard","hentry","category-solaris"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s8cRUO-nis","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=493"}],"version-history":[{"count":1,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/493\/revisions"}],"predecessor-version":[{"id":494,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/493\/revisions\/494"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}