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]> |
On Sat, 2025-01-11 at 14:48 +0000, [email protected] wrote: > Xi Ruoyao ([email protected] via lfs-support Mailing List) <[email protected]> wrote: > > On Sat, 2025-01-11 at 10:55 +0000, [email protected] wrote: > > > > > (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 > > > > Hmm who is "30034"? Is that the UID for the lfs user on the host > > distro? But we have > > > > case $(uname -m) in > > x86_64) chown --from lfs -R root:root $LFS/lib64 ;; > > esac > > > > in section 7.2 which should have changed the owner to root, so this > > shouldn't happen anyway. > > > > And what does "ls -l /usr" output in the chroot environment? > > > > -- > > 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 /usr > total 60 > drwxr-xr-x 2 root root 12288 Jan 8 20:26 bin > drwxr-xr-x 47 root root 12288 Jan 8 20:26 include > drwxr-xr-x 26 root root 12288 Jan 8 20:26 lib > drwxr-xr-x 6 root root 4096 Nov 10 17:22 libexec > drwxr-xr-x 8 root root 4096 Dec 21 19:28 local > drwxr-xr-x 2 root root 4096 Jan 8 20:26 sbin > drwxr-xr-x 20 root root 4096 Jan 3 18:55 share > drwxr-xr-x 2 root root 4096 Dec 21 19:28 src > drwxr-xr-x 4 root root 4096 Nov 10 16:31 x86_64-lfs-linux-gnu > (lfs chroot) root:/# Try "chmod -v 755 /" in chroot. Also you need to fix those directories owned by "30034" despite they seem not the cause of the su issue. They'll be a security hole when the LFS system is completed. -- 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