{"id":203,"date":"2019-01-14T12:55:36","date_gmt":"2019-01-14T17:55:36","guid":{"rendered":"https:\/\/wordpress.cs.rutgers.edu\/resources-cs-rutgers-edu\/?page_id=203"},"modified":"2026-10-21T15:00:32","modified_gmt":"2026-10-21T19:00:32","slug":"sharing-directories","status":"publish","type":"page","link":"https:\/\/wordpress.cs.rutgers.edu\/resources-cs-rutgers-edu\/docs\/file-storage\/sharing-directories\/","title":{"rendered":"Sharing Directories"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"203\" class=\"elementor elementor-203\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-21bd4dfa elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"21bd4dfa\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-23cf5fd7\" data-id=\"23cf5fd7\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2fcc8c03 elementor-widget elementor-widget-text-editor\" data-id=\"2fcc8c03\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div id=\"content-head\" class=\"row-fluid content-head\"><h2 id=\"page-title\" class=\"title\">Making a Directory You Can Share With Members of Your Project<\/h2><\/div><div id=\"content-top\" class=\"row-fluid content-top\"><div class=\"region region-content-top clearfix\"><div id=\"block-system-main\" class=\"clearfix block block-system\"><div class=\"content\"><article id=\"node-13624\" class=\"node node-resource-page clearfix\"><div class=\"content\"><div class=\"field field-name-body field-type-text-with-summary field-label-hidden\"><div class=\"field-items\"><div class=\"field-item even\"><p>This document shows you how to make a directory and share it with members of your project in\u00a0 <code>\/common\/users\/shared\/<i>GROUPNAME<\/i><\/code>.<\/p><p>Please remember that any files you store count against your <code>\/common\/users\/<i>NETID<\/i><\/code> quota. See <a href=\"https:\/\/resources.cs.rutgers.edu\/docs\/file-storage\/storage-technology-options\/\" target=\"_blank\" rel=\"noopener\">Storage Technology Options<\/a> for the disk quota and information about our storage system.<\/p><p>Here are the steps to follow:<\/p><details><summary><strong>1. Create Appropriate Groups<\/strong><\/summary><p style=\"padding-left: 40px\">You&#8217;ll need to create a user group for your team. You can pick the group name. Please don&#8217;t use names starting with any of the following:<br \/><code>login, disabled, slide, cs, dept<\/code>.<br \/>These are reserved for system use. If you do, our software may take over without warning and drop you and your members.<\/p><p style=\"padding-left: 40px\">Recommendations for group names. (You can use some others, but these are safest.)<\/p><ul><li style=\"list-style-type: none\"><ul><li>Must start with a-z or _<\/li><li>Characters after the first may also be digits or hyphens<\/li><li>No longer than 32 characters<\/li><\/ul><\/li><\/ul><p style=\"padding-left: 40px\">Here are the most common operations on groups with the group name <em>GROUPNAME<\/em> using command lines.<\/p><p style=\"padding-left: 40px\">&#8211; Create group: <code>ipa group-add GROUPNAME<\/code><br \/>&#8211; Delete group: <code>ipa group-del GROUPNAME<\/code> [you&#8217;ll get an error message, but the deletion still happens]<br \/>&#8211; Add someone to the group (don&#8217;t forget to add yourself): <code>ipa group-add-member GROUPNAME --users=NETID<\/code><br \/>&#8211; Remove someone from the group: <code>ipa group-remove-member GROUPNAME --users=NETID<\/code><br \/>&#8211; To <em>look at the group and its members<\/em>: <code>ipa group-show GROUPNAME<\/code><br \/>&#8211; To <em>see what groups you are in<\/em>: <code>groups<\/code> [if you add someone to a group, they won&#8217;t see it until the next time they log in]<br \/>&#8211; Another way to see information about yourself: <code>ipa user-show NETID<\/code> [this may show groups that the <code>groups<\/code> command doesn&#8217;t, because some groups are, in effect, invisible]<\/p><hr \/><p style=\"padding-left: 40px\"><strong>NOTE<\/strong>: The new group may be available for 15-20 minutes<em>. Continue to Step 2 below once you know the group is available.<\/em><\/p><hr \/><\/details><details><summary><strong>2. Making a Shared Directory<\/strong><\/summary><p style=\"padding-left: 40px\">Once you have a group for your team, here are the commands to make a shared directory. We have allocated a directory for sharing at <em>\/common\/users\/shared<\/em> to simplify the process. We recommend you name the directory the same as your <em>GROUPNAME<\/em>. Here are the steps:<\/p><p style=\"padding-left: 40px\"><code>mkdir \/common\/users\/shared\/GROUPNAME<br \/>chgrp GROUPNAME \/common\/users\/shared\/GROUPNAME<br \/>chmod 2770 \/common\/users\/shared\/GROUPNAME<\/code><\/p><p style=\"padding-left: 40px\">Here&#8217;s what the commands do:<\/p><p style=\"padding-left: 40px\">-The <code>mkdir<\/code> command makes the directory in <em>\/common\/users\/shared <\/em>with <em>GROUPNAME.<\/em><br \/>&#8211; The <code>chgrp<\/code> command sets it so your group can access the <em>\/common\/users\/shared\/GROUPNAME<\/em>\u00a0directory.<br \/>&#8211; The <code>chmod<\/code> command sets the permissions to let your group members look at, create, and delete files in the directory. The leading two ensure that any files or subdirectories created inherit the group.<\/p><p style=\"padding-left: 40px\">Verifying what was done using <code>ls -ld<\/code>, the output should look like this:<\/p><div style=\"padding-left: 40px\"><code>drwxrws--- 2 NETID GROUPNAME 10 Sep 25 14:04 \/common\/users\/shared\/GROUPNAME\/<\/code><\/div><div style=\"padding-left: 40px\">The critical part of the output is the <code>drwxrws---<\/code> which gives the <em>GROUPNAME<\/em> directory full access to <em>GROUPNAME<\/em> members.<\/div><div>\u00a0<\/div><\/details><details><summary><strong>3. Setting Access to File Inside Shared directory<\/strong><\/summary><p style=\"padding-left: 40px\">Any file you created in <em>\/common\/users\/shared\/GROUPNAME<\/em> will be visible to <em>GROUPNAME,<\/em> but it does not mean the file is readable or writeable to your group members. If you need everyone in the <em>GROUPNAME<\/em> to be able to <strong>read\/write<\/strong> the file, you&#8217;ll have to make sure <em>GROUPNAME<\/em> can do so. For suppose you want an existing file <em>\/common\/users\/shared\/GROUPNAME\/file2share<\/em> to be set so that <em>GROUPNAME<\/em> member can read\/write it, do the following:<\/p><p style=\"padding-left: 40px\"><code>cd \/common\/users\/shared\/GROUPNAME<br \/>chmod 660 <strong>file2share<\/strong><\/code><\/p><p style=\"padding-left: 40px\">Verify using<code> ls -l .<\/code> The output should look like this:<\/p><p style=\"padding-left: 40px\"><code>-rw-<strong>rw<\/strong>---- 1 NETID\u00a0GROUPNAME 175 Sep 7 12:52 file2share<\/code><\/p><p style=\"padding-left: 40px\">The critical part of the output is the second &#8220;rw&#8221;. That applies to other members of your group. The last three characters, &#8220;&#8212;&#8221; are for people not in your group without access to the file.<\/p><\/details><details><summary><strong>4. Accessing Files inside Share Directory<\/strong><\/summary><p style=\"padding-left: 40px\">Now that you have created a shared folder, members of <em>GROUPNAME<\/em> can access the files inside<em>\/common\/users\/shared\/GROUPNAME<\/em> using the following command:<\/p><p style=\"padding-left: 40px\"><code>cd \/common\/users\/shared\/GROUPNAME<\/code><\/p><\/details><\/div><\/div><\/div><\/div><\/article><\/div><\/div><\/div><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Making a Directory You Can Share With Members of Your Project This document shows you how to make a directory and share it with members of your project in\u00a0 \/common\/users\/shared\/GROUPNAME. Please remember that any files you store count against your \/common\/users\/NETID quota. See Storage Technology Options for the disk quota and information about our storage [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":463,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-203","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wordpress.cs.rutgers.edu\/resources-cs-rutgers-edu\/wp-json\/wp\/v2\/pages\/203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.cs.rutgers.edu\/resources-cs-rutgers-edu\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wordpress.cs.rutgers.edu\/resources-cs-rutgers-edu\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.cs.rutgers.edu\/resources-cs-rutgers-edu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.cs.rutgers.edu\/resources-cs-rutgers-edu\/wp-json\/wp\/v2\/comments?post=203"}],"version-history":[{"count":50,"href":"https:\/\/wordpress.cs.rutgers.edu\/resources-cs-rutgers-edu\/wp-json\/wp\/v2\/pages\/203\/revisions"}],"predecessor-version":[{"id":10926,"href":"https:\/\/wordpress.cs.rutgers.edu\/resources-cs-rutgers-edu\/wp-json\/wp\/v2\/pages\/203\/revisions\/10926"}],"up":[{"embeddable":true,"href":"https:\/\/wordpress.cs.rutgers.edu\/resources-cs-rutgers-edu\/wp-json\/wp\/v2\/pages\/463"}],"wp:attachment":[{"href":"https:\/\/wordpress.cs.rutgers.edu\/resources-cs-rutgers-edu\/wp-json\/wp\/v2\/media?parent=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}