Changeset 8f1ae86 for BOOK/boot/common
- Timestamp:
- Aug 8, 2010, 5:43:25 PM (14 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 1c83a65f, 54cc3d8
- Parents:
- 34be04a6
- Location:
- BOOK/boot/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/boot/common/changingowner.xml
r34be04a6 r8f1ae86 19 19 for ${CLFS} and its subdirectories by running this command:</para> 20 20 21 <screen os="b"><userinput>chown -Rv root:root ${CLFS}</userinput></screen> 21 <screen os="b"><userinput>chown -Rv &uid-root;:&gid-root; ${CLFS}</userinput></screen> 22 23 <para>The following files are to be owned by the group 24 <systemitem class="username">utmp</systemitem> not by 25 <systemitem class="username">root</systemitem>.</para> 26 27 <screen><userinput>chgrp -v &gid-utmp; ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen> 28 22 29 23 30 </sect1> -
BOOK/boot/common/fstab.xml
r34be04a6 r8f1ae86 30 30 proc /proc proc defaults 0 0 31 31 sysfs /sys sysfs defaults 0 0 32 devpts /dev/pts devpts gid= 4,mode=620 0 032 devpts /dev/pts devpts gid=&gid-tty;,mode=620 0 0 33 33 shm /dev/shm tmpfs defaults 0 0 34 34 # End /etc/fstab</literal> -
BOOK/boot/common/pwdgroup.xml
r34be04a6 r8f1ae86 44 44 45 45 <screen><userinput>cat > ${CLFS}/etc/passwd << "EOF" 46 <literal>root: :0:0:root:/root:/bin/bash</literal>46 <literal>root:x:&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;:&gid-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>operator:x: 50:0:operator:/root:/bin/bash</literal></term>95 <term><literal>operator:x:&uid-operator;:&gid-root;:operator:/root:/bin/bash</literal></term> 96 96 <listitem> 97 97 <para>Often used to allow system operators to access the system</para> … … 99 99 </varlistentry> 100 100 <varlistentry> 101 <term><literal>postmaster:x: 51:30:postmaster:/var/spool/mail:/bin/false</literal></term>101 <term><literal>postmaster:x:&uid-postmaster;:&gid-mail;:postmaster:/var/spool/mail:/bin/false</literal></term> 102 102 <listitem> 103 103 <para>Generally used as an account that receives all the information of troubles with the mail server</para> … … 105 105 </varlistentry> 106 106 <varlistentry> 107 <term><literal>nobody:x: 65534:65534:nobody:/:/bin/false</literal></term>107 <term><literal>nobody:x:&uid-nobody;:&gid-nobody;:nobody:/:/bin/false</literal></term> 108 108 <listitem> 109 109 <para>Used by NFS</para> … … 117 117 <screen><userinput>cat > ${CLFS}/etc/group << "EOF" 118 118 <literal>root:x:0: 119 bin:x: 1:120 sys:x: 2:121 kmem:x: 3:122 tty:x: 4:123 tape:x: 5:124 daemon:x: 6:125 floppy:x: 7:126 disk:x: 8:127 lp:x: 9:128 dialout:x: 10:129 audio:x: 11:130 video:x: 12:131 utmp:x: 13:132 usb:x: 14:133 cdrom:x: 15:</literal>119 bin:x:&gid-bin;: 120 sys:x:&gid-sys;: 121 kmem:x:&gid-kmem;: 122 tty:x:&gid-tty;: 123 tape:x:&gid-tape;: 124 daemon:x:&gid-daemon;: 125 floppy:x:&gid-floppy;: 126 disk:x:&gid-disk;: 127 lp:x:&gid-lp;: 128 dialout:x:&gid-dialout;: 129 audio:x:&gid-audio;: 130 video:x:&gid-video;: 131 utmp:x:&gid-utmp;: 132 usb:x:&gid-usb;: 133 cdrom:x:&gid-cdrom;:</literal> 134 134 EOF</userinput></screen> 135 135 … … 139 139 140 140 <varlistentry> 141 <term><literal>adm:x: 16:root,adm,daemon</literal></term>141 <term><literal>adm:x:&gid-adm;:root,adm,daemon</literal></term> 142 142 <listitem> 143 143 <para>All users in this group are allowed to do administrative tasks</para> … … 145 145 </varlistentry> 146 146 <varlistentry> 147 <term><literal>console:x: 17:</literal></term>147 <term><literal>console:x:&gid-console;:</literal></term> 148 148 <listitem> 149 149 <para>This group has direct access to the console</para> … … 151 151 </varlistentry> 152 152 <varlistentry> 153 <term><literal>cdrw:x: 18:</literal></term>153 <term><literal>cdrw:x:&gid-cdrw;:</literal></term> 154 154 <listitem> 155 155 <para>This group is allowed to use the CDRW drive</para> … … 157 157 </varlistentry> 158 158 <varlistentry> 159 <term><literal>mail:x: 30:mail</literal></term>159 <term><literal>mail:x:&gid-mail;:mail</literal></term> 160 160 <listitem> 161 161 <para>Used by MTAs (Mail Transport Agents)</para> … … 163 163 </varlistentry> 164 164 <varlistentry> 165 <term><literal>news:x: 31:news</literal></term>165 <term><literal>news:x:&gid-news;:news</literal></term> 166 166 <listitem> 167 167 <para>Used by Network News Servers</para> … … 169 169 </varlistentry> 170 170 <varlistentry> 171 <term><literal>users:x: 1000:</literal></term>171 <term><literal>users:x:&gid-users;:</literal></term> 172 172 <listitem> 173 173 <para>The default GID used by shadow for new users</para> … … 175 175 </varlistentry> 176 176 <varlistentry> 177 <term><literal>nogroup:x: 65533:</literal></term>177 <term><literal>nogroup:x:&gid-nogroup;:</literal></term> 178 178 <listitem> 179 179 <para>This is a default group used by some programs that do not … … 182 182 </varlistentry> 183 183 <varlistentry> 184 <term><literal>nobody:x: 65534:</literal></term>184 <term><literal>nobody:x:&gid-nobody;:</literal></term> 185 185 <listitem> 186 186 <para>This is used by NFS</para>
Note:
See TracChangeset
for help on using the changeset viewer.