{"id":3701,"date":"2017-04-03T14:57:38","date_gmt":"2017-04-03T09:27:38","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=3701"},"modified":"2017-04-03T14:57:38","modified_gmt":"2017-04-03T09:27:38","slug":"what-means-dot-after-the-file-permission","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/what-means-dot-after-the-file-permission\/","title":{"rendered":"\u00a0[ Solved &#8211; 4 Answers] what means a dot after the file permission"},"content":{"rendered":"<p><label class=\"label label-warning\">PROBLEM:<\/label><\/p>\n<p>what means a dot after the file permission ?<\/p>\n<p><label class=\"label label-info\">SOLUTION 1:<\/label><\/p>\n<ul>\n<li>This is a special permission in Linux which is recently included.<\/li>\n<li>Some times you will be seeing dot at the trailing end of permissions<\/li>\n<\/ul>\n[pastacode lang=\u201dbash\u201d manual=\u201dExample%3A%0A%0Als%20-l%20Videos%0A%0Adrwxr-xr-x.%203%20surendra%20surendra%204096%202011-07-06%2000%3A19%20Videos%0A\u201d message=\u201dbash code\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n[ad type=\u201dbanner\u201d]\n<ul>\n<li>If you observe you will find 11th character to the initial 10 characters permission field available in Linux.<\/li>\n<li>This is new and is available in Linux when SELinux is included in the package from RHEL5+.<\/li>\n<li>When using SELinux(Security Enhanced Linux ) the files\/folder permissions are set in different way.<\/li>\n<li>The dot is indicating that files\/folders are set with some sort of SELinux permissions on them.<\/li>\n<\/ul>\n<p><label class=\"label label-info\">SOLUTION 2:<\/label><\/p>\n<p>Just like a + shows files that have ACL\u2019s on them<\/p>\n[pastacode lang=\u201dbash\u201d manual=\u201d%0Asomeone%40somewhere%3A~%24%20ls%20%2Fvar%2Fwww%20-lh%0Atotal%2072K%0A-rw-rwxr\u2013%2B%20%201%20root%20%20%20%20%20root%20%20%20%20%20%20330%202009-08-04%2015%3A09%20base64.php%0A-rw-rw-r\u2013%2B%20%201%20www-data%20www-data%20%20%2093%202010-01-04%2016%3A25%20blot.php%0A\u201d message=\u201dbash code\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n[pastacode lang=\u201dbash\u201d manual=\u201dsomeone%40somewhere%3A~%24%20getfacl%20%2Fvar%2Fwww%2Fbase64.php%0Agetfacl%3A%20Removing%20leading%20\u2019%2F\u2019%20from%20absolute%20path%20names%0A%23%20file%3A%20var%2Fwww%2Fbase64.php%0A%23%20owner%3A%20root%0A%23%20group%3A%20root%0Auser%3A%3Arw-%0Auser%3Asomeone%3Arwx%0Agroup%3A%3Ar\u2013%0Amask%3A%3Arwx%0Aother%3A%3Ar\u2013%0A\u201d message=\u201dbash code\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n[ad type=\u201dbanner\u201d]\n<p><label class=\"label label-info\">SOLUTION 3:<\/label><\/p>\n<p><b>Code:<\/b><\/p>\n[pastacode lang=\u201dbash\u201d manual=\u201dCode%3A%0Agrub.d%5D%23%20ls%20-l%0Atotal%2064%0A-rwxr-xr-x.%201%20root%20root%207528%20Mar%2015%2011%3A40%2000_header%0A-rwxr-xr-x.%201%20root%20root%208872%20Mar%2015%2011%3A40%2010_linux%0A-rwxr-xr-x.%201%20root%20root%209552%20Mar%2015%2011%3A40%2020_linux_xen%0A-rwxr-xr-x.%201%20root%20root%209339%20Mar%2015%2011%3A40%2030_os-prober%0A-rwxr-xr-x%20%201%20root%20root%20%20691%20Apr%20%205%2010%3A55%2039_puppy%0A-rwxr-xr-x.%201%20root%20root%20%20301%20Mar%2028%2016%3A49%2040_custom%0A-rwxr-xr-x.%201%20root%20root%20%20%2095%20Mar%2015%2011%3A40%2041_custom%0A-rwxr-xr-x.%201%20root%20root%201259%20Mar%2015%2011%3A40%2090_persistent%0A-rw-r\u2013r\u2013.%201%20root%20root%20%20483%20Mar%2015%2011%3A40%20README%0A\u201d message=\u201dbash code\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n<p>Note that 39_puppy has no dot. Code:<\/p>\n[pastacode lang=\u201dbash\u201d manual=\u201dgrub.d%5D%23%20lsattr%20*%0A\u2014\u2014\u2014\u2014-e-%2000_header%0A\u2014\u2014\u2014\u2014-e-%2010_linux%0A\u2014\u2014\u2014\u2014-e-%2020_linux_xen%0A\u2014\u2014\u2014\u2014-e-%2030_os-prober%0A\u2014\u2014\u2014\u2014-e-%2039_puppy%0A\u2014\u2014\u2014\u2014-e-%2040_custom%0A\u2014\u2014\u2014\u2014-e-%2041_custom%0A\u2014\u2014\u2014\u2014-e-%2090_persistent%0A\u2014\u2014\u2014\u2014-e-%20README%0A\u201d message=\u201dbash code\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n<ul>\n<li>The dot after file permissions in \u2018ls\u2019 long output denotes that the file in question has a SELinux security context, no matter if SELinux is enabled or not:<\/li>\n<\/ul>\n<p><b>Code:<\/b><\/p>\n[pastacode lang=\u201dbash\u201d manual=\u201d%5Broot%40backup%20%2F%5D%23%20sestatus%0ASELinux%20status%3A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20disabled%0A%5Broot%40backup%20%2F%5D%23%20ls%20-ald%20%2Flib%0Adr-xr-xr-x.%208%20root%20root%204096%20Feb%2014%2016%3A45%20%2Flib%0A%5Broot%40backup%20%2F%5D%23%20ls%20-Zd%20%2Flib%0Adr-xr-xr-x.%20root%20root%20system_u%3Aobject_r%3Alib_t%3As0%20%20%20%20%20%20%20%2Flib%0A%5Broot%40backup%20%2F%5D%23%20%0A%5Broot%40backup%20%2F%5D%23%20ls%20-ald%20%2Fsrv%0Adrwxr-xr-x%209%20root%20root%204096%20May%20%208%2015%3A37%20%2Fsrv%0A%5Broot%40backup%20%2F%5D%23%20ls%20-Zd%20%2Fsrv%0Adrwxr-xr-x%20root%20root%20%3F%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2Fsrv%0A%5Broot%40backup%20%2F%5D%23%0A\u201d message=\u201dbash code\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n[ad type=\u201dbanner\u201d]\n<p><label class=\"label label-info\">SOLUTION 4:<\/label><\/p>\n<ul>\n<li>GNU ls uses a . character to indicate a file with an <b>SELinux<\/b> security context, but no other alternate access method.<\/li>\n<\/ul>\n<p>\u2014 From ls man page (info coreutils \u2018ls invocation\u2019).<\/p>\n<ul>\n<li>This basically implies that the file has an Access Control List (ACL) with SELinux.<\/li>\n<li>You can set or delete ACL association for a file by using the setfacl command<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>what means a dot after the file permission &#8211; Some times you will be seeing dot at the trailing end of permissions<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699],"tags":[7176,7164,7167,7169,7184,7180,7174,7173,7175,7157,7163,7166,7182,7181,7165,7185,7178,7179,7177,7172,7168,7161,7154,7160,7158,7162,7159,7156,7171,7183,7170,7155],"class_list":["post-3701","post","type-post","status-publish","format-standard","hentry","category-linux","tag-change-file-permission-in-linux","tag-file-permissions","tag-file-permissions-in-linux","tag-file-permissions-linux","tag-file-permissions-unix","tag-group-permissions-in-linux","tag-how-to-change-file-permissions-in-linux","tag-how-to-change-permissions-in-linux","tag-how-to-give-permission-to-user-in-linux","tag-how-to-remove-dot-in-linux-permissions","tag-linux-extended-attributes","tag-linux-file-permissions","tag-linux-file-system-permissions","tag-linux-group-permissions","tag-linux-permissions","tag-linux-user-permissions","tag-ls-file-permissions","tag-permission-definition","tag-permission-meaning","tag-permissions-in-linux","tag-permissions-in-unix","tag-remove-selinux-acl","tag-remove-selinux-permissions","tag-selinux-context","tag-selinux-security-context","tag-selinux-unconfined_u","tag-setfattr-permission-denied","tag-simple-unix-commands-protection-on-files-and-directories","tag-unix-file-permissions","tag-unix-folder-permissions","tag-unix-permissions","tag-what-do-and-mean-when-in-a-folder"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/3701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=3701"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/3701\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=3701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=3701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=3701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}