{"id":3550,"date":"2020-04-11T07:36:42","date_gmt":"2020-04-11T07:36:42","guid":{"rendered":"https:\/\/cloudminister.com\/?p=3550"},"modified":"2020-04-11T07:36:42","modified_gmt":"2020-04-11T07:36:42","slug":"permission-in-linux-unix-with-example","status":"publish","type":"post","link":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/","title":{"rendered":"Understanding and learning file permissions in Linux OS"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3550\" class=\"elementor elementor-3550\">\n\t\t\t\t\t\t<section class=\"no-position  elementor-section elementor-top-section elementor-element elementor-element-7cc6aff6 elementor-section-boxed elementor-section-height-default elementor-section-height-default gsap-move-no rs-tween_max_btn-no\" data-id=\"7cc6aff6\" 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-362493fc gsap-move-no rs-tween_max_btn-no\" data-id=\"362493fc\" 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-17f337c7 gsap-move-no rs-tween_max_btn-no elementor-widget elementor-widget-text-editor\" data-id=\"17f337c7\" 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<h1>Why do we use file permission in Linux\/Unix?&nbsp;<\/h1>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><span style=\"font-weight: 400;\">Linux is a clone of UNIX operating system, it is a multi-user operating system, which can be accessed by many users at a time.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><span style=\"font-weight: 400;\">Because of this , it raises the question on its security, that it can be easily corrupted or any one can change or remove the crucial data.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><span style=\"font-weight: 400;\">So, taking care of the security.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Linux divides authorisation level into 2 levels<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><span style=\"font-weight: 400;\">1&#8230;Ownership<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><span style=\"font-weight: 400;\">2&#8230;Permissions<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><b>Ownership&nbsp;<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><span style=\"font-weight: 400;\">In linux the system is allocated 3 types of owner<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><span style=\"font-weight: 400;\">\u2192 First one is \u201c<strong>User<\/strong>\u201d<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-weight: 400;\">Owner of the file.<\/span><span style=\"font-weight: 400;\">The person who creates the file is called the owner.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u2192 Second one is \u201c<strong>Group<\/strong>\u201d<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;In a group there can be multiple users we can put multiple users in a group and assign the same file permission.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><span style=\"font-weight: 400;\">\u2192 Third one is \u201c<strong>other<\/strong>\u201d<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span style=\"font-weight: 400;\">Other can be anybody except user &amp; group<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">&nbsp;<\/span><b>&nbsp;Permissions<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><span style=\"font-weight: 400;\">For every user, group &amp; other there their is set permission<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><strong>Read&nbsp;<\/strong><\/li>\n<li style=\"font-weight: 400;\"><strong>Write&nbsp;<\/strong><\/li>\n<li style=\"font-weight: 400;\"><strong>Execute<\/strong><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">User \u2192 rwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Group \u2192 rwx&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (-) \u2192 file -rw-rwxrw-<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Other \u2192 rwx &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (d) \u2192 directory drw-rwxrwxrw-<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Read &#8211; Gives the permission to read the file,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&nbsp;<\/span><span style=\"font-weight: 400;\">Write &#8211; Gives the permission to modify the file it gives the authority to add ,remove ,rename the file which is stored in the directory.<\/span><\/p>\n<p dir=\"ltr\"><span style=\"font-weight: 400;\">&nbsp;<\/span><span style=\"font-weight: 400;\">Execute &#8211; we cannot open the file if the execute permission is not given to the file.<\/span><\/p>\n<p dir=\"ltr\">Example:- <img decoding=\"async\" class=\"alignnone wp-image-3552 size-medium\" src=\"https:\/\/cloudminister.com\/wp-content\/uploads\/2020\/04\/pasted-image-0-300x40.png\" alt=\"Understanding and learning file permissions in Linux OS\" width=\"300\" height=\"40\"><\/p>\n<div dir=\"ltr\" align=\"left\">\n<table>\n<colgroup>\n<col width=\"154\">\n<col width=\"497\"><\/colgroup>\n<tbody>\n<tr>\n<td>\n<p dir=\"ltr\">(d)\/(-)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Show directory or file if directory (d) sign shows in starting<\/p>\n<p dir=\"ltr\">If file (-) hyphen sign show in starting<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">first (rwx)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Permission of user (read,write,execute)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">Second (r-x)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Permission of group (read,-,execute)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">Third (r-x)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Permission of other (read,-,execute)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">r<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">r&nbsp; refer to&nbsp; read permission<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">w<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">w&nbsp; refer to write permission<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">X<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">x&nbsp; refer to execute permission<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p dir=\"ltr\">Give permission to file and directory has two way<br>\n1. Symbolic method<br>\n2. Octal method \/ numerical method<\/p>\n<p dir=\"ltr\">(chmod) command use to change permission<\/p>\n<p dir=\"ltr\">Default permission of file :-<\/p>\n<h3><strong>Symbolic method<\/strong><\/h3>\n<p dir=\"ltr\">Symbolic method is used alphabets to set permission.<\/p>\n<p>&nbsp;<\/p>\n<div dir=\"ltr\" align=\"left\">\n<table>\n<colgroup>\n<col width=\"127\">\n<col width=\"497\"><\/colgroup>\n<tbody>\n<tr>\n<td>\n<p dir=\"ltr\">u<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">u refer to user<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">g<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">g refer to group<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">o<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">o refer to other<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">(+)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Use to add permission<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">(-)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Use to remove permission<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">(=)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Use to overwrite permission<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">Examples:-<\/p>\n<p dir=\"ltr\">Create \u201cmydir\u201d directory<br>\n1. add&nbsp; write permissions to group on mydir (# chmod g+w mydir)<\/p>\n<p dir=\"ltr\">&nbsp;&nbsp;&nbsp; <img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-3581\" src=\"https:\/\/cloudminister.com\/wp-content\/uploads\/2020\/04\/Screenshot-17-300x93.png\" alt=\"Understanding and learning file permissions in Linux OS\" width=\"432\" height=\"134\"><br>\n2. Give only execute permission to other (# chmod o=x mydir)<\/p>\n<p dir=\"ltr\"><img decoding=\"async\" class=\"alignnone wp-image-3582\" src=\"https:\/\/cloudminister.com\/wp-content\/uploads\/2020\/04\/Screenshot-18-300x109.png\" alt=\"Understanding and learning file permissions in Linux OS\" width=\"446\" height=\"162\"><\/p>\n<p>3. Remove write permissions to user (# chmod u-w mydir)<\/p>\n<p dir=\"ltr\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3580\" src=\"https:\/\/cloudminister.com\/wp-content\/uploads\/2020\/04\/Screenshot-16-300x71.png\" alt=\"Understanding and learning file permissions in Linux OS\" width=\"452\" height=\"107\"><\/p>\n<h3><strong>Octal or numeric method<\/strong><\/h3>\n<p dir=\"ltr\">Octal method use numbers to set permission<\/p>\n<p>&nbsp;<\/p>\n<div dir=\"ltr\" align=\"left\">\n<table>\n<colgroup>\n<col width=\"83\">\n<col width=\"260\">\n<col width=\"280\"><\/colgroup>\n<tbody>\n<tr>\n<td>\n<p dir=\"ltr\">0<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">(&#8212;)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">No permission<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">1<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">(&#8211;x)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Execute permission<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">2<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">(-w-)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Write permission<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">3<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">(-wx)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Write and execute permission<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">4<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">(r&#8211;)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Read-only permission<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">5<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">(r-x)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Read &amp; execute permission<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">6<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">(rw-)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">Read &amp; write permission<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p dir=\"ltr\">7<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">(rwx)<\/p>\n<\/td>\n<td>\n<p dir=\"ltr\">All permission<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">example:- use octal method to give permission<\/p>\n<p dir=\"ltr\">chmod user|group|other file\/directory path<br>\n1. # chmod 755 mydir (this command give permission to mydir user have all permissions, group &amp; other have only read and execute permission.)<\/p>\n<p dir=\"ltr\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3583\" src=\"https:\/\/cloudminister.com\/wp-content\/uploads\/2020\/04\/Screenshot-19-300x81.png\" alt=\"Understanding and learning file permissions in Linux OS\" width=\"485\" height=\"131\"><\/p>\n<h3>Special permission<\/h3>\n<p>1. Setuid (set user id)<br>\n2. Setgid (set group id)<br>\n3. Sticky bit<\/p>\n<p dir=\"ltr\">1. <strong>setuid :-<\/strong> setuid is the permission bit that allows the user to execute a command\/ program with the permission of its owner. Setuid permission are used to tell the system to run an executable file as the owner with the owner\u2019s permission.<\/p>\n<p dir=\"ltr\">Symbolic method to setuid &#8212;&gt;# chmod u+s file_name (This command use to setuid bit on file)<\/p>\n<p dir=\"ltr\">Octal method to setuid &#8212;&gt;# chmod 4766 file_name (This command use to setuid bit using&nbsp; octal method)<\/p>\n<p dir=\"ltr\">Remove setuid bit &#8212;&gt;# chmod u-s file_name (This command use to remove the setuid bit form file)<\/p>\n<p dir=\"ltr\">2.<strong> Setgid<\/strong> :- setgid is a bit that allows the user to execute a program with the permission of the group owner.<\/p>\n<p dir=\"ltr\">Symbolic method to setgid&nbsp; &#8212;&gt;# chmod g+s file_name (This command use to setgid bit on file)<\/p>\n<p dir=\"ltr\">Octal method to setgid &#8212;&gt;# chmod 2766 file_name (This command use to setgid bit using octal method)<\/p>\n<p dir=\"ltr\">Remove setgid bit &#8212;&gt; # chmod g-s file_name&nbsp; (This command use to remove the setuid bit form file)<\/p>\n<p dir=\"ltr\">3. <strong>Sticky bits<\/strong> :- A sticky bit is a permission bit that is set on a directory that allows only the owner of the file within that directory or the root user to delete or rename the file. No other user has the needed privileges to delete the file created by some other user.<\/p>\n<p dir=\"ltr\">Symbolic method to set sticky bit&nbsp; &#8212;&gt;# chmod +t file_name (This command use to set the sticky bit on file and directory)<\/p>\n<p dir=\"ltr\">Octal method to set sticky bit &#8212;&gt;# chmod 7660 file_name (This command use to set stickybit using octal method)<\/p>\n<p dir=\"ltr\">Remove sticky bit &#8212;&gt; # chmod -t file_name&nbsp; (This command use to remove the sticky bit)<\/p>\n<h3>Conclusion:<\/h3>\n<p>By following this tutorial you will learn what are the permissions as well as special permission in Linux\/Unix.<\/p>\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>In this article, we will discuss, Why do we use file permission in Linux\/Unix? Linux is a clone of the UNIX operating system, it is a multi-user operating system, which can be accessed by many users at a time. Because of this, it raises the question of its security, that it can be easily corrupted&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4692,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[90,59,62,66],"tags":[102,103,104,105,106,107,108,109,110,111,112,113,114,115],"class_list":["post-3550","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-beginner","category-general","category-how-to","category-technology","tag-linux-permission","tag-linux-setgid","tag-linux-setuid","tag-linux-sticky-bit","tag-permission-in-linux","tag-setgid","tag-setgid-in-linux","tag-setuid","tag-setuid-in-linux","tag-sticky-bit-in-linux","tag-sticky-bit-linux","tag-sticky-bits","tag-understanding-and-learning-file-permissions-in-linux-os","tag-user-group-other"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"Why do we use file permission in Linux\/Unix? Linux is a clone of UNIX operating system, it is a multi-user operating system, which can be accessed by many users at a time. Because of this , it raises the question on its security, that it can be easily corrupted or any one can change or\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Tanuj Chugh\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"CloudMinister -\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Understanding and learning file permissions in Linux OS - CloudMinister\" \/>\n\t\t<meta property=\"og:description\" content=\"Why do we use file permission in Linux\/Unix? Linux is a clone of UNIX operating system, it is a multi-user operating system, which can be accessed by many users at a time. Because of this , it raises the question on its security, that it can be easily corrupted or any one can change or\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-04-11T07:36:42+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-04-11T07:36:42+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Understanding and learning file permissions in Linux OS - CloudMinister\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Why do we use file permission in Linux\/Unix? Linux is a clone of UNIX operating system, it is a multi-user operating system, which can be accessed by many users at a time. Because of this , it raises the question on its security, that it can be easily corrupted or any one can change or\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/permission-in-linux-unix-with-example\\\/#blogposting\",\"name\":\"Understanding and learning file permissions in Linux OS - CloudMinister\",\"headline\":\"Understanding and learning file permissions in Linux OS\",\"author\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/author\\\/tanuj-chugh\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/c2-1-1.jpg\",\"width\":600,\"height\":400,\"caption\":\"Linux Shared Hosting, Linux Reseller Hosting, Domains and Hosting, SSD Storage, Shared hosting functionality\"},\"datePublished\":\"2020-04-11T07:36:42+00:00\",\"dateModified\":\"2020-04-11T07:36:42+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/permission-in-linux-unix-with-example\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/permission-in-linux-unix-with-example\\\/#webpage\"},\"articleSection\":\"Beginner, General, How tos, Linux, linux permission, linux setgid, linux setuid, linux sticky bit, permission in linux, setgid, setgid in linux, setuid, setuid in linux, sticky bit in linux, sticky bit linux, sticky bits, Understanding and learning file permissions in Linux OS, user group other\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/permission-in-linux-unix-with-example\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/category\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/category\\\/general\\\/#listItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/category\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/permission-in-linux-unix-with-example\\\/#listItem\",\"name\":\"Understanding and learning file permissions in Linux OS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/permission-in-linux-unix-with-example\\\/#listItem\",\"position\":3,\"name\":\"Understanding and learning file permissions in Linux OS\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/category\\\/general\\\/#listItem\",\"name\":\"General\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#organization\",\"name\":\"CloudMinister\",\"url\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/author\\\/tanuj-chugh\\\/#author\",\"url\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/author\\\/tanuj-chugh\\\/\",\"name\":\"Tanuj Chugh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/permission-in-linux-unix-with-example\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3395bcaf63eb5840dd73f67c7cb69ffd3dfe33336c1bdb1f1b9aeabe5b05e15a?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Tanuj Chugh\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/permission-in-linux-unix-with-example\\\/#webpage\",\"url\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/permission-in-linux-unix-with-example\\\/\",\"name\":\"Understanding and learning file permissions in Linux OS - CloudMinister\",\"description\":\"Why do we use file permission in Linux\\\/Unix? Linux is a clone of UNIX operating system, it is a multi-user operating system, which can be accessed by many users at a time. Because of this , it raises the question on its security, that it can be easily corrupted or any one can change or\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/permission-in-linux-unix-with-example\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/author\\\/tanuj-chugh\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/author\\\/tanuj-chugh\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/c2-1-1.jpg\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/permission-in-linux-unix-with-example\\\/#mainImage\",\"width\":600,\"height\":400,\"caption\":\"Linux Shared Hosting, Linux Reseller Hosting, Domains and Hosting, SSD Storage, Shared hosting functionality\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/permission-in-linux-unix-with-example\\\/#mainImage\"},\"datePublished\":\"2020-04-11T07:36:42+00:00\",\"dateModified\":\"2020-04-11T07:36:42+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/\",\"name\":\"CloudMinister\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Understanding and learning file permissions in Linux OS - CloudMinister","description":"Why do we use file permission in Linux\/Unix? Linux is a clone of UNIX operating system, it is a multi-user operating system, which can be accessed by many users at a time. Because of this , it raises the question on its security, that it can be easily corrupted or any one can change or","canonical_url":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/#blogposting","name":"Understanding and learning file permissions in Linux OS - CloudMinister","headline":"Understanding and learning file permissions in Linux OS","author":{"@id":"https:\/\/cloudminister.com\/blog\/author\/tanuj-chugh\/#author"},"publisher":{"@id":"https:\/\/cloudminister.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/cloudminister.com\/blog\/wp-content\/uploads\/2020\/04\/c2-1-1.jpg","width":600,"height":400,"caption":"Linux Shared Hosting, Linux Reseller Hosting, Domains and Hosting, SSD Storage, Shared hosting functionality"},"datePublished":"2020-04-11T07:36:42+00:00","dateModified":"2020-04-11T07:36:42+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/#webpage"},"isPartOf":{"@id":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/#webpage"},"articleSection":"Beginner, General, How tos, Linux, linux permission, linux setgid, linux setuid, linux sticky bit, permission in linux, setgid, setgid in linux, setuid, setuid in linux, sticky bit in linux, sticky bit linux, sticky bits, Understanding and learning file permissions in Linux OS, user group other"},{"@type":"BreadcrumbList","@id":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/cloudminister.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/category\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/category\/general\/#listItem","position":2,"name":"General","item":"https:\/\/cloudminister.com\/blog\/category\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/#listItem","name":"Understanding and learning file permissions in Linux OS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/#listItem","position":3,"name":"Understanding and learning file permissions in Linux OS","previousItem":{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/category\/general\/#listItem","name":"General"}}]},{"@type":"Organization","@id":"https:\/\/cloudminister.com\/blog\/#organization","name":"CloudMinister","url":"https:\/\/cloudminister.com\/blog\/"},{"@type":"Person","@id":"https:\/\/cloudminister.com\/blog\/author\/tanuj-chugh\/#author","url":"https:\/\/cloudminister.com\/blog\/author\/tanuj-chugh\/","name":"Tanuj Chugh","image":{"@type":"ImageObject","@id":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/3395bcaf63eb5840dd73f67c7cb69ffd3dfe33336c1bdb1f1b9aeabe5b05e15a?s=96&d=mm&r=g","width":96,"height":96,"caption":"Tanuj Chugh"}},{"@type":"WebPage","@id":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/#webpage","url":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/","name":"Understanding and learning file permissions in Linux OS - CloudMinister","description":"Why do we use file permission in Linux\/Unix? Linux is a clone of UNIX operating system, it is a multi-user operating system, which can be accessed by many users at a time. Because of this , it raises the question on its security, that it can be easily corrupted or any one can change or","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/cloudminister.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/#breadcrumblist"},"author":{"@id":"https:\/\/cloudminister.com\/blog\/author\/tanuj-chugh\/#author"},"creator":{"@id":"https:\/\/cloudminister.com\/blog\/author\/tanuj-chugh\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/cloudminister.com\/blog\/wp-content\/uploads\/2020\/04\/c2-1-1.jpg","@id":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/#mainImage","width":600,"height":400,"caption":"Linux Shared Hosting, Linux Reseller Hosting, Domains and Hosting, SSD Storage, Shared hosting functionality"},"primaryImageOfPage":{"@id":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/#mainImage"},"datePublished":"2020-04-11T07:36:42+00:00","dateModified":"2020-04-11T07:36:42+00:00"},{"@type":"WebSite","@id":"https:\/\/cloudminister.com\/blog\/#website","url":"https:\/\/cloudminister.com\/blog\/","name":"CloudMinister","inLanguage":"en-US","publisher":{"@id":"https:\/\/cloudminister.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"CloudMinister -","og:type":"article","og:title":"Understanding and learning file permissions in Linux OS - CloudMinister","og:description":"Why do we use file permission in Linux\/Unix? Linux is a clone of UNIX operating system, it is a multi-user operating system, which can be accessed by many users at a time. Because of this , it raises the question on its security, that it can be easily corrupted or any one can change or","og:url":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/","article:published_time":"2020-04-11T07:36:42+00:00","article:modified_time":"2020-04-11T07:36:42+00:00","twitter:card":"summary_large_image","twitter:title":"Understanding and learning file permissions in Linux OS - CloudMinister","twitter:description":"Why do we use file permission in Linux\/Unix? Linux is a clone of UNIX operating system, it is a multi-user operating system, which can be accessed by many users at a time. Because of this , it raises the question on its security, that it can be easily corrupted or any one can change or"},"aioseo_meta_data":{"post_id":"3550","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2025-05-21 07:22:06","updated":"2025-08-07 04:49:28","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cloudminister.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cloudminister.com\/blog\/category\/general\/\" title=\"General\">General<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tUnderstanding and learning file permissions in Linux OS\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/cloudminister.com\/blog\/"},{"label":"General","link":"https:\/\/cloudminister.com\/blog\/category\/general\/"},{"label":"Understanding and learning file permissions in Linux OS","link":"https:\/\/cloudminister.com\/blog\/permission-in-linux-unix-with-example\/"}],"_links":{"self":[{"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/posts\/3550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/comments?post=3550"}],"version-history":[{"count":0,"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/posts\/3550\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/media\/4692"}],"wp:attachment":[{"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/media?parent=3550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/categories?post=3550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/tags?post=3550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}