- Timestamp:
- Sep 15, 2007, 11:23:44 AM (17 years ago)
- Branches:
- master
- Children:
- ed3a5a4
- Parents:
- e7585ab
- Location:
- BOOK
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/bootable/common/chowning.xml
re7585ab r846eed7 28 28 entire CLFS system.</para> 29 29 30 <screen><userinput>chown -Rv 0:0${CLFS}</userinput></screen>30 <screen><userinput>chown -Rv &uid-root;:&gid-root; ${CLFS}</userinput></screen> 31 31 32 <para>The following files are not the be owned by 32 <para>The following files are to be owned by the group 33 <systemitem class="username">utmp</systemitem> not by 33 34 <systemitem class="username">root</systemitem>.</para> 34 35 35 <screen><userinput>chgrp -v 13 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen> 36 <screen><userinput>chgrp -v &gid-utmp; ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen> 37 38 <para>During the installation of Util-Linux-ng configure was instructed not 39 change the ownership of certain programs. Correct that ownership now that we 40 have sufficent privileges.</para> 41 42 <screen><userinput>chgrp -v &gid-tty; ${CLFS}/usr/bin/write 43 chmod g+s ${CLFS}/usr/bin/write</userinput></screen> 36 44 37 45 <para>The following device nodes need to be created for the system to -
BOOK/final-preps/creatingfiles.xml
re7585ab r846eed7 44 44 45 45 <screen><userinput>cat > ${CLFS}/etc/passwd << "EOF" 46 <literal>root:: 0:0:root:/root:/bin/bash</literal>46 <literal>root::&uid-root;:&gid-root;:root:/root:/bin/bash</literal> 47 47 EOF</userinput></screen> 48 48 … … 56 56 57 57 <varlistentry> 58 <term><literal>bin:x: 1:1:bin:/bin:/bin/false</literal></term>58 <term><literal>bin:x:&uid-bin;:&gid-bin;:bin:/bin:/bin/false</literal></term> 59 59 <listitem> 60 60 <para>Can be useful for compatibility with legacy applications.</para> … … 62 62 </varlistentry> 63 63 <varlistentry> 64 <term><literal>daemon:x: 2:6:daemon:/sbin:/bin/false</literal></term>64 <term><literal>daemon:x:&uid-daemon;:&uid-daemon;:daemon:/sbin:/bin/false</literal></term> 65 65 <listitem> 66 66 <para>It is often recommended to use an unprivileged User ID/Group ID … … 69 69 </varlistentry> 70 70 <varlistentry> 71 <term><literal>adm:x: 3:16:adm:/var/adm:/bin/false</literal></term>71 <term><literal>adm:x:&uid-adm;:&gid-adm;:adm:/var/adm:/bin/false</literal></term> 72 72 <listitem> 73 73 <para>Was used for programs that performed administrative tasks.</para> … … 75 75 </varlistentry> 76 76 <varlistentry> 77 <term><literal>lp:x: 10:9:lp:/var/spool/lp:/bin/false</literal></term>77 <term><literal>lp:x:&uid-lp;:&gid-lp;:lp:/var/spool/lp:/bin/false</literal></term> 78 78 <listitem> 79 79 <para>Used by programs for printing.</para> … … 81 81 </varlistentry> 82 82 <varlistentry> 83 <term><literal>mail:x: 30:30:mail:/var/mail:/bin/false</literal></term>83 <term><literal>mail:x:&uid-mail;:&gid-mail;:mail:/var/mail:/bin/false</literal></term> 84 84 <listitem> 85 85 <para>Often used by email programs.</para> … … 87 87 </varlistentry> 88 88 <varlistentry> 89 <term><literal>news:x: 31:31:news:/var/spool/news:/bin/false</literal></term>89 <term><literal>news:x:&uid-news;:&gid-news;:news:/var/spool/news:/bin/false</literal></term> 90 90 <listitem> 91 91 <para>Often used for network news servers.</para> … … 93 93 </varlistentry> 94 94 <varlistentry> 95 <term><literal>uucp:x: 32:32:uucp:/var/spool/uucp:/bin/false</literal></term>95 <term><literal>uucp:x:&uid-uucp;:&gid-uucp;:uucp:/var/spool/uucp:/bin/false</literal></term> 96 96 <listitem> 97 97 <para>Often used for Unix-to-Unix Copy of files from one server to the next</para> … … 99 99 </varlistentry> 100 100 <varlistentry> 101 <term><literal>operator:x: 50:0:operator:/root:/bin/bash</literal></term>101 <term><literal>operator:x:&uid-operator;:&gid-root;:operator:/root:/bin/bash</literal></term> 102 102 <listitem> 103 103 <para>Often used to allow system operators to access the system.</para> … … 105 105 </varlistentry> 106 106 <varlistentry> 107 <term><literal>postmaster:x: 51:30:postmaster:/var/spool/mail:/bin/false</literal></term>107 <term><literal>postmaster:x:&uid-postmaster;:&gid-mail;:postmaster:/var/spool/mail:/bin/false</literal></term> 108 108 <listitem> 109 109 <para>Generally used as an account that receives all the information of troubles with the mail server.</para> … … 111 111 </varlistentry> 112 112 <varlistentry> 113 <term><literal>nobody:x: 65534:65534:nobody:/:/bin/false</literal></term>113 <term><literal>nobody:x:&uid-nobody;:&gid-nobody;:nobody:/:/bin/false</literal></term> 114 114 <listitem> 115 115 <para>Used by NFS.</para> … … 122 122 123 123 <screen><userinput>cat > ${CLFS}/etc/group << "EOF" 124 <literal>root:x: 0:125 bin:x: 1:126 sys:x: 2:127 kmem:x: 3:128 tty:x: 4:129 tape:x: 5:130 daemon:x: 6:131 floppy:x: 7:132 disk:x: 8:133 lp:x: 9:134 dialout:x: 10:135 audio:x: 11:136 video:x: 12:137 utmp:x: 13:138 usb:x: 14:139 cdrom:x: 15:</literal>124 <literal>root:x:&gid-root;: 125 bin:x:&gid-bin;: 126 sys:x:&gid-sys;: 127 kmem:x:&gid-kmem;: 128 tty:x:&gid-tty;: 129 tape:x:&gid-tape;: 130 daemon:x:&gid-daemon;: 131 floppy:x:&gid-floppy;: 132 disk:x:&gid-disk;: 133 lp:x:&gid-lp;: 134 dialout:x:&gid-dialout;: 135 audio:x:&gid-audio;: 136 video:x:&gid-video;: 137 utmp:x:&gid-utmp;: 138 usb:x:&gid-usb;: 139 cdrom:x:&gid-cdrom;:</literal> 140 140 EOF</userinput></screen> 141 141 … … 145 145 146 146 <varlistentry> 147 <term><literal>adm:x: 16:root,adm,daemon</literal></term>147 <term><literal>adm:x:&gid-adm;16:root,adm,daemon</literal></term> 148 148 <listitem> 149 149 <para>All users in this group are allowed to do administrative tasks</para> … … 151 151 </varlistentry> 152 152 <varlistentry> 153 <term><literal>console:x: 17:</literal></term>153 <term><literal>console:x:&gid-console;:</literal></term> 154 154 <listitem> 155 155 <para>This group has direct access to the console</para> … … 157 157 </varlistentry> 158 158 <varlistentry> 159 <term><literal>cdrw:x: 18:</literal></term>159 <term><literal>cdrw:x:&gid-cdrw;:</literal></term> 160 160 <listitem> 161 161 <para>This group is allowed to use the CDRW drive</para> … … 163 163 </varlistentry> 164 164 <varlistentry> 165 <term><literal>mail:x: 30:mail</literal></term>165 <term><literal>mail:x:&gid-mail;:mail</literal></term> 166 166 <listitem> 167 167 <para>Used by MTAs (Mail Transport Agents)</para> … … 169 169 </varlistentry> 170 170 <varlistentry> 171 <term><literal>news:x: 31:news</literal></term>171 <term><literal>news:x:&gid-news;:news</literal></term> 172 172 <listitem> 173 173 <para>Used by Network News Servers</para> … … 175 175 </varlistentry> 176 176 <varlistentry> 177 <term><literal>uucp:x: 32:uucp</literal></term>177 <term><literal>uucp:x:&gid-uucp;:uucp</literal></term> 178 178 <listitem> 179 179 <para>Used by the Unix-to-Unix copy users</para> … … 181 181 </varlistentry> 182 182 <varlistentry> 183 <term><literal>users: x:100:</literal></term>183 <term><literal>users:&gid-users;:100:</literal></term> 184 184 <listitem> 185 185 <para>The default GID used by shadow for new users</para> … … 187 187 </varlistentry> 188 188 <varlistentry> 189 <term><literal>nogroup: x:65533:</literal></term>189 <term><literal>nogroup:&gid-nogroup;:65533:</literal></term> 190 190 <listitem> 191 191 <para>This is a default group used by some programs that do not … … 194 194 </varlistentry> 195 195 <varlistentry> 196 <term><literal>nobody:x: 65534:</literal></term>196 <term><literal>nobody:x:&gid-nobody;:</literal></term> 197 197 <listitem> 198 198 <para>This is used by NFS</para> -
BOOK/final-system/common/util-linux-ng.xml
re7585ab r846eed7 47 47 48 48 <screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \ 49 --enable-partx --disable-wall --enable-write</userinput></screen> 49 --enable-partx --disable-wall --enable-write \ 50 --disable-makeinstall-chown</userinput></screen> 50 51 51 52 <variablelist os="c"> … … 72 73 <para>This option allows the <command>write</command> program to be 73 74 installed.</para> 75 </listitem> 76 </varlistentry> 77 78 <varlistentry> 79 <term><parameter>--disable-makeinstall-chown</parameter></term> 80 <listitem> 81 <para>This option prevents installed programs from having groups 82 changed. They will be changed later in the book.</para> 74 83 </listitem> 75 84 </varlistentry> -
BOOK/general.ent
re7585ab r846eed7 47 47 <!ENTITY % patches-entities SYSTEM "patches.ent"> 48 48 %patches-entities; 49 50 <!ENTITY % uid-gid-entities SYSTEM "users_groups.ent"> 51 %uid-gid-entities; -
BOOK/introduction/common/changelog.xml
re7585ab r846eed7 38 38 39 39 <listitem> 40 <para>September 9, 2007</para> 41 <itemizedlist> 40 <para>September 15, 2007</para> 41 <itemizedlist> 42 <listitem> 43 <para>[jciccone] - Create entities for each UID and GID and reference 44 those entities throught the book instead of using user names and 45 group names.</para> 46 </listitem> 42 47 <listitem> 43 48 <para>[jciccone] - Updated Vim 7.1 fixes Patch to -3.</para>
Note:
See TracChangeset
for help on using the changeset viewer.