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 Sat, 2025-01-11 at 10:10 +0000, kevadesu wrote:
>
>&gt; Here&#x27;s the output:
>&gt; 
>&gt;  ~  sudo chroot &quot;$LFS&quot; /usr/bin/env -i   \
>&gt;                 HOME=/root                  \
>&gt;                 TERM=&quot;$TERM&quot;                \
>&gt;                 PS1=&#x27;(lfs chroot) \u:\w\$ &#x27; \
>&gt;                 PATH=/usr/bin:/usr/sbin     \
>&gt;                 MAKEFLAGS=&quot;-j$(nproc)&quot;      \
>&gt;                 TESTSUITEFLAGS=&quot;-j$(nproc)&quot; \
>&gt;                 /bin/bash --login
>&gt; [sudo] password for kevadesu: 
>&gt; (lfs chroot) root:/# cd sources/gcc/build
>&gt; (lfs chroot) root:/sources/gcc/build# chmod -v 755 /bin
>&gt; mode of &#x27;/bin&#x27; retained as 0755 (rwxr-xr-x)
>
>Then either that user&#x27;s report was inaccurate or you have a different
>problem.
>
>&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
>
>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 &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

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