Tag: Danger

  • Adding the LFS User

    Ch. 4.3 of the manual. Add LFS user and group sudo groupadd lfssudo useradd -s /bin/bash -g lfs -m -k /dev/null lfs This adds user lfs, -m creates a home directory for user lfs-k /dev/null prevents something-s /bin/bash makes bash its default shell. Add user lfs password sudo passwd lfs It responds “bad password” and…

  • For Loop from Hell

    The next part of LFS Ch. 4.2, creating a limited directory layout. Descent into Hell The manual says: As root, for i in in lib sbin; do ln -sv usr/$i $LFS/$i done Google AI Mode explained that the “usr” in this code is relative to $LFS and therefore will be in $LFS and not in…

  • Directory for downloads

    In 3.1 Introduction Create a directory for downloads, make it writable and sticky sudo mkdir -v $LFS/sourcessudo chmod -v a+wt $LFS/sources mode at ‘mnt/lfs/sources’ changed from 0755 rwxr-xr-x to 1777 rwxrwxrwt Danger, Will Robinson Edit – Here is where we’re supposed to be using “sudo su -” , not “sudo.”