
{"id":78,"date":"2014-06-19T13:32:27","date_gmt":"2014-06-19T13:32:27","guid":{"rendered":"http:\/\/pages.charlotte.edu\/mark-hamrick\/?p=78"},"modified":"2014-11-12T17:44:05","modified_gmt":"2014-11-12T17:44:05","slug":"creating-a-shared-file-on-a-mac-that-is-not-writable","status":"publish","type":"post","link":"https:\/\/pages.charlotte.edu\/mark-hamrick\/blog\/2014\/06\/19\/creating-a-shared-file-on-a-mac-that-is-not-writable\/","title":{"rendered":"Creating a Shared File on a MAC that is not writable"},"content":{"rendered":"<p>First, this must be done with root privledges.<\/p>\n<p>Open a terminal window and become root. Todo this on the terminal command line:<\/p>\n<pre><code>sudo bash\r\ncd \/\r\n<\/code><\/pre>\n<p>The system will then ask you for your password.<\/p>\n<p>Next, lets create a directory that is to be shared.<\/p>\n<pre><code>mkdir share\r\n<\/code><\/pre>\n<p>Then we will enter the directory:<\/p>\n<pre><code>cd share\r\n<\/code><\/pre>\n<p>Create a file, in this case I used vim to add the line &#8220;This is a test file&#8221; to a file called test.txt.<\/p>\n<pre><code>vim test.txt\r\n<\/code><\/pre>\n<p>To make this appear on every users desktop, you need to create a symlink in the system templates directory. Note, to get into the \/System\/Libary\/User_Template directory, it is best to \/System\/Library\/User\\ with a space on the end and hit tab to get the full directory.<\/p>\n<pre><code>cd \/System\/Library\/User\\ Template\/English.lproj\/Desktop\/\r\nln -s \/share\/test.txt\r\n<\/code><\/pre>\n<p>Now, when a user logs in, the link will be on there desktop. If the user tries to edit it, they will be forced to save a local copy.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First, this must be done with root privledges. Open a terminal window and become root. Todo this on the terminal command line: sudo bash cd \/ The system will then ask you for your password. Next, lets create a directory that is to be shared. mkdir share Then we will enter the directory: cd share [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-updates"],"_links":{"self":[{"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":2,"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":80,"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/posts\/78\/revisions\/80"}],"wp:attachment":[{"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}