Re: GCC: Attempting to run tests as "tester" user results in "su: Cannot drop the controlling terminal"
| 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: >> Hi everyone, after a flawless run through the LFS book so far, >> After building GCC, I get the following errors: >> >> (lfs chroot) root:/sources/gcc/build# chown -R tester . >> (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 >> >> Could there be anything wrong with any of the steps I did? > >Quote from another user who hit this several days ago: > >> Looks like it was a permission issue. >> chmod 755 /bin fixes it > >But I'm really skeptical about this "fix." Can you try "chmod -v 755 >/bin" to see if it works, and also reply with the output of this >command? > >-- >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 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