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 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 (lfs chroot) root:/# ls -l / ls -l /lib64 ls -l /lib/ld-linux-x86-64.so.2 ls -l /bin/bash total 84 lrwxrwxrwx 1 root root 7 Oct 23 19:46 bin -> usr/bin drwxr-xr-x 2 root root 4096 Dec 21 19:28 boot drwxr-xr-x 21 root root 4720 Jan 11 11:15 dev drwxr-xr-x 6 root root 4096 Jan 8 20:28 etc drwxr-xr-x 3 root root 4096 Dec 21 21:13 home lrwxrwxrwx 1 root root 7 Oct 23 19:46 lib -> usr/lib drwxr-xr-x 2 30034 root 4096 Nov 7 19:02 lib64 drwx------ 2 root root 16384 Oct 19 19:06 lost+found drwxr-xr-x 4 root root 4096 Dec 21 19:28 media drwxr-xr-x 3 30034 30034 4096 Nov 5 19:24 mnt drwxr-xr-x 2 root root 4096 Dec 21 19:28 opt dr-xr-xr-x 503 root root 0 Jan 11 11:54 proc drwxr-x--- 2 root root 4096 Jan 11 11:11 root drwxrwxrwt 2 root root 40 Jan 11 11:54 run lrwxrwxrwx 1 root root 8 Oct 23 19:46 sbin -> usr/sbin drwxrwxrwt 48 root root 4096 Jan 8 20:22 sources drwxr-xr-x 2 root root 4096 Dec 21 19:28 srv dr-xr-xr-x 13 root root 0 Jan 11 11:15 sys drwxrwxrwt 3 root root 20480 Jan 9 17:44 tmp drwxr-xr-x 11 root root 4096 Dec 21 19:28 usr drwxr-xr-x 10 root root 4096 Jan 2 22:49 var total 0 lrwxrwxrwx 1 30034 30034 27 Nov 7 19:02 ld-linux-x86-64.so.2 -> ../lib/ld-linux-x86-64.so.2 lrwxrwxrwx 1 30034 30034 27 Nov 7 19:02 ld-lsb-x86-64.so.3 -> ../lib/ld-linux-x86-64.so.2 -rwxr-xr-x 1 root root 1310800 Jan 3 11:09 /lib/ld-linux-x86-64.so.2 -rwxr-xr-x 1 root root 4333080 Nov 9 18:26 /bin/bash (lfs chroot) root:/# -- http://lists.linuxfromscratch.org/sympa/info/lfs-support Unsubscribe: See the above information page