<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://leo.leung.xyz/wiki/index.php?action=history&amp;feed=atom&amp;title=Umask</id>
	<title>Umask - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://leo.leung.xyz/wiki/index.php?action=history&amp;feed=atom&amp;title=Umask"/>
	<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=Umask&amp;action=history"/>
	<updated>2026-11-25T14:31:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://leo.leung.xyz/wiki/index.php?title=Umask&amp;diff=6371&amp;oldid=prev</id>
		<title>Leo: Added categories and navbox</title>
		<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=Umask&amp;diff=6371&amp;oldid=prev"/>
		<updated>2021-12-30T01:12:22Z</updated>

		<summary type="html">&lt;p&gt;Added categories and navbox&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:12, 30 December 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l59&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;111b - (111b &amp;amp; 111b) = 000b (---)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;111b - (111b &amp;amp; 111b) = 000b (---)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Navbox Linux}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Linux]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:LinuxUtilities]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-5665:rev-6371:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Leo</name></author>
	</entry>
	<entry>
		<id>https://leo.leung.xyz/wiki/index.php?title=Umask&amp;diff=5665&amp;oldid=prev</id>
		<title>Leo at 06:03, 9 December 2020</title>
		<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=Umask&amp;diff=5665&amp;oldid=prev"/>
		<updated>2020-12-09T06:03:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:03, 9 December 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;By default, the umask is typically 022 and results in files with 644 and directories with 755.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;By default, the umask is typically 022 and results in files with 644 and directories with 755.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is a table outlining what each umask digit will result in. The binary value is given which shows how the mask is used to calculate the final permission.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is a table outlining what each umask digit will result in. The binary value is given which shows how the mask is used to calculate the final permission&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Notice that for file permissions, the even values are the same as their previous odd value (because the least significant bit is masked out, as files do not have execute permissions)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!Umask Digit&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!Umask Digit&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-5664:rev-5665:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Leo</name></author>
	</entry>
	<entry>
		<id>https://leo.leung.xyz/wiki/index.php?title=Umask&amp;diff=5664&amp;oldid=prev</id>
		<title>Leo: Created page with &quot;A umask is used to set the default unix permissions of files. Recall that Unix permissions are defined by 3 octal values denoting the permissions for the owner, group, and oth...&quot;</title>
		<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=Umask&amp;diff=5664&amp;oldid=prev"/>
		<updated>2020-12-09T06:01:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;A umask is used to set the default unix permissions of files. Recall that Unix permissions are defined by 3 octal values denoting the permissions for the owner, group, and oth...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A umask is used to set the default unix permissions of files. Recall that Unix permissions are defined by 3 octal values denoting the permissions for the owner, group, and other users on the system. A umask is a bit-wise mask that is applied (either against 666 for files or 777 for directories) to generate the default permission octal values.&lt;br /&gt;
&lt;br /&gt;
By default, the umask is typically 022 and results in files with 644 and directories with 755.&lt;br /&gt;
&lt;br /&gt;
Here is a table outlining what each umask digit will result in. The binary value is given which shows how the mask is used to calculate the final permission.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Umask Digit&lt;br /&gt;
!File Permission&lt;br /&gt;
6 or 110b binary&lt;br /&gt;
!Directory Permission&lt;br /&gt;
7 or 111b binary&lt;br /&gt;
|-&lt;br /&gt;
|0 (000b)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Read + Write&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
110b - 000b = 110b (rw-)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Read + Write + Execute&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
111b - 000b = 111b (rwx)&lt;br /&gt;
|-&lt;br /&gt;
|1 (001b)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Read + Write&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
110b - (110b &amp;amp; 001b) = 110b (rw-)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Read + Write&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
111b - (111b &amp;amp; 001b) = 110b (rw-)&lt;br /&gt;
|-&lt;br /&gt;
|2 (010b)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Read&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
110b - (110b &amp;amp; 010b) = 100b (r--)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Read + Execute&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
111b - (111b &amp;amp; 010b) = 101b (r-x)&lt;br /&gt;
|-&lt;br /&gt;
|3 (011b)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Read&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
110b - (110b &amp;amp; 011b) = 100b (r--)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Read&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
111b - (111b &amp;amp; 011b) = 100b (r--)&lt;br /&gt;
|-&lt;br /&gt;
|4 (100b)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Write&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
110b - (110b &amp;amp; 100b) = 010b (-w-)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Write + Execute&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
111b - (111b &amp;amp; 100b) = 011b (-wx)&lt;br /&gt;
|-&lt;br /&gt;
|5 (101b)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Write&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
110b - (110b &amp;amp; 101b) = 010b (-w-)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Write&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
111b - (111b &amp;amp; 101b) = 010b (-w-)&lt;br /&gt;
|-&lt;br /&gt;
|6 (110b)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;None&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
110b - (110b &amp;amp; 110b) = 000b (---)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Execute&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
111b - (111b &amp;amp; 110b) = 001b (--x)&lt;br /&gt;
|-&lt;br /&gt;
|7 (111b)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;None&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
110b - (110b &amp;amp; 111b) = 000b (---)&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;None&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
111b - (111b &amp;amp; 111b) = 000b (---)&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Leo</name></author>
	</entry>
</feed>