{"id":594,"date":"2014-03-24T12:18:54","date_gmt":"2014-03-24T11:18:54","guid":{"rendered":"http:\/\/ndk.sytes.net\/wordpress\/?p=594"},"modified":"2014-03-24T12:18:54","modified_gmt":"2014-03-24T11:18:54","slug":"ensim-virtualhosting-filelists-explained","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=594","title":{"rendered":"Ensim virtualhosting filelists explained"},"content":{"rendered":"<p class=\"p1\">\n\tIN THE FILELISTS ARE SOME LETTERS USED. HERE AN EXPLANAITON:\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">[[T:][U,(<user>|admin):][G,(<group>|admin):][L:][M,<mode>:][C:][R:][P:][A:][N:][I:][S,<pkg type>:](<filename> [ \/\/ <filename2>]|<package name> <[!]pattern&gt;)<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">The optional characters at the beginning are flags. Here are their meanings:<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">T: This file should be considered a template file (i.e. copied into the domain, and not hardlinked)&nbsp;<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">U,(&lt;user&gt;|admin): this file should be owned by the top level user &lt;user&gt;, or by the site admin (if admin is given). This will generally be used with T:, although it could be hard-linked. If hard-linked, the user parameter must be a top-level user, and not the special keyword admin. While expected to be rarely used, one example would be if you wanted to hardlink in an apache-owned file into each domain.<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">G,(&lt;group&gt;|admin): similar to U:, except that this controls the group ownership&nbsp;<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">L: Indicates that this file is a symlink that should be created. &lt;filename2&gt; must be specified, and will be what the created symlink will point to. Symlinks imply the T: flag, since hardlinked symlinks aren&#39;t supported over NFS.<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">M,&lt;mode&gt;: this file should be created with the permissions as given in &lt;mode&gt;. &lt;mode&gt; may be specified as octal (with a leading 0), hexidecimal (leading 0x), or integer. The common case would be to specify it as octal.&nbsp;<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">C: this file should be taken from the root filesystem but placed in a different location under the domain filesystem. &lt;filename2&gt; must be specified. For example, you might have the line &quot;\/usr\/lib\/opcenter\/sendmail\/install\/sendmail.mc.site \/\/ \/etc\/mail\/sendmail.mc&quot;&nbsp;<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">R: this path is a directory, and all files under it should be handled recursively.&nbsp;<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">P: this path is a permanent template file, and should not be removed or updated under the templates directory.&nbsp;<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">A: this file should always be updated.&nbsp;<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">S,&lt;pkg type&gt;: The end of the line contains a package name and pattern. The contents of the package should be listed, and the pattern applied to the list. The resulting list of files will be added to the manifest as if they were listed separately with the rest of the flags given on the original line. If the pattern begins with an !, then the pattern is used to remove files from the package&#39;s manifest.<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">N: should only be specified along with the S flag. Specifies that this package should not be considered a strict dependency of the containing fst package.&nbsp;<\/span>\n<\/p>\n<p class=\"p2\">\n\t<span style=\"line-height: 1.6em;\">I: Include files that aren&#39;t listed in the package file list, but are generated \/ owned by that package. Example of such file are the files generated in %post scriptlet of rpm.&nbsp;<\/span>\n<\/p>\n<p class=\"p1\">\n\t&lt;filename&gt; and &lt;filename2&gt; must be absolute paths.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IN THE FILELISTS ARE SOME LETTERS USED. HERE AN EXPLANAITON: [[T:][U,(|admin):][G,(|admin):][L:][M,:][C:][R:][P:][A:][N:][I:][S,:]( [ \/\/ ]|<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-594","post","type-post","status-publish","format-standard","hentry","category-servers"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=594"}],"version-history":[{"count":0,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/594\/revisions"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}