Re: GCC: Attempting to run tests as "tester" user results in "su: Cannot drop the controlling terminal"

"Xi Ruoyao" ([email protected] via lfs-support Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
On Sat, 2025-01-11 at 10:10 +0000, kevadesu wrote:

> Here's the output:
> 
>  ~  sudo chroot "$LFS" /usr/bin/env -i   \
>                 HOME=/root                  \
>                 TERM="$TERM"                \
>                 PS1='(lfs chroot) \u:\w\$ ' \
>                 PATH=/usr/bin:/usr/sbin     \
>                 MAKEFLAGS="-j$(nproc)"      \
>                 TESTSUITEFLAGS="-j$(nproc)" \
>                 /bin/bash --login
> [sudo] password for kevadesu: 
> (lfs chroot) root:/# cd sources/gcc/build
> (lfs chroot) root:/sources/gcc/build# chmod -v 755 /bin
> mode of '/bin' retained as 0755 (rwxr-xr-x)

Then either that user's report was inaccurate or you have a different
problem.

> (lfs chroot) root:/sources/gcc/build# su tester -c "PATH=$PATH make -k check"
> su: Cannot drop the controlling terminal
> (lfs chroot) root:/sources/gcc/build# su tester
> Cannot execute /bin/bash: Permission denied

Can you run several commands:

ls -l /
ls -l /lib64
ls -l /lib/ld-linux-x86-64.so.2
ls -l /bin/bash

in the chroot environment (or out of the chroot environment but prepend
$LFS to the paths) and reply with the outputs?

-- 
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.