{"id":1768,"date":"2016-05-10T14:44:23","date_gmt":"2016-05-10T22:44:23","guid":{"rendered":"http:\/\/systemsolver.com\/StatlerBlog\/?p=1768"},"modified":"2016-05-10T14:44:23","modified_gmt":"2016-05-10T22:44:23","slug":"linux-commands-for-me","status":"publish","type":"post","link":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/2016\/05\/10\/linux-commands-for-me\/","title":{"rendered":"Linux commands for me"},"content":{"rendered":"<p>To add user to a group<\/p>\n<p>useradd -g group user<\/p>\n<p>id user<\/p>\n<p>&nbsp;<\/p>\n<p>To cause all future folders and files created in <span style=\"font-family: Courier New;\">\/samba\/founders<\/span> to be owned by the &#8220;<span style=\"font-family: Courier New;\">founders<\/span>&#8221; group, do the following<\/p>\n<p class=\"bbcodeblock\" dir=\"ltr\"><code>chgrp founders \/samba\/founders &amp;&amp; chmod g+s \/samba\/founders<\/code><\/p>\n<p class=\"bbcodeblock\" dir=\"ltr\">Change permissions in all sub folders and files<\/p>\n<p><code>chmod -R 755 directory-name\/<\/code><\/p>\n<p>read = 4<br \/>\nwrite = 2<br \/>\nexecute = 1<\/p>\n<p>so:<br \/>\nr&#8211; = 4<br \/>\nrw- = 6<br \/>\nrwx = 7<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To add user to a group useradd -g group user id user &nbsp; To cause all future folders and files created in \/samba\/founders to be owned by the &#8220;founders&#8221; group, do the following chgrp founders \/samba\/founders &amp;&amp; chmod g+s \/samba\/founders Change permissions in all sub folders and files chmod -R 755 directory-name\/ read = 4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1768","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/1768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/comments?post=1768"}],"version-history":[{"count":0,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/1768\/revisions"}],"wp:attachment":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/media?parent=1768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/categories?post=1768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/tags?post=1768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}