Changeset 9922b26
- Timestamp:
- 02/06/2003 12:01:40 AM (21 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v4_1, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 5384d51
- Parents:
- 2296bd1
- Location:
- chapter06
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/kernel-inst.xml
r2296bd1 r9922b26 10 10 11 11 <para>It is important to note that the files in the kernel source directory 12 are not owned by root. Whenever you unpack a package as user root (like we 13 do here inside chroot), the files end up having the user and group ID's of 14 whatever they were on the packager's computer. This is usually not a 12 are not owned by <emphasis>root</emphasis>. Whenever you unpack a package as 13 user <emphasis>root</emphasis> (like we do here inside chroot), the files end 14 up having the user and group IDs of whatever they were on the packager's 15 computer. This is usually not a 15 16 problem for any other package you install because you remove the source 16 17 tree after the installation. But the Linux kernel source tree is often kept 17 around for a long time, so there's a chance that whatever user id was used will18 be assigned to somebody on your machine and that person would have write 19 access to the kernel source.</para>18 around for a long time, so there's a chance that whatever user ID the packager 19 used will be assigned to somebody on your machine and then that person would 20 have write access to the kernel source.</para> 20 21 21 22 <para>In light of this, you might want to run <userinput>chown -R 0:0</userinput> … … 23 24 to ensure all files are owned by user <emphasis>root</emphasis>.</para> 24 25 25 <para>Kernel header installation requires the <emphasis>pwd</emphasis> program. 26 In the kernel source, the path to the pwd program is hard-wired as /bin/pwd. 26 <para>Kernel header installation requires the <filename>pwd</filename> program. 27 In the kernel source the path to the <filename>pwd</filename> program is 28 hard-wired as <filename>/bin/pwd</filename>. 27 29 Create a symlink to account for that:</para> 28 30 … … 59 61 <filename>autoconf.h</filename> header file. Since we do not yet configure the 60 62 kernel, we need to create this file ourselves in order to avoid compilation 61 failures. Create an empty autoconf.hfile:</para>63 failures. Create an empty <filename>autoconf.h</filename> file:</para> 62 64 63 65 <para><screen><userinput>touch /usr/include/linux/autoconf.h</userinput></screen></para> -
chapter06/makedev-inst.xml
r2296bd1 r9922b26 27 27 information.</para> 28 28 29 <para>If you intend to use devpts, pass the29 <para>If you intend to use <emphasis>devpts</emphasis>, pass the 30 30 <userinput>generic-nopty</userinput> option to <filename>MAKEDEV</filename>. 31 31 This creates the same devices as <userinput>generic</userinput>, but it skips 32 the creation of pty devices so that devpts can manage them itself.</para> 32 the creation of <emphasis>pty</emphasis> devices so that 33 <emphasis>devpts<emphasis> can manage those.</para> 33 34 34 35 </sect2> -
chapter06/pwdgroup.xml
r2296bd1 r9922b26 3 3 <?dbhtml filename="pwdgroup.html" dir="chapter06"?> 4 4 5 <para>In order for root to be able to login and for the name "root" to be6 recognized, there need to be relevant entries in the5 <para>In order for <emphasis>root</emphasis> to be able to login and for the 6 name "root" to be recognized, there need to be relevant entries in the 7 7 <filename>/etc/passwd</filename> and 8 8 <filename>/etc/group</filename> files.</para> … … 13 13 <para><screen><userinput>echo "root:x:0:0:root:/root:/bin/bash" > /etc/passwd</userinput></screen></para> 14 14 15 <para>The actual password for root (the "x" here is just a placeholder) will16 be set later.</para>15 <para>The actual password for <emphasis>root</emphasis> (the "x" here is 16 just a placeholder) will be set later.</para> 17 17 18 18 <para>Create the <filename>/etc/group</filename> file by running the … … 36 36 <para>The created groups aren't part of any standard -- they are the groups 37 37 that the MAKEDEV script in the next section uses. Besides the group "root", 38 the LSB (<ulink url="http://www.linuxbase.org"/>) (recommends only a group38 the LSB (<ulink url="http://www.linuxbase.org"/>) recommends only a group 39 39 "bin", with a GID of 1, be present. All other group names and GIDs can be 40 40 chosen freely by the user, as well-written packages don't depend on GID
Note:
See TracChangeset
for help on using the changeset viewer.