{"id":848,"date":"2019-03-29T12:35:29","date_gmt":"2019-03-29T17:35:29","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=848"},"modified":"2019-03-29T12:35:29","modified_gmt":"2019-03-29T17:35:29","slug":"how-to-deny-file-permissions-to-everyone-except-yourself-in-linux","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/","title":{"rendered":"How to Deny File Permissions to Everyone Except Yourself in Linux"},"content":{"rendered":"<div id=\"linux-4063497967\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>&nbsp;<\/p>\n<p>The role of permissions and files is much clearer in Linux when compared to Windows. Most people find it easier to understand compared to the complex system of groups and users that we find in Windows&#8217; concept of permissions. For example, each file in a Linux-based operating system has three sets of permissions &#8211; the first being the permissions of the owner, the second being for a specific group of users, and the last group&#8217;s permissions are responsible for the rest of the system.<\/p>\n<p>The levels of access to reading, writing, and executing are then described with a scale, ranging from 1 to 7. A value of &#8216;1&#8217; allows for execution of the file, &#8216;2&#8217; allows writing access, and &#8216;4&#8217; allows the file to be read. To combine several permissions, you just add the numbers together. For example, if you want read and write access for a file, but no access to executing this file, the value to set for permissions would be 2 + 4, which is\u00a06.<\/p>\n<p>In this tutorial, we&#8217;ll see how to create a file in such a way that only the owner has full permissions over it. We&#8217;ll also see what happens when another user tries to read or modify that file. Finally, we&#8217;ll look at the role of &#8220;sudo&#8221; users who take on the root role for themselves, and how we can implement ironclad file security by hiding contents even from root if necessary.<\/p>\n<h2>Creating a File with &#8220;Owner Only&#8221; Permissions<\/h2>\n<p>Let&#8217;s say we have a file whose contents we want to have hidden from everyone else. In essence, others would be able to see that the file exists, and that&#8217;s about it. We don&#8217;t want them to see what&#8217;s inside it, or be able to modify it in any way. We do this using the following command:<\/p>\n<pre>chmod 700 test.txt<\/pre>\n<p>Where <code>test.txt<\/code> is the name of the file that I want to protect. Once we run this command, the file turns &#8220;green&#8221; when you list it in a command like &#8220;ls&#8221;, and it displays the new file permissions with the &#8220;ls -l&#8221; command, like this:<\/p>\n<figure id=\"attachment_849\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 669px\"><img decoding=\"async\" class=\"size-full wp-image-849\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Only-Owner-can-Access-File.jpg\" alt=\"Only Owner can Access the File\" width=\"659\" height=\"240\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Only-Owner-can-Access-File.jpg 659w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Only-Owner-can-Access-File-300x109.jpg 300w\" sizes=\"(max-width: 659px) 100vw, 659px\" \/><figcaption class=\"caption wp-caption-text\">Only the Owner can Access the File<\/figcaption><\/figure>\n<p>Here, you can see the file permissions are restricted only to the first group &#8211; the owner &#8211; who has &#8220;rwx&#8221;, or read, write, and execute permissions. And the third column of &#8220;ls -l&#8221; is the owner name, which in this case is &#8220;root&#8221;.<\/p>\n<p>For convenience sake, we&#8217;ve created this file in the home directory of another user called &#8220;testuser&#8221;. Here&#8217;s what happens when we log in as the new user and try and read the contents of test.txt:<\/p>\n<figure id=\"attachment_850\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 692px\"><img decoding=\"async\" class=\"size-full wp-image-850\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Permission-Denied-to-Other-User.jpg\" alt=\"Permission Denied to Other User\" width=\"682\" height=\"219\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Permission-Denied-to-Other-User.jpg 682w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Permission-Denied-to-Other-User-300x96.jpg 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><figcaption class=\"caption wp-caption-text\">File access is Denied to the Other User<\/figcaption><\/figure>\n<p>As you can see, testuser is denied the ability to access the file in any way. Any other user who tries to open this file will get the same error message. In this way, you can ensure that your important files are kept hidden from other users.<\/p>\n<h2>Allowing Others to ONLY Read the File<\/h2>\n<p>Perhaps there&#8217;s an important document or set of rules that you want others to be able to read, but not modify. We can achieve this using the following command:<\/p>\n<pre>chmod 744 test.txt<\/pre>\n<p>Here, &#8220;744&#8221; instead of &#8220;700&#8221; gives everyone else the permission to read the file, but nothing else. Here you can see that &#8220;testuser&#8221; is able to access the contents of the file after it has been assigned its &#8220;744&#8221; permissions:<\/p>\n<figure id=\"attachment_851\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 674px\"><img decoding=\"async\" class=\"size-full wp-image-851\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Allowing-Users-to-Read-File.jpg\" alt=\"Allowing Users to Read FIle\" width=\"664\" height=\"219\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Allowing-Users-to-Read-File.jpg 664w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Allowing-Users-to-Read-File-300x99.jpg 300w\" sizes=\"(max-width: 664px) 100vw, 664px\" \/><figcaption class=\"caption wp-caption-text\">Allowing Other Users to Only Read the FIle<\/figcaption><\/figure>\n<p>However, if they then try and modify the file using a file editor, like &#8220;vi&#8221;, they get the warning you expect as shown here:<\/p>\n<figure id=\"attachment_852\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 656px\"><img decoding=\"async\" class=\"size-full wp-image-852\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/File-Cannot-Be-Edited.jpg\" alt=\"File Cannot be Edited\" width=\"646\" height=\"491\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/File-Cannot-Be-Edited.jpg 646w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/File-Cannot-Be-Edited-300x228.jpg 300w\" sizes=\"(max-width: 646px) 100vw, 646px\" \/><figcaption class=\"caption wp-caption-text\">The File is Read-only &#8211; It Can&#8217;t be Edited<\/figcaption><\/figure>\n<p>Use this variant of the <code>chmod<\/code> command when you need others to see the file, but not modify it in any way.<\/p>\n<h2>Root or &#8220;Sudo&#8221; Users Still Have Access<\/h2>\n<p>Unfortunately, file permissions don&#8217;t apply to root or sudo users. For this example, I&#8217;ve added &#8220;testuser&#8221; to the sudoers file so they can use execute root commands using sudo. And when they do this, they can access the protected file as shown here:<\/p>\n<figure id=\"attachment_853\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 661px\"><img decoding=\"async\" class=\"size-full wp-image-853\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Root-Users-Have-Full-Access.jpg\" alt=\"Root Users have Full Access\" width=\"651\" height=\"225\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Root-Users-Have-Full-Access.jpg 651w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Root-Users-Have-Full-Access-300x104.jpg 300w\" sizes=\"(max-width: 651px) 100vw, 651px\" \/><figcaption class=\"caption wp-caption-text\">Root Users have Complete Control Over the File<\/figcaption><\/figure>\n<p>There&#8217;s no way around this using file permissions. Root, and users belonging to the &#8220;wheel&#8221; group can simply use &#8220;sudo&#8221; to get around these restrictions. Of course, it&#8217;s good practice to be wise with the capabilities you give your users &#8211; handing out sudo permissions to everyone is not a good idea. Since this is common practice, well-configured Linux systems shouldn&#8217;t have this problem.<\/p>\n<h2>True File Security &#8211; Even from Root<\/h2>\n<p>Ultimately, the only way to hide your files from everyone &#8211; including root users &#8211; is to use passphrase-based encryption. No other method can hide your information with 100% security from everyone, including the root and sudo users!<\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to do any of this if you use one of our <a href=\"https:\/\/linuxhostsupport.com\/outsourced-hosting-support.html\">Outsourced Server Support Services<\/a>, in which case you can simply ask our expert Linux admins to set up your file permissions for you. Just sit back, relax, and let our admins take care of the issue for you. They are available 24&#215;7 to help you with your requests.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post on denying file permissions to everyone except yourself, please share it with your friends on the social networks by using the share shortcut buttons, or simply leave a comment in the comments section below. Thanks.<\/p><div id=\"linux-1736965042\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; The role of permissions and files is much clearer in Linux when compared to Windows. Most people find it easier to understand compared to the complex system of groups and users that we find in Windows&#8217; concept of permissions. For example, each file in a Linux-based operating system has three sets of permissions &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":856,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[45,140,142,141],"class_list":["post-848","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-linux","tag-permissions","tag-privacy","tag-security"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Deny File Permissions to Everyone Except Yourself in Linux | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"&nbsp; The role of permissions and files is much clearer in Linux when compared to Windows. Most people find it easier to understand compared to the\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Deny File Permissions to Everyone Except Yourself in Linux | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"&nbsp; The role of permissions and files is much clearer in Linux when compared to Windows. Most people find it easier to understand compared to the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-29T17:35:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/deny-file-permissions-everyone-except-self.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Deny File Permissions to Everyone Except Yourself in Linux\",\"datePublished\":\"2019-03-29T17:35:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/\"},\"wordCount\":952,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/deny-file-permissions-everyone-except-self.jpg\",\"keywords\":[\"linux\",\"permissions\",\"privacy\",\"security\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/\",\"name\":\"How to Deny File Permissions to Everyone Except Yourself in Linux | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/deny-file-permissions-everyone-except-self.jpg\",\"datePublished\":\"2019-03-29T17:35:29+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"&nbsp; The role of permissions and files is much clearer in Linux when compared to Windows. Most people find it easier to understand compared to the\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/deny-file-permissions-everyone-except-self.jpg\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/deny-file-permissions-everyone-except-self.jpg\",\"width\":750,\"height\":410,\"caption\":\"How to Deny File Permissions to Everyone Except Yourself\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Deny File Permissions to Everyone Except Yourself in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Deny File Permissions to Everyone Except Yourself in Linux | LinuxHostSupport","description":"&nbsp; The role of permissions and files is much clearer in Linux when compared to Windows. Most people find it easier to understand compared to the","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Deny File Permissions to Everyone Except Yourself in Linux | LinuxHostSupport","og_description":"&nbsp; The role of permissions and files is much clearer in Linux when compared to Windows. Most people find it easier to understand compared to the","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2019-03-29T17:35:29+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/deny-file-permissions-everyone-except-self.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Deny File Permissions to Everyone Except Yourself in Linux","datePublished":"2019-03-29T17:35:29+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/"},"wordCount":952,"commentCount":0,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/deny-file-permissions-everyone-except-self.jpg","keywords":["linux","permissions","privacy","security"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/","name":"How to Deny File Permissions to Everyone Except Yourself in Linux | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/deny-file-permissions-everyone-except-self.jpg","datePublished":"2019-03-29T17:35:29+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"&nbsp; The role of permissions and files is much clearer in Linux when compared to Windows. Most people find it easier to understand compared to the","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/deny-file-permissions-everyone-except-self.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/deny-file-permissions-everyone-except-self.jpg","width":750,"height":410,"caption":"How to Deny File Permissions to Everyone Except Yourself"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-deny-file-permissions-to-everyone-except-yourself-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Deny File Permissions to Everyone Except Yourself in Linux"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=848"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/848\/revisions"}],"predecessor-version":[{"id":860,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/848\/revisions\/860"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/856"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}