まとめて複数のパスワードを生成する

このエントリーをはてなブックマークに追加
for文で繰り返し実行

以前紹介したランダムパスワードを自動生成するコマンドのテクニックでランダムパスワードが生成できます。
サーバ管理者としては、複数のユーザ向けに大量のパスワードを生成しなければいけない場面がたまにあります。
そんなとき、1件ずつ作ってコピペするのは大変ですね。端末上でfor文を回してまとめて作りましょう。

[user@myserver] $ for var in 1: 2: 3:
> do
> echo -n $var
> mkpasswd
> done
1:)H0rj1Sgx
2:9Oz8zu%gO
3:ve%5yH7xC

1行で書いて実行もできます。

[user@myserver] $ for var in 1: 2: ; do echo -n $var; mkpasswd; done
1:)H0rj1Sgx
2:9Oz8zu%gO
3:ve%5yH7xC

まとめて複数のパスワードを生成する」への36件のフィードバック

  1. click

    I simply want to tell you that I am just all new to blogs and actually enjoyed this web site. Very likely I’m going to bookmark your website . You amazingly have really good well written articles. Thanks a lot for revealing your webpage.

    返信
  2. John Deere Repair Manuals

    I am not sure where you’re getting your info, but good topic. I needs to spend some time learning more or understanding more. Thanks for wonderful information I was looking for this information for my mission.

    返信
  3. Jess Stohrer

    I’m truly enjoying the design and layout of your site. It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a designer to create your theme? Superb work!

    返信
  4. Abogados De Accidentes Texas

    Please let me know if you’re looking for a writer for your blog. You have some really good articles and I think I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some content for your blog in exchange for a link back to mine. Please blast me an email if interested. Thank you!

    返信
  5. Juan Volmink

    I blog often and I genuinely thank you for your information. The article has truly peaked my interest. I will take a note of your site and keep checking for new information about once per week. I subscribed to your Feed too.

    返信
  6. Milo Lickfelt

    After I initially left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I recieve four emails with the exact same comment. Perhaps there is an easy method you are able to remove me from that service? Cheers.

    返信
  7. Love Irrigation

    Hi there, I do think your blog could be having internet browser compatibility issues. When I look at your site in Safari, it looks fine but when opening in IE, it’s got some overlapping issues. I simply wanted to give you a quick heads up! Other than that, fantastic website.

    返信
  8. Monnie Heidt

    I’m amazed, I have to admit. Rarely do I encounter a blog that’s both educative and entertaining, and let me tell you, you have hit the nail on the head. The issue is something that not enough men and women are speaking intelligently about. I’m very happy I stumbled across this during my hunt for something relating to this.

    返信
  9. Tractor Workshop Manuals

    Pretty component to content. I simply stumbled upon your site and in accession capital to say that I get in fact loved account your blog posts. Any way I will be subscribing for your augment or even I fulfillment you get admission to constantly rapidly.

    返信
  10. Domenic Kotter

    It is appropriate opportunity to prepare some intentions for the upcoming. I have read this blog posting and if I have the ability to, I want to recommend you some fascinating instruction.

    返信
  11. web design bucuresti

    Have you ever thought about writing an ebook or guest authoring on other websites?
    I have a blog centered on the same information you discuss and would really like
    to have you share some stories/information. I
    know my audience would value your work. If you are even remotely interested,
    feel free to send me an e-mail.

    返信
  12. official statement

    I simply want to say I am just very new to blogging and actually savored your blog site. Almost certainly I’m going to bookmark your blog post . You definitely have fantastic posts. Thanks for revealing your website page.

    返信
  13. do tradelines boost credit score

    Woah! I’m really digging the template/theme of this website. It’s simple, yet effective. A lot of times it’s hard to get that “perfect balance” between superb usability and visual appearance. I must say you have done a excellent job with this. Additionally, the blog loads super quick for me on Firefox. Superb Blog!

    返信
  14. are tradelines real

    Have you ever considered creating an ebook or guest authoring on other sites? I have a blog based on the same subjects you discuss and would love to have you share some stories/information. I know my viewers would enjoy your work. If you are even remotely interested, feel free to shoot me an e-mail.

    返信
  15. psn codes generator

    Its like you read my mind! You seem to know a lot about this, like you wrote
    the book in it or something. I think that you
    could do with some pics to drive the message home a little bit, but instead of
    that, this is great blog. A fantastic read. I will definitely be back.

    返信
  16. rca ieftin

    Link exchange is nothing else except it is just placing the other person’s
    website link on your page at proper place and other person will also do similar for you.

    返信

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>