SCIENTIFIC-LINUX-USERS Archives

August 2012

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Todd And Margo Chester <[log in to unmask]>
Reply To:
Todd And Margo Chester <[log in to unmask]>
Date:
Mon, 6 Aug 2012 13:02:21 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (67 lines)
On 08/04/2012 06:25 AM, Tam Nguyen wrote:
> Thanks Todd.
>
> -Tam
>
> On Fri, Aug 3, 2012 at 6:48 PM, Todd And Margo Chester
> <[log in to unmask] <mailto:[log in to unmask]>> wrote:
>
>     On 07/31/2012 05:29 AM, Tam Nguyen wrote:
>
>         You are very welcome, Todd.
>         Please share with us your finding.  I would love to learn the
>         mystery
>         behind your issue.
>
>         -Tam
>
>
>     Hi Tam,
>
>     So far:
>          crypttab coughs on passwords with space:
>     https://bugzilla.redhat.com/__show_bug.cgi?id=845698
>     <https://bugzilla.redhat.com/show_bug.cgi?id=845698>
>
>          Crypttab does not mount volume at boot:
>     https://bugzilla.redhat.com/__show_bug.cgi?id=845701
>     <https://bugzilla.redhat.com/show_bug.cgi?id=845701>
>
>     Red Hat is pretty good about looking into these things,
>     so now we wait.
>
>     -T

Hi Tam,

Figured it out.  Or, rather the Red Hat guys figured it out for me.

As it transpires, crypttab thinks everything in the key file
is part of the pass phrase AND THAT INCLUDES THE *stinkin'*
LINE FEED!

You can see what I mean with the following:
      $ echo "abc" | hexdump -c
      0000000   a   b   c  \n

The \n at the end is the line feed and crypttab thinks
it is part of the pass phrase!

To create a \n free key file, you have to use "-n" option
in "echo".  For instance:
      $ echo -n "abc" | hexdump -c
      0000000   a   b   c

As you can see, no \n at the end.

I asked Red Hat if they would document this is the man page.
I have not heard back from them yet.
https://bugzilla.redhat.com/show_bug.cgi?id=845701

[editorial comment]AAAAAAAAAAAAHHHHHHHHHHHHHHHH!!!!![/editorial comment]

Thank you for all the help in fixing this.  I commented out my rc.local
work around and fstab now mounts /lin-bak correct at boot.

-T

ATOM RSS1 RSS2