Linux From Scratch LFS

densebeast

New Member
Joined
May 23, 2025
Messages
2
Reaction score
1
Credits
26
Hello,
I may have made a mistake somewhere along the line, looking for assistance. I'm preparing to go into chroot, not aware of any build errors so far

7.2. Changing Ownership

chown --from lfs -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}
case $(uname -m) in
x86_64) chown --from lfs -R root:root $LFS/lib64 ;;
esac

returns 'operation not permitted'.

Not sure what I missed or how to go forward as user is not a sudoer, nor have I been prompted to create a root password.

LFS is really great and I've learned a lot but they are awfully vague sometimes in the instructions we're supposed to follow word for word. The writers seem to think we know what's in their head so I'm stuck using my best judgement. I'm not an expert nor a newb. I have to wonder how these vagaries may cause people to fail or just give up.
 


not really sure as I'm still learning that stuff myself (though I'm not adventurous enough to try LFS) but it looks like you're trying to grant the user named lfs ownership of some directories. if you're logged in as root now, not sure what would prevent you from performing that action... did you already create a user named lfs?
 
I've created lfs user, and in su - lfs now. But I've never been instructed to add user lfs as a sudoer, nor have we gotten to the point that a root password has been created. Since moving into su - lfs I built all pkgs as user LFS (unless specifically instructed otherwise) and have had zero build permission errors so far. Up until moving into the su - lfs environment I did everything as root (su -). This is the first time since su - lfs that I've been told to run a command as root, and I don't know how to get there.
 


Follow Linux.org

Members online

No members online now.

Top