Changes in postlfs/config/skel.xml [45ab6c7:3f2db3a6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/config/skel.xml
r45ab6c7 r3f2db3a6 9 9 <?dbhtml filename="skel.html"?> 10 10 11 <sect1info>12 <date>$Date$</date>13 </sect1info>14 11 15 12 <title>Configuring for Adding Users</title> … … 133 130 <screen role="root"><userinput>useradd -m <replaceable><newuser></replaceable></userinput></screen> 134 131 132 <para> 133 If you are sharing a <filename class="directory">/home</filename> 134 or <filename class="directory">/usr/src</filename> with another 135 Linux distro (for example, the host distro used for building LFS), you 136 can create a user with the same UID (and, same primary group GID) to 137 keep the file ownership consistent across the systems. First, on 138 <emphasis>the other distro</emphasis>, get the UID of the user and the 139 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. Now 146 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 135 152 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.