On 01/10/2011 07:57 PM, Brian Winfrey wrote:
> I am unable to get passed 6.12 Binutils due to expect -c "spawn ls"
> returning the "ptys error".
>
> if the command is run on host system it succeeds. this indicates that
> my kernel has support.
> if run on host as "su lfs" it succeeds. this indicates that it is not
> due to permissions.
> if run upon entering chroot it succeeds.  this indicates that /dev is
> mounted correctly.
> if run in chroot as "su binutils" it fails. (ditto if run as 'su 
> another_user'.)
>
> I notice that when I 'su another_user' in host the resulting SHLVL is
> 1; however, in chroot the result is 2.
>
> This is my third attempt, thinking I had missed something, so I have
> scripted everything.  I do not think I have missed any steps on this
> attempt, but I may fall short on "Package Users" Hint - prerequisite 2
> ;-)
>
> Any help is appeciated thanks,
> Brian
If you take a close look at the "Package Users" hint you will see in the 
first two paragraphs of Section 6 some information about installing 'su' 
in Chapter 5 of the book. In Chapter 5.17 of the book, "Coreutils-8.5," 
the last paragraph and the last command deal with this. There are a 
number of solutions. The one I used was to make 'su' setuid root.

Therefore, this situation is a permissions one and one that has evolved 
with LFS leaving the hint a mite outdated in this regard.

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

Reply via email to