{"id":32291,"date":"2010-03-17T17:16:18","date_gmt":"2010-03-17T21:16:18","guid":{"rendered":"http:\/\/www.bu.edu\/tech\/?page_id=32291"},"modified":"2015-02-03T09:42:21","modified_gmt":"2015-02-03T14:42:21","slug":"configure-useradm","status":"publish","type":"page","link":"https:\/\/www.bu.edu\/tech\/about\/security-resources\/bestpractice\/unix\/useradm\/configure-useradm\/","title":{"rendered":"Configure UserAdm"},"content":{"rendered":"<p>The<span> <em>new<\/em><\/span> program is the most user visibile component of the <span><em>UserAdm<\/em><\/span> system. It is also the only component of the system that has extensive configuration options.<\/p>\n<p>The <a href=\"\/tech\/about\/security-resources\/bestpractice\/unix\/useradm\/config\/\">sample configuration<\/a> file distributed with the UserAdm package is extensively commented, and is its own best source of documentation. What follows here are some additional notes.<\/p>\n<p><span>Degree and course entries<\/span><br \/>\nThe degree and course entries in the configuration file determine where a user&#8217;s home directory will be located and what the group ID (GID) of that home directory will be.<\/p>\n<p>When a user runs the new program, they will match one or more degree or course entries based on their registration status. This value will then be passed to the adduser program, which looks up the corresponding entry in the passwd file. The template entries should have the following format:<\/p>\n<p>template_name:*NO_LOGIN*:gid:gid:description:home_directory:\/bin\/nosh<\/p>\n<p>The UID for the template entry should be equal to the GID. This GID will determine the GID of home directories created for this course or degree specification.<\/p>\n<p>The home directory for this entry is used to determine the home directory for the user when their account is created. <strong>There must be an entry in the passwd file for each <em>degree<\/em> and <em>course<\/em> line in the config file.<\/strong> <em>new<\/em> will exit with an error message if it cannot find corresponding entries in the passwd file.<\/p>\n<p>It is possible for a user to match more than one <em>degree<\/em> entry and\/or more than one <em>course<\/em> entry. In this case, the user will be asked to choose which entry to use during the <em>new<\/em> process.<\/p>\n<p>For example:<\/p>\n<p>Using the default configuration file, if an undergraduate student were to log into your system and run new, they would at some point be presented with the following choice:<\/p>\n<blockquote><p>You have been found to fit into more than one course\/status category.<\/p>\n<p>Please choose the course or status from the following list that fits your current situation\/needs for getting an account on this machine.<\/p>\n<blockquote><p>ugrad<br \/>\nstudent<\/p><\/blockquote>\n<p>Please type the status or course name (, e.g., ugrad):<\/p><\/blockquote>\n<p><strong>Note:<\/strong> The <em>special-status<\/em> entry in the configuration file can be used to provide a course or degree even when a user&#8217;s registration information does not match any of the existing entries in your config file. The comments in the <a href=\"\/tech\/about\/security-resources\/bestpractice\/unix\/useradm\/config\">sample configuration file<\/a> describe how to set up the <em>special-status<\/em> program.<\/p>\n<p><span>Guest List and Preapprove<br \/>\n<\/span>If the <span><em>autoapprove<\/em><\/span> line in the configuration file is commented out, most users will have to have their accounts approve manually. However, both users who have their usernames or BUIDs listed in the <em>guests<\/em> file, and those who have been pre-approved using the <span><em>pre-approve<\/em><\/span> program, will have their accounts autoapproved in any case.<\/p>\n<p>The <em>pre-approve<\/em> program requires special privileges, and is meant to be used to create accounts for users who are not students, faculty, or staff of Boston University. In general, if you want to have accounts for specific users auto-approved, you should use the <em>guests<\/em> facility.<\/p>\n<p><span>The <em>adduser<\/em> program<\/span><br \/>\nThe <span><em>adduser<\/em><\/span> program distributed with UserAdm is a perl script, and can be modified to meet the specific needs of your computing environment. For instance, you could modify it so that users in different degree or course categories received different sets of initial dotfiles.<\/p>\n<p>As distributed, the <em>adduser<\/em> script will look for your default dotfiles in \/usr\/local\/IT\/skel. You can change this location by editing the following line in the <em>adduser<\/em> script:<\/p>\n<blockquote><p>$skeldir = &#8220;\/usr\/local\/IT\/skel&#8221;;<\/p><\/blockquote>\n<p><strong>Note<br \/>\n<\/strong>Before looking in <span>skeldir<\/span>, the <em>adduser<\/em> script will copy <span>~new\/Cshrc<\/span> and <span>~new\/Login<\/span> into the user&#8217;s home directory as <span>.cshrc<\/span> and <span>.login<\/span>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The new program is the most user visibile component of the UserAdm system. It is also the only component of the system that has extensive configuration options. The sample configuration file distributed with the UserAdm package is extensively commented, and is its own best source of documentation. What follows here are some additional notes. Degree&#8230;<\/p>\n","protected":false},"author":1486,"featured_media":0,"parent":32233,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/32291"}],"collection":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/users\/1486"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/comments?post=32291"}],"version-history":[{"count":5,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/32291\/revisions"}],"predecessor-version":[{"id":89502,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/32291\/revisions\/89502"}],"up":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/32233"}],"wp:attachment":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/media?parent=32291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}