15.2. Changing the Ownership of the CLFS System

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

[Important]

Important

The commands on this page of the 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 root:root ${CLFS}-final

The following files should not to belong to the root group, they should belong to the utmp group (group 13):

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

The following device nodes need to be created for some systems to boot correctly:

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