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

"kevadesu" ([email protected] via lfs-support Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
Xi Ruoyao ([email protected] via lfs-support Mailing List) <[email protected]> wrote:
>On Fri, 2025-01-10 at 22:22 +0000, kevadesu wrote:
>&gt; Hi everyone, after a flawless run through the LFS book so far,
>&gt; After building GCC, I get the following errors:
>&gt; 
>&gt; (lfs chroot) root:/sources/gcc/build# chown -R tester .
>&gt; (lfs chroot) root:/sources/gcc/build# su tester -c &quot;PATH=$PATH make -k check&quot;
>&gt; su: Cannot drop the controlling terminal
>&gt; (lfs chroot) root:/sources/gcc/build# su tester
>&gt; Cannot execute /bin/bash: Permission denied
>&gt; 
>&gt; Could there be anything wrong with any of the steps I did?
>
>Quote from another user who hit this several days ago:
>
>&gt;    Looks like it was a permission issue.
>&gt; chmod 755 /bin   fixes it
>
>But I&#x27;m really skeptical about this &quot;fix.&quot;  Can you try &quot;chmod -v 755
>/bin&quot; to see if it works, and also reply with the output of this
>command?
>
>-- 
>Xi Ruoyao &lt;[email protected]&gt;
>School of Aerospace Science and Technology, Xidian University
>-- 
>http://lists.linuxfromscratch.org/sympa/info/lfs-support
>Unsubscribe: See the above information page

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)
(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
(lfs chroot) root:/sources/gcc/build#

-- 
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.