[lfs-dev] campaign to save su

Firerat firer4t at googlemail.com
Tue Sep 4 11:44:50 PDT 2012


On Sep 4, 2012 6:58 PM, "John Burrell" <john_burrell at hotmail.com> wrote:
>
>
> >> I already understand the problem. Thank.
> >>
> >As do I now that I know that the su-tools I thought may have come
packaged with the helper >scripts didn't, it was from coreutils and is now
awol
> >well, like I said it's been a while, but I have acquired a couple of old
Dell d600 laptops so will play >around.
> >My guess is simply grabbing from the host as Bruce suggested is the
easiest option.
> >Firerat
>
>
> I intuitively don't like that solution because if someone grabs my script
to play around with it, they will likely have a different host and su could
be in a different location from my host.
>
>
True, but easy with a script, something like

    install $(which su) /tools/bin/su

>
> I tried compiling shadow at the end of chapter 5 and using that su - but
it doesn't work. It doesn't appear to execute the bashrc file in the
package user directory. I went back to try coreutils-8.17 and that version
of su works okay. I don't understand why at the moment.
>
>
Shot in the dark,.but are you using login flag?
   su -l user
>
> What is likely to be the difference between the coreutils-8.17 version
and the shadow version of su, that I compiled, to make it behave this way?
>
>
If you are not using -,-l,--login it could be that coreutils defaults to
this BUT I don't see why it should?!1!

> jb.
>
-- 
Firerat
>
>
>
>
>
>
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20120904/4d54b99f/attachment.html>


More information about the lfs-dev mailing list