<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=Adding_Users</id>
	<title>Adding Users - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=Adding_Users"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Adding_Users&amp;action=history"/>
	<updated>2026-04-20T17:43:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=Adding_Users&amp;diff=10&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot;  ==== To add a user to the T2B cluster ==== The script is in the SVN repo for scripts, under local/add-users (see ManageAllAdminScriptsWithSVN for info on how to connec...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Adding_Users&amp;diff=10&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  ==== To add a user to the T2B cluster ==== The script is in the SVN repo for scripts, under local/add-users (see &lt;a href=&quot;/ManageAllAdminScriptsWithSVN&quot; title=&quot;ManageAllAdminScriptsWithSVN&quot;&gt;ManageAllAdminScriptsWithSVN&lt;/a&gt; for info on how to connec...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==== To add a user to the T2B cluster ====&lt;br /&gt;
The script is in the SVN repo for scripts, under local/add-users (see [[ManageAllAdminScriptsWithSVN]] for info on how to connect). &lt;br /&gt;
&lt;br /&gt;
The script uses your local eclipse workspace to do all the work. It does exactly what you would do in eclipse, plus a few more steps:&lt;br /&gt;
- update the local trunk&lt;br /&gt;
- makes the appropriate changes to the files&lt;br /&gt;
- compiles with ant&lt;br /&gt;
- commits the changes&lt;br /&gt;
- sends runcheck command to qclig&lt;br /&gt;
- adds the users to tesla, then enables quotas (cms: 500G, solid: 10G, non-cms: 50G)&lt;br /&gt;
- adds info to freeipa&lt;br /&gt;
&lt;br /&gt;
You might need to change the variable eclipse_workspace if it is not =&amp;quot;workspace/centralised-begrid-v9&amp;quot; [it needs to point to the directory where the build.xml file is ] . You also need svn to work on command line [and add the line ssl-client-cert-file = ~/mycert.p12 in .subversion/servers]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How to use it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Adds a user to the quattor config files.&lt;br /&gt;
&lt;br /&gt;
  -i  : interactive mode. Will ask all the required questions.&lt;br /&gt;
  -cms/-non-cms/-solid : at least one is mandatory. Will add the user in the corresponding files/groups&lt;br /&gt;
  -fname &amp;quot;FIRSTNAME&amp;quot; : first name of the new user.&lt;br /&gt;
  -lname &amp;quot;LASTNAME&amp;quot;  : last name of the new user.&lt;br /&gt;
  -email &amp;quot;EMAIL&amp;quot;  : email of the new user.&lt;br /&gt;
  -login &amp;quot;LOGIN&amp;quot; : CERN login. &lt;br /&gt;
  -key &amp;quot;ssh-rsa KEY&amp;quot; : the content of id_rsa.pub&lt;br /&gt;
  [-DN &amp;quot;DN&amp;quot;] : optionnal. The complete DN of the person.&lt;br /&gt;
  -h/-help : Will print this guide.&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
add-user-t2b -cms -fname &amp;quot;John&amp;quot; -lname &amp;quot;Smith&amp;quot; -email &amp;quot;John.Smith@iihe.t2b&amp;quot; -login &amp;quot;jsmith&amp;quot; -key &amp;quot;ssh-rsa 42424242424242424242424242 jsmith@mylaptop&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DEPRECATED: ==&lt;br /&gt;
&lt;br /&gt;
==== To add a user to mX machines ====&lt;br /&gt;
&lt;br /&gt;
*point them to http://mon.iihe.ac.be/trac/t2b/wiki/Certificates_and_VOs#CMS&lt;br /&gt;
&lt;br /&gt;
*log in to &amp;#039;&amp;#039;&amp;#039;cream02&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./make_local_cms_users.py --voms=/cms/becms --out=dcache &amp;gt; new_user.txt; ./make_local_cms_users.py --voms=/cms/becms --out=quattor &amp;gt;&amp;gt; new_user.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The user should now appear in the list&lt;br /&gt;
&lt;br /&gt;
*use the output to change the appropriate files in eclipse &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   trunc/cfg/sites/iihe-production/config/cms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Somehow get his public key and paste it into the files.  &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
*log into ccq3 / cd /opt/CB5/svncheck/ / ./runcheck&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Warning&amp;#039;&amp;#039;&amp;#039;: there is a bug somewhere not creating the directory in /localgrid.&lt;br /&gt;
**Log into jefke.wn&lt;br /&gt;
**Execute the following commands&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /storage/localgrid/USER&lt;br /&gt;
chown USER /storage/localgrid/USER&lt;br /&gt;
chgrp localusers /storage/localgrid/USER&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
done.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>