<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.chc.ucsb.edu/index.php?action=history&amp;feed=atom&amp;title=Sysadm%3AGNIS</id>
	<title>Sysadm:GNIS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.chc.ucsb.edu/index.php?action=history&amp;feed=atom&amp;title=Sysadm%3AGNIS"/>
	<link rel="alternate" type="text/html" href="https://wiki.chc.ucsb.edu/index.php?title=Sysadm:GNIS&amp;action=history"/>
	<updated>2026-04-29T21:33:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://wiki.chc.ucsb.edu/index.php?title=Sysadm:GNIS&amp;diff=108250&amp;oldid=prev</id>
		<title>Libby: Created GNIS page for integrating new servers/VMs into samba environment.</title>
		<link rel="alternate" type="text/html" href="https://wiki.chc.ucsb.edu/index.php?title=Sysadm:GNIS&amp;diff=108250&amp;oldid=prev"/>
		<updated>2015-03-17T20:22:40Z</updated>

		<summary type="html">&lt;p&gt;Created GNIS page for integrating new servers/VMs into samba environment.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Basic steps for adding a system to our samba environment. Currently configured for CentOS and similar systems.&lt;br /&gt;
&lt;br /&gt;
==Install Process==&lt;br /&gt;
*Useful link with additional information: http://wiki.eri.ucsb.edu/sysadm/Yum#Autofs:&lt;br /&gt;
&lt;br /&gt;
If you have trouble accessing repos, check DNS at /etc/resolve.conf&lt;br /&gt;
 [root@server ~]# yum install autofs nfs-utils -y&lt;br /&gt;
&lt;br /&gt;
===/etc/auto.*===&lt;br /&gt;
 [root@server ~]# vib /etc/auto.master &lt;br /&gt;
Copy the last two lines found in ubu's auto.master and add them to the bottom of the &amp;quot;new&amp;quot; server's auto.master&lt;br /&gt;
 /-  /etc/auto.eri --timeout=300&lt;br /&gt;
 /home   /etc/auto.home  --timeout=300&lt;br /&gt;
Copy over the /etc/auto.eri and /etc/auto.home from ubu&lt;br /&gt;
 [root@server ~]# scp root@ubu:/etc/auto.eri /etc/&lt;br /&gt;
 [root@server ~]# scp root@ubu:/etc/auto.home /etc/&lt;br /&gt;
 [root@server ~]# modprobe nfsd&lt;br /&gt;
 [root@server ~]# service rpcbind start   &lt;br /&gt;
 [root@server ~]# service nfslock start    # May or may not be needed&lt;br /&gt;
 [root@server ~]# service netfs start&lt;br /&gt;
 [root@server ~]# service autofs start&lt;br /&gt;
&lt;br /&gt;
===/etc/exports===&lt;br /&gt;
On ubu, add the IP for the &amp;quot;new&amp;quot; server to the listings in /etc/exports: &lt;br /&gt;
*make sure it's got the no_root_squash flag included&lt;br /&gt;
*mimic other entries in that file&lt;br /&gt;
*Place entry in numerical order, be careful because ORDER MATTERS (you can bust all  sorts of stuff/systems at this point given all the systems that depend on NFS exports from ubu/rain. Rules in that file are met in order - if a rule is met it drops out, so you need to put the '''no_root_squash''' entries at the beginning in case a wild-card type entry not allowing no_root_squash comes up so it doesn't override what you're trying to do).&lt;br /&gt;
&lt;br /&gt;
Re-export the stuff from ubu&lt;br /&gt;
 [root@ubu ~]# exportfs -farv #The flush and reexport cleans up local tables and such better, leaving less likelihood if residual issues.&lt;br /&gt;
&lt;br /&gt;
===Pull Script===&lt;br /&gt;
Back on the &amp;quot;new&amp;quot; server, GNIS is completed using a custom ERI script to pull the automounts over.&lt;br /&gt;
 [root@server etc]# /home/sysadm/bin/pull-conf.C6-now 2 &lt;br /&gt;
 backin up and updating /etc/passwd omitting 1st 2 lines...&lt;br /&gt;
 backin up and updating /etc/shadow omitting 1st 2 lines...&lt;br /&gt;
 backin up and updating /etc/group omitting 1st 2 lines...&lt;br /&gt;
 backin up and updating /etc/gshadow omitting 1st 2 lines...&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
*Currently working on finding a solution for auto-mounting in Ubuntu. Can't use the ERI pull-conf.C6 script because the /etc files are too different in Ubuntu (was set up for Red Hat/CentOS and Ubuntu doesn't have a &amp;quot;root&amp;quot;, etc) [[User:Libby|Libby]] 13:22, 17 March 2015 (PDT)&lt;/div&gt;</summary>
		<author><name>Libby</name></author>
		
	</entry>
</feed>