<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.haidhi.my.id/wiki/index.php?action=history&amp;feed=atom&amp;title=LFS%3A_Changing_Ownership</id>
	<title>LFS: Changing Ownership - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.haidhi.my.id/wiki/index.php?action=history&amp;feed=atom&amp;title=LFS%3A_Changing_Ownership"/>
	<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=LFS:_Changing_Ownership&amp;action=history"/>
	<updated>2026-11-02T00:33:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.haidhi.my.id/wiki/index.php?title=LFS:_Changing_Ownership&amp;diff=272&amp;oldid=prev</id>
		<title>SanzSkuy at 01:58, 17 April 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=LFS:_Changing_Ownership&amp;diff=272&amp;oldid=prev"/>
		<updated>2025-04-17T01:58:53Z</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 01:58, 17 April 2025&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-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&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;&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;Solusinya sebelum masuk ke chroot, kita harus ubah kepemilikan semua file dan direktori  &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;Solusinya sebelum masuk ke chroot, kita harus ubah kepemilikan semua file dan direktori  &lt;/div&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;di dalam $LFS jadi milik root. Jalankan command:&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;di dalam $LFS jadi milik root. Jalankan command &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(JALANKAN DENGAN ROOT)&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;&amp;lt;syntaxhighlight lang=bash&amp;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;&amp;lt;syntaxhighlight lang=bash&amp;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;chown --from lfs -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}&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;chown --from lfs -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SanzSkuy</name></author>
	</entry>
	<entry>
		<id>https://wiki.haidhi.my.id/wiki/index.php?title=LFS:_Changing_Ownership&amp;diff=270&amp;oldid=prev</id>
		<title>SanzSkuy: Created page with &quot;Saat kita build LFS, semua file dan direktori di dalam &lt;code&gt;$LFS&lt;/code&gt; awalnya dimiliki oleh user &lt;code&gt;lfs&lt;/code&gt;. Tapi nanti, setelah sistem LFS-nya sudah jadi dan kita masuk ke mode &lt;code&gt;chroot&lt;/code&gt;, user &lt;code&gt;lfs&lt;/code&gt; itu tidak akan ada lagi (cuma exist di host). Masalahnya adalah semua file di &lt;code&gt;$LFS&lt;/code&gt; tetap punya ID user &lt;code&gt;lfs&lt;/code&gt;, tapi karena user itu tidak dikenal disistem target, ID nya bisa diwarisi oleh user baru lain yang punya UID sam...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=LFS:_Changing_Ownership&amp;diff=270&amp;oldid=prev"/>
		<updated>2025-04-17T01:53:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Saat kita build LFS, semua file dan direktori di dalam &amp;lt;code&amp;gt;$LFS&amp;lt;/code&amp;gt; awalnya dimiliki oleh user &amp;lt;code&amp;gt;lfs&amp;lt;/code&amp;gt;. Tapi nanti, setelah sistem LFS-nya sudah jadi dan kita masuk ke mode &amp;lt;code&amp;gt;chroot&amp;lt;/code&amp;gt;, user &amp;lt;code&amp;gt;lfs&amp;lt;/code&amp;gt; itu tidak akan ada lagi (cuma exist di host). Masalahnya adalah semua file di &amp;lt;code&amp;gt;$LFS&amp;lt;/code&amp;gt; tetap punya ID user &amp;lt;code&amp;gt;lfs&amp;lt;/code&amp;gt;, tapi karena user itu tidak dikenal disistem target, ID nya bisa diwarisi oleh user baru lain yang punya UID sam...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Saat kita build LFS, semua file dan direktori di dalam &amp;lt;code&amp;gt;$LFS&amp;lt;/code&amp;gt; awalnya dimiliki&lt;br /&gt;
oleh user &amp;lt;code&amp;gt;lfs&amp;lt;/code&amp;gt;. Tapi nanti, setelah sistem LFS-nya sudah jadi dan kita masuk&lt;br /&gt;
ke mode &amp;lt;code&amp;gt;chroot&amp;lt;/code&amp;gt;, user &amp;lt;code&amp;gt;lfs&amp;lt;/code&amp;gt; itu tidak akan ada lagi (cuma exist di host).&lt;br /&gt;
Masalahnya adalah semua file di &amp;lt;code&amp;gt;$LFS&amp;lt;/code&amp;gt; tetap punya ID user &amp;lt;code&amp;gt;lfs&amp;lt;/code&amp;gt;,&lt;br /&gt;
tapi karena user itu tidak dikenal disistem target, ID nya bisa diwarisi oleh user baru lain&lt;br /&gt;
yang punya UID sama. Misalnya kita bikin user baru di sistem target, dan kebetulan dapet UID &lt;br /&gt;
yang sama kayak UID-nya lfs di host, maka user baru itu akan otomatis jadi pemilik semua file di LFS. &lt;br /&gt;
Gawat, bisa dimanfaatin buat nyusup atau nyabotase sistem.&lt;br /&gt;
&lt;br /&gt;
Solusinya sebelum masuk ke chroot, kita harus ubah kepemilikan semua file dan direktori &lt;br /&gt;
di dalam $LFS jadi milik root. Jalankan command:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
chown --from lfs -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}&lt;br /&gt;
case $(uname -m) in&lt;br /&gt;
  x86_64) chown --from lfs -R root:root $LFS/lib64 ;;&lt;br /&gt;
esac&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>SanzSkuy</name></author>
	</entry>
</feed>