8.4. Changing the Ownership Of The CLFS System

Throughout the book, every package has been compiled and installed as the lfs user. The final system should be owned by root.

[Important]

Important

The commands in the remainder of this book must be performed while logged in as root. Check that ${CLFS} is still set:

echo ${CLFS}

Make root the owner of the entire CLFS system.

chown -Rv 0:0 ${CLFS}

The following files are not the be owned by root.

chgrp -v 13 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog

The following device nodes need to be created for the system to boot.

mknod -m 0666 ${CLFS}/dev/null c 1 3
mknod -m 0600 ${CLFS}/dev/console c 5 1

If you did not create the following rules in Section 7.3, “Udev Rules-1.1-pre3”. You need to create them now.

mknod -m 0666 ${CLFS}/lib/udev/devices/null c 1 3
mknod -m 0600 ${CLFS}/lib/udev/devices/console c 5 1