- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/chroot/common/changingowner.xml
rda7d5fc r5215448 11 11 <title>Changing Ownership</title> 12 12 13 <note> 14 <para>This step is not optional as some of the binaries in 15 <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 13 20 <para os="a">Currently, the <filename class="directory">/tools</filename> 14 21 and <filename class="directory">/cross-tools</filename> directories 15 22 are owned by the user <emphasis>clfs</emphasis>, a user that 16 exists only on the host system. Although <filename23 exists only on the host system. Although the <filename 17 24 class="directory">/tools</filename> and <filename 18 class="directory">/cross-tools</filename> can be deleted once the CLFS19 system has been finished, they can be retained to build25 class="directory">/cross-tools</filename> directories can be deleted 26 once the CLFS system has been finished, they can be retained to build 20 27 additional CLFS systems. If the <filename class="directory">/tools</filename> 21 28 and <filename class="directory">/cross-tools</filename> directories are 22 29 kept as is, the files are owned by a user ID without a corresponding 23 30 account. This is dangerous because a user account created later could 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> 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> 26 34 27 <para os="b"> One possible fix for this issue might be to add the28 <systemitem class="username">clfs</systemitem> user to the new CLFS system29 later when creating the <filename>/etc/passwd</filename> file, taking care30 to assignit the same user and group IDs as on the host system. Alternatively,35 <para os="b">To avoid this issue, add the <systemitem 36 class="username">clfs</systemitem> user to the new CLFS system later when 37 creating the <filename>/etc/passwd</filename> file, taking care to assign 38 it the same user and group IDs as on the host system. Alternatively, 31 39 assign the contents of the <filename class="directory">/tools</filename> 32 40 and <filename class="directory">/cross-tools</filename> directories to
Note:
See TracChangeset
for help on using the changeset viewer.