%general-entities; ]> Creating the passwd and group Files /etc/passwd chroot /etc/group chroot Create the /etc/passwd file by running the following command: cat > /etc/passwd << "EOF" root:x:&uid-root;:&gid-root;:root:/root:/bin/bash bin:x:&uid-bin;:&gid-bin;:/bin:/bin/false daemon:x:&uid-daemon;:&gid-daemon;:/sbin:/bin/false messagebus:x:&uid-messagebus;:&gid-messagebus;:D-Bus Message Daemon User:/dev/null:/bin/false systemd-bus-proxy:x:&uid-systemd-bus-proxy;:&gid-systemd-bus-proxy;:systemd Bus Proxy:/:/bin/false systemd-journal-gateway:x:&uid-systemd-journal-gateway;:&gid-systemd-journal-gateway;:systemd Journal Gateway:/:/bin/false systemd-journal-remote:x:&uid-systemd-journal-remote;:&gid-systemd-journal-remote;:systemd Journal Remote:/:/bin/false systemd-journal-upload:x:&uid-systemd-journal-upload;:&gid-systemd-journal-upload;:systemd Journal Upload:/:/bin/false systemd-network:x:&uid-systemd-network;:&gid-systemd-network;:systemd Network Management:/:/bin/false systemd-resolve:x:&uid-systemd-resolve;:&gid-systemd-resolve;:systemd Resolver:/:/bin/false systemd-timesync:x:&uid-systemd-timesync;:&gid-systemd-timesync;:systemd Time Synchronization:/:/bin/false systemd-coredump:x:&uid-systemd-coredump;:&gid-systemd-coredump;:systemd Core Dumper:/:/bin/false nobody:x:&uid-nobody;:&gid-nogroup;:Unprivileged User:/dev/null:/bin/false EOF The actual password for root (the x used here is just a placeholder) will be set later. Create the /etc/group file by running the following command: cat > /etc/group << "EOF" root:x:0: bin:x:&gid-bin;: sys:x:&gid-sys;: kmem:x:&gid-kmem;: tty:x:&gid-tty;: tape:x:&gid-tape;: daemon:x:&gid-daemon;: floppy:x:&gid-floppy;: disk:x:&gid-disk;: lp:x:&gid-lp;: dialout:x:&gid-dialout;: audio:x:&gid-audio;: video:x:&gid-video;: utmp:x:&gid-utmp;: usb:x:&gid-usb;: cdrom:x:&gid-cdrom;: adm:x:&gid-adm;: mail:x:&gid-mail;: messagebus:x:&gid-messagebus;: nogroup:x:&gid-nogroup;: systemd-bus-proxy:x:&gid-systemd-bus-proxy;: systemd-journal:x:&gid-systemd-journal;: systemd-journal-gateway:x:&gid-systemd-journal-gateway;: systemd-journal-remote:x:&gid-systemd-journal-remote;: systemd-journal-upload:x:&gid-systemd-journal-upload;: systemd-network:x:&gid-systemd-network;: systemd-resolve:x:&gid-systemd-resolve;: systemd-timesync:x:&gid-systemd-timesync;: systemd-coredump:x:&gid-systemd-coredump;: wheel:x:&gid-wheel;: EOF To remove the I have no name! prompt, start a new shell. Since a full Glibc was installed in and the /etc/passwd and /etc/group files have been created, user name and group name resolution will now work. exec /tools/bin/bash --login +h Note the use of the +h directive. This tells bash not to use its internal path hashing. Without this directive, bash would remember the paths to binaries it has executed. To ensure the use of the newly compiled binaries as soon as they are installed, the +h directive will be used for the duration of the next chapters.