何となく Blog by Jitta
Microsoft .NET 考

目次

Blog 利用状況
  • 投稿数 - 761
  • 記事 - 18
  • コメント - 37042
  • トラックバック - 222
ニュース
  • IE7以前では、表示がおかしい。div の解釈に問題があるようだ。
    IE8の場合は、「互換」表示を OFF にしてください。
  • 検索エンジンで来られた方へ:
    お望みの情報は見つかりましたか? よろしければ、コメント欄にどのような情報を探していたのか、ご記入ください。
It's ME!
  • はなおか じった
  • 世界遺産の近くに住んでます。
  • Microsoft MVP for Visual Developer ASP/ASP.NET 10, 2004 - 9, 2011
広告

記事カテゴリ

書庫

日記カテゴリ

ギャラリ

その他

わんくま同盟

同郷

 

その昔、コンピュータがまだプログラムではなく、配線によって動いていた頃の話。

ある時、コンピュータが動かなくなった。原因を追及していたエンジニアは、とうとうその原因を突き止めた。なんと一匹の蛾によって、配線がショートしていたのだった。(スイッチに挟まって通電しなかった、だったかもしれない。)

それ以来、プログラムが正しく動かないことを「バグ(虫)」というようになったそうな。


「なんでモス(蛾)じゃないんだ?!」と、疑問が発生したのですが、それは置いておいて。


こちらで、自分の無知をVistaのバグのせいにしないでください。と、ごもっともなご意見をいただきました。

ですが。バグにもいろいろありまして。いや、これも私が明確に書いていないのが悪いのですが。

以下のことは、ビジネス ローンチ、すなわち、2006年11月に MSDN 上で発表された Vista で確認しています。それ以降のもの、パッチを当てた環境では、動作が異なるかもしれません。

Vista にて、標準ユーザでログオンします。このアカウントで…何で「ユーザ」と言ったり「アカウント」と言ったりするんだ…プリンタを追加します。

さてこのとき、プリンタ フォルダで右クリックすると、「サーバの管理」という項目があります。この項目を選ぶと、標準ユーザでは、何もすることが出来ません。曲がりなりにも「サーバ」なので、標準ユーザごときがいろいろ弄っちゃいかん。ごもっともです。弄りたい場合は、「管理者として実行」によって、操作者に管理者としての権限があることを証明してからにしましょう。

では次に、コントロール パネルから管理ツールを開きます。例えば、「サービス」を実行してみましょう。昇格プロンプトは出ません。そして、登録されている Windows サービスの一覧を見ることはできますが、実行や停止は出来ません。もし、右クリックして「管理者として実行」を選び、昇格して実行すると、停止や実行も出来るようになります。グッドです。

余談ですが。管理者ユーザで管理ツールを開くと、いくつかのアイコンにはシールド アイコンが付いていません。しかし、実行しようとすると昇格プロンプトが表示されます。これは、ベータ プログラムで報告し、マイクロソフトから「調整中」という返答をいただいている、バグです。RTM に間に合わなかったようです。もうひとつ。標準ユーザが「アカウントの管理」を昇格して実行すると、他のアカウントの写真が表示されません。これも、RTM 以後に回されたバグです。

では次に、「印刷の管理」を実行しましょう。これも、昇格プロンプトは出ません。しかし。ポートの構成は出来てしまいます。あれ?

昇格プロンプト無しに、一方では構成も何も出来ないようにしながら、他方では構成したり追加したり出来ること。これは、“バグ”ではないでしょうか。

もちろん、コンテキスト メニューとショートカットなので、実行の際に指定できる権限などの指定の仕方が異なるのでしょう。そもそも、実行されるプログラムが違うので、同じ動きにならなくても不思議ではありません。ですから、“プログラム的にはバグではない”でしょう。

つまり、ここで「バグではないか?」と言っている対象は、プログラムではなく、そのプログラムの元になった“仕様”です。先の参照先コメントで「バグだと思う」「不安定」といっているのは、仕様に対してです。はい、明言していませんでした。混乱させて申し訳ない。

他のアカウントが追加したプリンタに対して、プリンタにつながったポートを変更したり、ポートを構成したりすることが出来ないのは、セキュリティ上の理由です。

アカウントAを常時使う人が、自席の隣のプリンタに出力するようにしていたとします。アカウントBを使う人が、「あの人、いったいどんなものをプリントアウトしているんだろう?」と思って、勝手にポートを構成し、つながっているプリンタの IP アドレスを変えてしまったらどうなるでしょう?Aさんはいつものように印刷し、そして、結果が得られません。いずれ、アドレスが変わっていることに気がつくでしょうが、その時には情報が漏洩してしまっています。

プリンタ フォルダからこういうことは出来ません。しかし、管理ツールから実行すれば、昇格の必要なく、出来てしまうのです。

私はこれを、「UAC 設計上のバグ」または「セキュリティ上の欠陥」だと思います。また、私は上記1件を確認していますが、その他にあることも、ないことも、確認していません。その為、「不安定なように思います」と、断定を避けています。


おまけ:「バグ」を、ウィキペディアで調べる

投稿日時 : 2007年2月2日 22:21
コメント
  • # re: バグ…その正体は蛾
    RUN
    Posted @ 2007/02/04 16:29
    バグの語源って蛾だったっけ?

    自分は真空管の中に蝿が入ってって覚えてたんだけど。

    他にも、ねずみがかじって断線とか、ゴキブリによってショーととか異説は色々ありますね、バグの語源の話って。
  • # re: バグ…その正体は蛾
    Jitta
    Posted @ 2007/02/04 19:33
    RUNさん、コメントありがとうございます。

     どこかで、その挟まっていた蛾が、業務日誌に貼り付けられている、、、という記事を読んだのですが、どこだったか、思い出せません。

     おまけにつけているウィキペディアには、真空管の光に惹かれてやってきた虫、、、と書いてあります。

     ネズミがかじったというのは、初めて聞いたように思います。発電所で、ネズミが感電死して送電が止まったというのは聞いたことがあります。
  • # I used to be able to find good info from your content.
    I used to be able to find good info from your cont
    Posted @ 2019/05/30 1:42
    I used to be able to find good info from your content.
  • # Hi there just wanted to give you a brief heads up and let you know a few of the images aren't loading properly. I'm not sure why but I think its a linking issue. I've tried it in two different internet browsers and both show the same outcome.
    Hi there just wanted to give you a brief heads up
    Posted @ 2019/06/01 15:37
    Hi there just wanted to give you a brief heads up and let you
    know a few of the images aren't loading properly.
    I'm not sure why but I think its a linking issue. I've tried it in two different internet
    browsers and both show the same outcome.
  • # Hello, i think that i noticed you visited my blog thus i got here to return the prefer?.I am trying to find things to enhance my web site!I suppose its ok to use some of your concepts!!
    Hello, i think that i noticed you visited my blog
    Posted @ 2019/06/06 20:55
    Hello, i think that i noticed you visited my blog thus i got here to return the prefer?.I am trying to find things to enhance my web site!I
    suppose its ok to use some of your concepts!!
  • # Woah! I'm really enjoying the template/theme of this site. It's simple, yet effective. A lot of times it's very hard to get that "perfect balance" between user friendliness and visual appeal. I must say you've done a fantastic job with this.
    Woah! I'm really enjoying the template/theme of t
    Posted @ 2019/09/04 22:07
    Woah! I'm really enjoying the template/theme of this site.
    It's simple, yet effective. A lot of times it's very
    hard to get that "perfect balance" between user friendliness and visual appeal.
    I must say you've done a fantastic job with this. In addition, the blog loads extremely fast for me on Chrome.
    Superb Blog!
  • # Woah! I'm really enjoying the template/theme of this site. It's simple, yet effective. A lot of times it's very hard to get that "perfect balance" between user friendliness and visual appeal. I must say you've done a fantastic job with this.
    Woah! I'm really enjoying the template/theme of t
    Posted @ 2019/09/04 22:08
    Woah! I'm really enjoying the template/theme of this site.
    It's simple, yet effective. A lot of times it's very
    hard to get that "perfect balance" between user friendliness and visual appeal.
    I must say you've done a fantastic job with this. In addition, the blog loads extremely fast for me on Chrome.
    Superb Blog!
  • # Woah! I'm really enjoying the template/theme of this site. It's simple, yet effective. A lot of times it's very hard to get that "perfect balance" between user friendliness and visual appeal. I must say you've done a fantastic job with this.
    Woah! I'm really enjoying the template/theme of t
    Posted @ 2019/09/04 22:09
    Woah! I'm really enjoying the template/theme of this site.
    It's simple, yet effective. A lot of times it's very
    hard to get that "perfect balance" between user friendliness and visual appeal.
    I must say you've done a fantastic job with this. In addition, the blog loads extremely fast for me on Chrome.
    Superb Blog!
タイトル
名前
Url
コメント