- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/chroot/common/changingowner.xml
r5215448 rda7d5fc 11 11 <title>Changing Ownership</title> 12 12 13 <note>14 <para>This step is not optional as some of the binaries in15 <filename class="directory">/tools</filename> are set u+s.16 leaving the permissions as is could cause some commands,17 mount in particular, to fail later.</para>18 </note>19 20 13 <para os="a">Currently, the <filename class="directory">/tools</filename> 21 14 and <filename class="directory">/cross-tools</filename> directories 22 15 are owned by the user <emphasis>clfs</emphasis>, a user that 23 exists only on the host system. Although the<filename16 exists only on the host system. Although <filename 24 17 class="directory">/tools</filename> and <filename 25 class="directory">/cross-tools</filename> directories can be deleted26 once the CLFSsystem has been finished, they can be retained to build18 class="directory">/cross-tools</filename> can be deleted once the CLFS 19 system has been finished, they can be retained to build 27 20 additional CLFS systems. If the <filename class="directory">/tools</filename> 28 21 and <filename class="directory">/cross-tools</filename> directories are 29 22 kept as is, the files are owned by a user ID without a corresponding 30 23 account. This is dangerous because a user account created later could 31 get this same user ID and would own the <filename 32 class="directory">/tools</filename> directory and all the files therein, 33 thus exposing these files to possible malicious manipulation.</para> 24 get this same user ID and would own these directories and all the files 25 therein, thus exposing those files to possible malicious manipulation.</para> 34 26 35 <para os="b"> To avoid this issue, add the <systemitem36 class="username">clfs</systemitem> user to the new CLFS system later when37 creating the <filename>/etc/passwd</filename> file, taking care to assign38 it the same user and group IDs as on the host system. Alternatively,27 <para os="b">One possible fix for this issue might be to add the 28 <systemitem class="username">clfs</systemitem> user to the new CLFS system 29 later when creating the <filename>/etc/passwd</filename> file, taking care 30 to assign it the same user and group IDs as on the host system. Alternatively, 39 31 assign the contents of the <filename class="directory">/tools</filename> 40 32 and <filename class="directory">/cross-tools</filename> directories to
Note:
See TracChangeset
for help on using the changeset viewer.