Lfs version 11.0 on Ubuntu 21.10 does not allow dropping the controlling terminal.
Lfs version 11.0 on Ubuntu 21.10 does not allow dropping the controlling terminal.
You're encountering an issue where `su tester -c [...]` fails because the system can't drop the controlling terminal. The `tty` output shows `/dev/pts/0`, which suggests a problem with terminal configuration. Try mounting your system's config files or adjusting the `/etc/profile` to allow su to run without dropping the terminal. Also, ensure you're using the correct user context when running commands.
Execute the command from the tester user. Run the path and issue the required commands.
It seems the system blocked /bin/bash due to permission issues. The `/` directory had permissions set to 700 instead of the correct 755. It looks like you might have overlooked this, but it could help others facing similar problems with LFS!
I adjusted it for you as well. From inside the chroot environment, I just required chmod 755 /