Re: how to sign files inside a folder?

2009-05-26 Thread John Clizbe
John Clizbe wrote:
> Faramir wrote:
>> Hello,
>>  I saw a question in the support list in Spanish language, and it is
>> about how to sign files inside a folder, in Windows OS, without using
>> additional tools. The goal is to have a tree of folders, with files
>> inside, and to sign individually each file (with detached signature, if
>> I am not wrong).
>> 
>>  Since I have never had to do something like that, I don't have the
>> faintest idea about how to do it, if it is possible to do it.
>> 
>> Compressing the folder an signing the compressed file is what
>> the person behind the question wants to avoid.
> 
> I saw that one.
> 
> I don't know about doing it "without using additional tools". The
> windows CMD shell doesn't give one a boatload of useful commands.

Amazing what I can find with Google and an ancient Pocket Ref

Try this in a CMD window

cd \top\level\directory

FOR /F "usebackq delims==" %i IN (`dir/s/b *.txt`) DO @gpg --passphrase
deafbeef -u 0xdecafbad -sb  %i

-u is the key one wishes to use to sign.



-- 
John P. Clizbe  Inet:John (a) Mozilla-Enigmail.org
You can't spell fiasco without SCO. hkp://keyserver.gingerbear.net  or
 mailto:pgp-public-k...@gingerbear.net?subject=help

Q:"Just how do the residents of Haiku, Hawai'i hold conversations?"
A:"An odd melody / island voices on the winds / surplus of vowels"



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: how to sign files inside a folder?

2009-05-26 Thread John Clizbe
Faramir wrote:
> Hello,
>   I saw a question in the support list in Spanish language, and it is
> about how to sign files inside a folder, in Windows OS, without using
> additional tools. The goal is to have a tree of folders, with files
> inside, and to sign individually each file (with detached signature, if
> I am not wrong).
> 
>   Since I have never had to do something like that, I don't have the
> faintest idea about how to do it, if it is possible to do it.
> 
> Compressing the folder an signing the compressed file is what
> the person behind the question wants to avoid.

I saw that one.

I don't know about doing it "without using additional tools". The
windows CMD shell doesn't give one a boatload of useful commands.

I'd pull the RC1 of MSYS 1.0.11 cause this is a snap with bash and find.
Using his .TXT example:

cd 
for file in $(find . -name \*.[tT][xX]][tT] -print);\
  do echo $file;\
  gpg --passphrase deafbeef -u 0xdecafbad -sb $file ; \
done


-- 
John P. Clizbe  Inet:John (a) Mozilla-Enigmail.org
You can't spell fiasco without SCO. hkp://keyserver.gingerbear.net  or
 mailto:pgp-public-k...@gingerbear.net?subject=help

Q:"Just how do the residents of Haiku, Hawai'i hold conversations?"
A:"An odd melody / island voices on the winds / surplus of vowels"



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: how to sign files inside a folder?

2009-05-26 Thread John W. Moore III
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Faramir wrote:
> Hello,
>   I saw a question in the support list in Spanish language, and it is
> about how to sign files inside a folder, in Windows OS, without using
> additional tools. The goal is to have a tree of folders, with files
> inside, and to sign individually each file (with detached signature, if
> I am not wrong).
> 
>   Since I have never had to do something like that, I don't have the
> faintest idea about how to do it, if it is possible to do it.
> 
> Compressing the folder an signing the compressed file is what
> the person behind the question wants to avoid.

I recommend the addition of the GPG Frontend GPGee
[http://gpgee.excelcia.org/] as You may run this app on a Folder and You
will be left with the Folder appearing unchanged but each individual
file within the Folder/Directory being Encrypted. Signed or Encrypted &
Signed.  Just remember that if You wish every thing left Encrypted You
will then need to Open the Folder/Directory and then Delete/Wipe all the
Un-Encrypted copies.

HTH

JOHN ;)
Timestamp: Tuesday 26 May 2009, 23:18  --400 (Eastern Daylight Time)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10-svn5021: (MingW32)
Comment: Public Key at:  http://tinyurl.com/8cpho
Comment: Gossamer Spider Web of Trust: https://www.gswot.org
Comment: Homepage:  http://tinyurl.com/yzhbhx

iQEcBAEBCgAGBQJKHLEjAAoJEBCGy9eAtCsP6kcIAKeCf4X4mDyAK2TEE+Hp2A+i
1lpWB0qUHzo4nERT785sdKg2nqndmyYIVTyzbJYEZya38gyUyr60xcNkQKMGHDQO
/ogLfvZI+JjgiYeizWz9SFNaR90hqjnbaYYpXJIf8nk92tQCzRdzZZLUtEn1qvvb
tOMf8kZEqNRk32lenjv6K8LR7cQ6kaO16qMNiMYHzSHxA9ufHXRSqKdfjxy48fyB
JMRtXtLb0oJesXwNAid4eX1a0EhUl+GAtKnABxFCBjsEJjrfpYIlVYr96qHOkaQ9
lesfHohdWkxmRZzzUOpWDCUVn5J/ezDXWnUJSySPPz5dhCLjbvfEYbp+wP/Q+zI=
=Pmsd
-END PGP SIGNATURE-

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


how to sign files inside a folder?

2009-05-26 Thread Faramir
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hello,
I saw a question in the support list in Spanish language, and it is
about how to sign files inside a folder, in Windows OS, without using
additional tools. The goal is to have a tree of folders, with files
inside, and to sign individually each file (with detached signature, if
I am not wrong).

Since I have never had to do something like that, I don't have the
faintest idea about how to do it, if it is possible to do it.

Compressing the folder an signing the compressed file is what
the person behind the question wants to avoid.


  Best Regards
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBCAAGBQJKHJ3SAAoJEMV4f6PvczxAtP0H/1EbgoHoLhEQDEGmq1Zqx5T4
4O3CgOkq+qGzRQ8AUE9/IBufuhMsNSEZKfLEZjFnPV0THZk18odcZmyW4GtTixTM
P/jm5EYTKkDxRSR8WcsHXVMnrylh7ux0LANLtAPOd4eq9WmIoZZs5ZeN4/wgtY1p
BuMZF6Gbmz6dXIl/JwCnvThFpANz5d2aptQu5amTVlbohVN2aJkEGWedgM7q+5Iq
QNZTqvfhYis6y+74LMIl2abfFIpB4IesAmjaCoyoAieJpX9SzYWONzM+bs+nXqax
tUG1hotvHzbhg5MZiiS6FzP3C3f2WJeu6MxscLPJzrwngbWJmAME5upvJjgcfRw=
=EgFR
-END PGP SIGNATURE-

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Can't enter passphrase in su session.

2009-05-26 Thread mike _
2009/5/25 Stan Tobias :
> mike _  wrote:
> I don't use and I don't know how `pinentry' works, so let it be a blind
> shot.  `ssh' opens a new terminal session, while `su' doesn't.  When you
> `su - newuser', you run with stdin/stdout/stderr attached to the olduser
> terminal, with the olduser owner and most probably zeroed permission
> bits for the "other" group, which means newuser cannot open /dev/tty.
> If a program (like `pinentry' maybe, or `screen') run by newuser tries
> to read directly from a terminal which belongs to olduser, it will fail.
> I sometimes "fix" this by running `exec script /dev/null'.

You've got it! It is a tty permissions problem. Apparently it's a
general issue that programs that want to write directly to terminal
won't work when run under su. E.g. there's mention here of someone
encountering the problem with screen.
http://www.mail-archive.com/screen-us...@gnu.org/msg02081.html

If I do this:

$ chmod o+rw $(tty)

before using 'su -' to become bob then I am prompted to enter the
passphrase when I run gpg.

Setting such permissions on the tty device seems like something that
would usually be a hideously bad idea. I think doing it on a sever
which only a very small number of trusted people are able to log in to
would be OK though. (Unless anyone can suggest a reason why not.)

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users