{"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<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">bash code<\/span> <\/div> <pre class=\"language-bash code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-bash code-embed-code\">Example:<br\/><br\/>ls -l Videos<br\/><br\/>drwxr-xr-x. 3 surendra surendra 4096 2011-07-06 00:19 Videos<\/code><\/pre> <\/div>\n[ad type=&#8221;banner&#8221;]\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&#8217;s on them<\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">bash code<\/span> <\/div> <pre class=\"language-bash code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-bash code-embed-code\"><br\/>someone@somewhere:~$ ls \/var\/www -lh<br\/>total 72K<br\/>-rw-rwxr--+  1 root     root      330 2009-08-04 15:09 base64.php<br\/>-rw-rw-r--+  1 www-data www-data   93 2010-01-04 16:25 blot.php<\/code><\/pre> <\/div>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">bash code<\/span> <\/div> <pre class=\"language-bash code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-bash code-embed-code\">someone@somewhere:~$ getfacl \/var\/www\/base64.php<br\/>getfacl: Removing leading &#039;\/&#039; from absolute path names<br\/># file: var\/www\/base64.php<br\/># owner: root<br\/># group: root<br\/>user::rw-<br\/>user:someone:rwx<br\/>group::r--<br\/>mask::rwx<br\/>other::r--<\/code><\/pre> <\/div>\n[ad type=&#8221;banner&#8221;]\n<p><label class=\"label label-info\">SOLUTION 3:<\/label><\/p>\n<p><b>Code:<\/b><\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">bash code<\/span> <\/div> <pre class=\"language-bash code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-bash code-embed-code\">Code:<br\/>grub.d]# ls -l<br\/>total 64<br\/>-rwxr-xr-x. 1 root root 7528 Mar 15 11:40 00_header<br\/>-rwxr-xr-x. 1 root root 8872 Mar 15 11:40 10_linux<br\/>-rwxr-xr-x. 1 root root 9552 Mar 15 11:40 20_linux_xen<br\/>-rwxr-xr-x. 1 root root 9339 Mar 15 11:40 30_os-prober<br\/>-rwxr-xr-x  1 root root  691 Apr  5 10:55 39_puppy<br\/>-rwxr-xr-x. 1 root root  301 Mar 28 16:49 40_custom<br\/>-rwxr-xr-x. 1 root root   95 Mar 15 11:40 41_custom<br\/>-rwxr-xr-x. 1 root root 1259 Mar 15 11:40 90_persistent<br\/>-rw-r--r--. 1 root root  483 Mar 15 11:40 README<\/code><\/pre> <\/div>\n<p>Note that 39_puppy has no dot. Code:<\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">bash code<\/span> <\/div> <pre class=\"language-bash code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-bash code-embed-code\">grub.d]# lsattr *<br\/>-------------e- 00_header<br\/>-------------e- 10_linux<br\/>-------------e- 20_linux_xen<br\/>-------------e- 30_os-prober<br\/>-------------e- 39_puppy<br\/>-------------e- 40_custom<br\/>-------------e- 41_custom<br\/>-------------e- 90_persistent<br\/>-------------e- README<\/code><\/pre> <\/div>\n<ul>\n<li>The dot after file permissions in &#8216;ls&#8217; 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<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">bash code<\/span> <\/div> <pre class=\"language-bash code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-bash code-embed-code\">[root@backup \/]# sestatus<br\/>SELinux status:                 disabled<br\/>[root@backup \/]# ls -ald \/lib<br\/>dr-xr-xr-x. 8 root root 4096 Feb 14 16:45 \/lib<br\/>[root@backup \/]# ls -Zd \/lib<br\/>dr-xr-xr-x. root root system_u:object_r:lib_t:s0       \/lib<br\/>[root@backup \/]# <br\/>[root@backup \/]# ls -ald \/srv<br\/>drwxr-xr-x 9 root root 4096 May  8 15:37 \/srv<br\/>[root@backup \/]# ls -Zd \/srv<br\/>drwxr-xr-x root root ?                                \/srv<br\/>[root@backup \/]#<\/code><\/pre> <\/div>\n[ad type=&#8221;banner&#8221;]\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>&#8212; From ls man page (info coreutils &#8216;ls invocation&#8217;).<\/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}]}}