{"id":11078,"date":"2019-09-02T14:09:56","date_gmt":"2019-09-02T14:09:56","guid":{"rendered":"https:\/\/ittutorial.org\/?p=11078"},"modified":"2019-11-28T08:18:37","modified_gmt":"2019-11-28T08:18:37","slug":"linux-lessons-4-users-groups","status":"publish","type":"post","link":"https:\/\/ittutorial.org\/linux-lessons-4-users-groups\/","title":{"rendered":"GNU\/Linux Bash Commands Lessons \u2013 4 Users &#038; Groups"},"content":{"rendered":"<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">Hello, We continue to post Users &amp; Groups.<\/span><\/span>\u00a0\u00a0 <span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">In the previous article, we have made a start on this topic, now we will examine this issue a little more.<\/span><\/span><\/p>\n<h3><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">Changing User and Group:<\/span><\/span><\/h3>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">In the previous lesson we understood what users and groups mean, and now we will try to make changes to them.<\/span><\/span><\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">A file, directory, and so on.<\/span> <span title=\"\">We said that the user who created it becomes its owner.<\/span><\/span><\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">However, we may need to change the owner or group later (when installing an application, it may require an application-specific user and group)<\/span><\/span>.<\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span title=\"\">So let&#8217;s move on to the example.<br \/>\n<\/span><\/span><\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">Our keyword <strong>chown <\/strong><\/span><\/span><\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">This command has more than one parameter, you can change only the owner, you can change both the group and the owner if you want only the group.<\/span><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9857 loaded\" src=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/06\/Screenshot_9-300x161.png\" alt=\"\" width=\"606\" height=\"325\" srcset=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/06\/Screenshot_9-300x161.png 300w, https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/06\/Screenshot_9.png 673w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">With a few examples we can understand more nicely.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<pre>chown root Music\/<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9861 loaded\" src=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/06\/Screenshot_11-300x209.png\" alt=\"\" width=\"491\" height=\"342\" srcset=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/06\/Screenshot_11-300x209.png 300w, https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/06\/Screenshot_11-392x272.png 392w, https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/06\/Screenshot_11-130x90.png 130w, https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/06\/Screenshot_11.png 610w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">As we have seen, we have changed the user of the Music directory now let&#8217;s change the group and user at the same time.<\/span><\/span><\/p>\n<pre>chown root:root Documents\/<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9862 loaded\" src=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/06\/Screenshot_12-300x198.png\" alt=\"\" width=\"559\" height=\"369\" srcset=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/06\/Screenshot_12-300x198.png 300w, https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/06\/Screenshot_12.png 577w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">We changed both the user and group of the directory with a single command.<\/span><\/span><\/p>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">If we just wanted to change the group<\/span><\/span>,<\/p>\n<pre>chown :root Music\/\r\n<\/pre>\n<p><span class=\"tlid-translation translation\" lang=\"en\"><span title=\"\">In our next post we will do file permission procedures, see you later<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;&nbsp;<\/p>\n<h4><span style=\"color: #ff0000;\">Do you want to learn Linux System Administration for Beginners, then read the following articles.<\/span><\/h4>\n<p><a href=\"https:\/\/ittutorial.org\/linux-administration-tutorial-for-beginners\/\">https:\/\/ittutorial.org\/linux-administration-tutorial-for-beginners\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello, We continue to post Users &amp; Groups.\u00a0\u00a0 In the previous article, we have made a start on this topic, now we will examine this issue a little more. Changing User and Group: In the previous lesson we understood what users and groups mean, and now we will try to make changes to them. A &hellip;<\/p>\n","protected":false},"author":67,"featured_media":8840,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[5679,4820,4819,4844,4099,4109,4826,4839,4822,198,4865,5678,4111,5658,5659,4104,5680,5690,5681,5638,4861,4855,771,5644,5656,5657,4854,5637,4102,959,4818,4843,4098,4097,4049,4828,4823,4824,5660,4094,4866,4038,4846,4092,4091,4103,4040,4827,5634,4101,5649,4105,4107,4864,4837,4055,978,4856,4852,4110,4840,4845,5632,5639,5633,4821,4858,4851,4849,4108,4829,4848,5687,5635,4096,4095,4831,2674,4093,4817,4830,4833,4832,5688,4106,4841,5648,5650,4836,5645,4853,5643,5655,5654,5653,4859,4857,5641,5640,4850,4847,5651,5652,5676,5677,5636,4863,5647,5646,4860,4862,1795,4100,1797,4034,4825,4838,4834,4835,1899,5642,5682,5686,5683,5689,5684,5685,4842],"class_list":["post-11078","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-linux","tag-etc-sudoers","tag-acces-control-list","tag-acl-on-linux","tag-apt-get-on-linux","tag-bash-script","tag-beginer-on-linux","tag-best-linux-command","tag-best-text-editors-on-linux","tag-chown","tag-cok-kullanilan-linux-komutlari","tag-disk-partitioning-volume-management","tag-edit-sudoers","tag-en-cok-kullanilan-linux","tag-free-command","tag-free-command-on-linux","tag-help-kullanimi","tag-how-can-i-add-user-to-sudoers","tag-how-can-i-run-sudo-command","tag-how-i-add-sudoers","tag-htop-command","tag-htop-usage-on-linux","tag-ifconfig-linux","tag-iostat","tag-iostat-on-linux","tag-ipcs-command-on-linux","tag-ipcs-linux","tag-iptables-on-linux","tag-ksar","tag-learn-linux","tag-linux","tag-linux-acl","tag-linux-apt-get","tag-linux-bash","tag-linux-basic-commands","tag-linux-basic-documentation","tag-linux-best-practice","tag-linux-chmod","tag-linux-chown","tag-linux-command-free","tag-linux-commands","tag-linux-disk-partition-and-volume","tag-linux-documentation","tag-linux-enviroment","tag-linux-file-system-structer","tag-linux-file-system","tag-linux-help","tag-linux-help-kullanimi","tag-linux-komut-kullanimi","tag-linux-ksar","tag-linux-learn","tag-linux-lsof","tag-linux-man","tag-linux-man-kullanimi","tag-linux-monitoring","tag-linux-nano-use","tag-linux-nasil-kullanilir","tag-linux-nedir","tag-linux-network-commands","tag-linux-network-settings","tag-linux-ogrenmek","tag-linux-package-management","tag-linux-packages","tag-linux-performance-management","tag-linux-performance-monitoring","tag-linux-performance-tools","tag-linux-permission","tag-linux-process-management","tag-linux-scheduled","tag-linux-scheduled-tasks","tag-linux-scripting","tag-linux-security","tag-linux-shell","tag-linux-sudoers-file","tag-linux-sysstat","tag-linux-terminal","tag-linux-terminal-kullanimi","tag-linux-text-edstor","tag-linux-tutorial","tag-linux-tutorial-series","tag-linux-users-groups","tag-linux-users-and-groups","tag-linux-vi","tag-linux-vim","tag-linux-wheel-group","tag-linux-yardim-alma","tag-linux-yum","tag-lsof-command","tag-lsof-on-linux-command","tag-nano","tag-netstat-command","tag-network-settings-on-linux","tag-oswatcher-on-lnux","tag-performance-command-pmap","tag-pmap-comman-linux","tag-pmap-command","tag-process-management-command","tag-process-management-on-linux","tag-ps-ef-command-on-linux","tag-ps-command-on-linux","tag-schedule","tag-shell-enviroment","tag-strace-linux","tag-strace-performance-linux","tag-sudo","tag-sudoers-file","tag-sysstat","tag-sysstat-on-linux","tag-tcpdump","tag-tcpdump-using-on-linux","tag-top-command","tag-top-usage-on-linux","tag-unix","tag-unix-bash-script","tag-unix-ders-notu","tag-unix-dersleri","tag-unix-scripting","tag-use-nano-on-linux","tag-vi-on-linux","tag-vim-on-linux","tag-vmstat","tag-vmstat-on-linux","tag-what-is-sudoers","tag-wheel-group","tag-where-is-sudoers-file","tag-where-is-wheel","tag-why-sudo-command-not-found","tag-why-sudo-command-not-run","tag-yum-on-linux"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/05\/proxy.duckduckgo.com_.jpg","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/11078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/comments?post=11078"}],"version-history":[{"count":4,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/11078\/revisions"}],"predecessor-version":[{"id":13018,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/11078\/revisions\/13018"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/media\/8840"}],"wp:attachment":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/media?parent=11078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/categories?post=11078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/tags?post=11078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}