-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/09/2010 01:16 PM, Bryan Kadzban wrote:
> max wrote:
>> Chapter 6.12: binutils-2.20
>> ---------------------------
>> /tools/libexec/pt_chown needs to be suid root at this point,
>
> Not if devpts is set up correctly -- or at least, that used to be the
> case a couple years ago.  You don't need pt_chown if the kernel is
> creating the /dev/pts/* device nodes for you, with the correct ownership
> and group and permissions (at least, owned by the user that opened
> /dev/ptmx), which is what it has always done with devpts.
>
> If /dev/pts isn't mounted, then that's the correct way to fix this.
>
> pt_chown *should* not be required on Linux.
>
>

Bryan,

What you say is true for the root user, but when trying to run the
tests as a non-root package user, one gets an error about the system
having no more pttys.

Please see the thread started by Juan Carmona, "expect -c "spawn ls"
command using Package Users hint," starting on August 17,
2010.

There's something about working as a non-root user that causes a
problem. I suspect it's because, at least until one builds and install
shadow, the copies of useradd and groupadd used by the package user
scripts aren't very sophisticated (see section 5.10 Temporary Files in
the hint).

The solution that Juan and I wrote about in August is to run the tests
as a root user and then install the package as a package user.

Max's solution seems a lot cleaner, and messing with pt_chown in
/tools won't matter when one finishes with chapter 6.

Regards,

- -Drew


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyxCegACgkQ7ZZ4z2wRxN1gKACcD7ERzHCrIpsgOkmk8EqhdIUD
ziMAnR1Vun0oQQ7cK0NhTx0gIDD5aCK0
=G2an
-----END PGP SIGNATURE-----

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to