Tried the first S3 authentication example once more:
s3cmd sign $(printf "GET\n\n\nTue, 27 Mar 2007 19:36:42 +0000\n/johnsmith/photos/puppy.jpg")
I then tried to generate a signature to use in a query string (last in the sequence of S3 examples) in the s3 devguide.
Date: Mon, 26 Mar 2007 19:37:58 +0000
s3cmd sign $(printf "GET\n\n\n1141889120\n/johnsmith/photos/puppy.jpg")
and the same signature was generated. Is there something wrong with the way the string-to-sign is passed across? Don't know scripting in Linux so cannot figure it out.