The UNIX and Linux Forums  


Go Back   UNIXおよびLinuxフォーラム > トップフォーラム > シェルプログラミングとスクリプティング
Googleのunix.com



シェルプログラミングとスクリプティング KSH 、 CSH 、 shに、 bashの、はPerl 、 PHPは、削除するsed 、 Awkの、他のシェルスクリプトやシェルスクリプト言語についての質問の投稿はこちら。

その他のUNIXおよびLinuxフォーラムトピックは参考にすること
スレッド スレッドスターター フォーラム 返信 最後の投稿
ユーザのログインの問題とファイル一覧の問題。 pernasivam AIX 1 2009年6月18日 10:09午前
もう一つの問題にループ問題 aliahsan81 シェルプログラミングとスクリプティング 3 2009年1月7日 02:02午前
ハードウェアに問題を見つけることに問題 girish.batra Sun Solaris 8 2008年9月9日 11:10午前
sshのスクリプトの問題問題 pcjandyala シェルプログラミングとスクリプティング 2 2008年7月31日 04:27午後
ddコマンドの問題かもしれない問題やAFSを 片蓋柱 シェルプログラミングとスクリプティング 0 2006年8月25日 11:10午前

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek を搭載 Powered by Google
 
LinkBack スレッドツール このスレッドを検索 スレッドを評価 表示モード
  #1固定リンク)  
Old 2009年7月1日
anushree.a anushree.a is offline
登録ユーザー
  
 

参加日: 2008年5月
投稿: 87
GPGをEncription問題

親愛なる友人、
私のgpgの対称暗号化を使用している。私としては、ファイルを暗号化します

のgpg -対称<ファイル名>

その後は、 2回パスワードの入力を要求する

今ではproblmeですが、私はいくつかある 700変なファイルが暗号化される 対称のgpg encriptionを使用して
ū方法を教えてplzを使用することはできますが"〜のために"ループ。

よろしくお願い
Anushree.a
  #2固定リンク)  
Old 2009年7月1日
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
モデレータ
  
 

参加日: 2003年12月
場所:フロリダ州
投稿数: 1,934
男のgpg 。読むまでは、バッチモードについて。
  #3固定リンク)  
Old 2009年7月7日
anushree.a anushree.a is offline
登録ユーザー
  
 

参加日: 2008年5月
投稿: 87
男性は結果のgpgてthro ...しかし、必要な詳細を取得することができません...
誰でも親切に教えてください場合は、解決策を知って知っている
よろしくお願い
Anushree
  #4固定リンク)  
Old 2009年7月7日
pludi's Avatar
pludi pludi is offline Forum Staff  
モデレータ
  
 

参加日: 2008年12月
場所: 。で
投稿数: 1,921
のmanページから(もちろん、読む)は、役立つかもしれないいくつかのオプションがある:
コード:
       --batch
       --no-batch
              Use batch mode.  Never ask, do not allow  interactive  commands.
              --no-batch disables this option.

       --no-tty
              Make  sure that the TTY (terminal) is never used for any output.
              This option is needed in  some  cases  because  GnuPG  sometimes
              prints warnings to the TTY even if --batch is used.

       --passphrase-fd n
              Read the passphrase from file descriptor n. Only the first  line
              will  be  read  from  file descriptor n. If you use 0 for n, the
              passphrase will be read from stdin. This can  only  be  used  if
              only  one  passphrase is supplied.  Note that this passphrase is
              only used if the option --batch has also been  given.   This  is
              different from gpg.


       --passphrase-file file
              Read  the passphrase from file file. Only the first line will be
              read from  file  file.  This  can  only  be  used  if  only  one
              passphrase is supplied. Obviously, a passphrase stored in a file
              is of questionable security if other users can read  this  file.
              Don't  use  this  option  if  you  can avoid it.  Note that this
              passphrase is only used if the  option  --batch  has  also  been
              given.  This is different from gpg.


       --passphrase string
              Use  string as the passphrase. This can only be used if only one
              passphrase is supplied. Obviously, this is of very  questionable
              security  on  a  multi-user system. Don't use this option if you
              can avoid it.  Note that this passphrase is  only  used  if  the
              option --batch has also been given.  This is different from gpg.

  #5固定リンク)  
Old 2009年7月10日
pludi's Avatar
pludi pludi is offline Forum Staff  
モデレータ
  
 

参加日: 2008年12月
場所: 。で
投稿数: 1,921
以降に開始 2つ目のスレッド 同じ質問には(一見)のmanページを読んで、私はこのときのソリューションを提供します。


コード:
> cat pass
s3cr3t
> gpg --batch --no-tty --armor --passphrase-file pass --symmetric test.file
> ls test.*
test.file  test.file.asc
> file test.file.asc
test.file.asc: PGP armored data message

  #6固定リンク)  
Old 2009年7月13日
anushree.a anushree.a is offline
登録ユーザー
  
 

参加日: 2008年5月
投稿: 87
私はあなたのソリューションを使用する方法を知っているdont 。

次は、 O /パイ時にスクリプトを実行した

test.sh : 1行目: 。 /パス:アクセスが拒否されました
test.sh : 2行目: s3cr3t :コマンドが見つかりません
test.sh : 3行目: -バッチ:コマンドが見つかりません
test.sh :行4 : 。 / test.file :アクセスが拒否されました
test.sh :ライン5 : 。 / test.file :アクセスが拒否されました
test.sh :行6 : test.file.asc :コマンドが見つかりません
test.sh :行7 : test.file.asc : :コマンドが見つかりません
  #7固定リンク)  
Old 2009年7月13日
pludi's Avatar
pludi pludi is offline Forum Staff  
モデレータ
  
 

参加日: 2008年12月
場所: 。で
投稿数: 1,921
それはおそらく私の提供のための完全なスクリプトではないが、それはどのようになる例が手動で行うという。再度コメントを投稿を明確にする:
コード:
> cat pass    # Run the 'cat' program to show the contents of file 'pass' which
              # contains the passphrase
s3cr3t        # Contents of file 'pass'
# Calling gpg in batch mode, telling it not to allocate a TTY, asking for
# ASCII-Armor output (non-binary data), providing the passphrase in file 'pass',
# symmetric enryption for file 'test.file'
> gpg --batch --no-tty --armor --passphrase-file pass --symmetric test.file
> ls test.*   # Display a listing of the original & encypted file
test.file  test.file.asc
> file test.file.asc # Run the 'file' utility to take a guess at the type of the
                     # content of file 'test.file.asc'
test.file.asc: PGP armored data message # It tells us that it's encrypted,
                                        # armored data

やらなければいけないことがあると私はそれらを使用したファイル名を代用しています。とすぐに、その下を持っている代わりに、ファイル名の変数を使用して起動します。とするときに、その場合は、ループの実行を開始することができます。
Reply

ブックマーク

タグ
暗号化のgpg

スレッドツール このスレッドを検索
このスレッドを検索

高度な検索
表示モード このスレッド
このスレッド

投稿ルール
あなた ことができない。 新しいスレッドを投稿
あなた ことができない。 返信の投稿
あなた ことができない。 添付ファイルの投稿
あなた ことができない。 自分の投稿を編集

BBコード なる 〜の上に
スマイリー なる 〜の上に
[イメージ] コードは 〜の上に
HTMLコードは、 オフ
トラックバック なる 〜の上に
ピングバック なる 〜の上に
Refbacks なる 〜の上に




すべてGMT -4です。現在の時刻は 11:00午後


提供: vBulletin、著作権© 2000 - 2006、Jelsoft企業株式会社。言語翻訳による電源
vBCredits v1.4著作権© 2007 - 2008 、 PixelFXスタジオ
は、 UNIXおよびLinuxフォーラムのコンテンツ著作権© 1993 〜 2009 。すべての権利を管理しReserved.Ad RedTyger

コンテンツ関連のURLで vBSEO 3.2.0