<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://alteeve.com/w/index.php?action=history&amp;feed=atom&amp;title=Permissions</id>
	<title>Permissions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://alteeve.com/w/index.php?action=history&amp;feed=atom&amp;title=Permissions"/>
	<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Permissions&amp;action=history"/>
	<updated>2026-05-04T22:30:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://alteeve.com/w/index.php?title=Permissions&amp;diff=376&amp;oldid=prev</id>
		<title>Digimer: Created page with &#039;{{fs_header}}  NOTE: Currently, this document covers only UNIX-style permissions.  Permissions are used to restrict access to data. In POSIX systems, the most common form…&#039;</title>
		<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Permissions&amp;diff=376&amp;oldid=prev"/>
		<updated>2009-10-11T09:04:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{fs_header}}  NOTE: Currently, this document covers only &lt;a href=&quot;/w/UNIX&quot; title=&quot;UNIX&quot;&gt;UNIX&lt;/a&gt;-style permissions.  Permissions are used to restrict access to data. In &lt;a href=&quot;/w/POSIX&quot; title=&quot;POSIX&quot;&gt;POSIX&lt;/a&gt; systems, the most common form…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Páàjì titun&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{fs_header}}&lt;br /&gt;
&lt;br /&gt;
NOTE: Currently, this document covers only [[UNIX]]-style permissions.&lt;br /&gt;
&lt;br /&gt;
Permissions are used to restrict access to data. In [[POSIX]] systems, the most common form of permissions (sometimes called a file&amp;#039;s &amp;#039;mode&amp;#039;), is by specifying who the owning user and group is, and then defining what access the owning user, group and &amp;quot;other&amp;quot; are. This is specified in a 9-byte string which can be described using a 3-digit number. &lt;br /&gt;
&lt;br /&gt;
To note; this string will appear to be 10-bytes, but the first byte describes the file type (&amp;#039;-&amp;#039; for a file, &amp;#039;d&amp;#039; for a directory, &amp;#039;s&amp;#039; for a [[symlink]], etc). The 3-byte digit may also be expressed as four or five-digits as well, which describes certain special characteristics of the file. For now though, we&amp;#039;ll keep it simple.&lt;br /&gt;
&lt;br /&gt;
So, using this as an example (simplified string):&lt;br /&gt;
  &amp;lt;permission&amp;gt;  &amp;lt;user&amp;gt;   &amp;lt;group&amp;gt;    &amp;lt;file name&amp;gt;&lt;br /&gt;
  -rw-rw-r--    www-data digimer    README&lt;br /&gt;
&lt;br /&gt;
* This shows a file owned by the user &amp;#039;www-data&amp;#039; and group &amp;#039;digimer&amp;#039;.&lt;br /&gt;
* The file name is &amp;#039;README&amp;#039;&lt;br /&gt;
* This file&amp;#039;s permission string is &amp;#039;-rw-rw-r--&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The permission string is made up of four parts; &lt;br /&gt;
 * 1) first byte is the file type (as mentioned above), we will ignore this for now.&lt;br /&gt;
 * 2) 3-bytes showing the &amp;#039;&amp;#039;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;#039;ead&amp;#039;, &amp;#039;&amp;#039;&amp;#039;&amp;#039;w&amp;#039;&amp;#039;&amp;#039;rite and &amp;#039;e&amp;#039;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;#039;ecute&amp;#039; writes of the owning user.&lt;br /&gt;
 * 3) 3-bytes showing the &amp;#039;&amp;#039;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;#039;ead&amp;#039;, &amp;#039;&amp;#039;&amp;#039;&amp;#039;w&amp;#039;&amp;#039;&amp;#039;rite and &amp;#039;e&amp;#039;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;#039;ecute&amp;#039; writes of the owning group.&lt;br /&gt;
 * 4) 3-bytes showing the &amp;#039;&amp;#039;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;#039;ead&amp;#039;, &amp;#039;&amp;#039;&amp;#039;&amp;#039;w&amp;#039;&amp;#039;&amp;#039;rite and &amp;#039;e&amp;#039;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;#039;ecute&amp;#039; writes of everyone else.&lt;br /&gt;
&lt;br /&gt;
When a value is not present (not allowed), it is shown as a hyphen (-). So then:&lt;br /&gt;
&lt;br /&gt;
  -rw-rw-r--&lt;br /&gt;
  |\_/\_/\_/&lt;br /&gt;
  | |  |  \--- &amp;#039;Other&amp;#039; (everyone else), can &amp;#039;&amp;#039;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;#039;ead the file, but not &amp;#039;&amp;#039;&amp;#039;&amp;#039;w&amp;#039;&amp;#039;&amp;#039;rite to the file or&lt;br /&gt;
  | |  |       &amp;#039;e&amp;#039;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;#039;ecute&amp;#039; the file (which means to run it, if it was a program).&lt;br /&gt;
  | |  \------ &amp;#039;Group&amp;#039;, users who are a members of this group are allowed to &amp;#039;read&amp;#039; and &amp;#039;write&amp;#039; the file.&lt;br /&gt;
  | \--------- &amp;#039;User&amp;#039;, The owning user is allowed to &amp;#039;read&amp;#039; and &amp;#039;write&amp;#039; to this file.&lt;br /&gt;
  \----------- File type; being a hyphen indicates that this is a normal file. Ignore for now.&lt;br /&gt;
&lt;br /&gt;
Because writing out that string is tedious to humans, a short-form was developed to describe the permissions. Following the example of [[binary]], each section of three bytes was assigned a value, from right to left.&lt;br /&gt;
&lt;br /&gt;
  rwx&lt;br /&gt;
  ||\- 1&lt;br /&gt;
  |\-- 2&lt;br /&gt;
  \--- 4&lt;br /&gt;
&lt;br /&gt;
By adding up the values of the &amp;quot;true&amp;quot; or set bytes, the permissions can be describe. So to use our example above, the permission could have been listed as:&lt;br /&gt;
&lt;br /&gt;
  664&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
  Note: A &amp;#039;hyphen&amp;#039; indicated that the permission is not granted (not &amp;#039;true&amp;#039; or &amp;#039;set&amp;#039;), so it is not added.&lt;br /&gt;
  &lt;br /&gt;
  rw-rw-r-- = (rwx)(rwx)(rwx) = (4+2+0)(4+2+0)(4+0+0) = (6)(6)(4) = 644&lt;br /&gt;
  ||||||||\- 0 \&lt;br /&gt;
  |||||||\-- 0  |-&amp;gt; Permissions for &amp;quot;everyone else&amp;quot;.&lt;br /&gt;
  ||||||\--- 4 /&lt;br /&gt;
  |||||\---- 0 \&lt;br /&gt;
  ||||\----- 2  |-&amp;gt; Permissions for people in the owning group.&lt;br /&gt;
  |||\------ 4 /&lt;br /&gt;
  ||\------- 0 \&lt;br /&gt;
  |\-------- 2  |-&amp;gt; Permissions for the owner directly.&lt;br /&gt;
  \--------- 4 /&lt;br /&gt;
&lt;br /&gt;
{{footer}}&lt;/div&gt;</summary>
		<author><name>Digimer</name></author>
	</entry>
</feed>