Changes in postlfs/config/skel.xml [3f2db3a6:45ab6c7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/config/skel.xml
r3f2db3a6 r45ab6c7 9 9 <?dbhtml filename="skel.html"?> 10 10 11 <sect1info> 12 <date>$Date$</date> 13 </sect1info> 11 14 12 15 <title>Configuring for Adding Users</title> … … 130 133 <screen role="root"><userinput>useradd -m <replaceable><newuser></replaceable></userinput></screen> 131 134 132 <para>133 If you are sharing a <filename class="directory">/home</filename>134 or <filename class="directory">/usr/src</filename> with another135 Linux distro (for example, the host distro used for building LFS), you136 can create a user with the same UID (and, same primary group GID) to137 keep the file ownership consistent across the systems. First, on138 <emphasis>the other distro</emphasis>, get the UID of the user and the139 GID of the user's primary group:140 </para>141 142 <screen role="nodump"><userinput>getent passwd <replaceable><username></replaceable> | cut -d ':' -f 3,4</userinput></screen>143 144 <para>145 The command should output the UID and GID, separated by a colon. Now146 on the BLFS system, create the primary group and the user:147 </para>148 149 <screen role="root"><userinput>groupadd -g <replaceable><GID></replaceable> <replaceable><username></replaceable> &&150 useradd -u <replaceable><UID></replaceable> -g <replaceable><username></replaceable> <replaceable><username></replaceable></userinput></screen>151 152 135 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.