2008年2月11日月曜日

ThinkPad T61 / Ubuntu 7.10での指紋センサ使用まとめ(ログイン,sudo,スクリーンロック解除)

BIOSパスワードでの指紋センサ使用はBIOSに指紋を登録するツールが必要
Windows版はLenovo製のものがThinkPadに付属するが、Linux版は不明

Firefoxでのマスターパスワード入力にて指紋センサを使用する方法は調査中

Ubuntu7.10にてThinkPad T61の指紋センサを使用する方法
参考:
ThinkFinger - Ubuntu Wiki(https://wiki.ubuntu.com/ThinkFinger)
How to enable the fingerprint reader with ThinkFinger
(http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger#xscreensaver.2Fgnome-screensaver)

はじめにーThinkFingerとは
ThinkFingerとは、SGS Thomson Microelectronics製指紋センサ用のフリーのドライバです。
 よって、LenovoのThinkPad、及びDell, 東芝社製の、SGS Thomson Microelectronics製指紋センサが使用されているパソコンで使用可能です。



1.インストール
1.1.リポジトリの追加
 Synapticパッケージマネージャのリポジトリに以下を追加します。
deb http://ppa.launchpad.net/jldugger/ubuntu gutsy main restricted universe multiverse
deb-src http://ppa.launchpad.net/jldugger/ubuntu gutsy main restricted universe multiverse

1.2.ThinkFingerパッケージのインストール
$ sudo apt-get install thinkfinger-tools libpam-thinkfinger



2.指紋認証のテスト
2.1.テスト用の指紋を登録します。
$ sudo tf-tool --acquire

ThinkFinger 0.2.2 (http://thinkfinger.sourceforge.net/)
Copyright (C) 2006, 2007 Timo Hoenig

Initializing... done.
Please swipe your finger (successful swipes 3/3, failed swipes: 0)... done.
Storing data (/tmp/test.bir)... done.     ↑
                   ここで三回指紋センサを撫でて、
                   指紋を登録します。

2.2.登録した指紋のテスト
$ sudo tf-tool --verify ←指紋認証テスト

ThinkFinger 0.2.2 (http://thinkfinger.sourceforge.net/)
Copyright (C) 2006, 2007 Timo Hoenig

Initializing... done.
Please swipe your finger (successful swipes 1/1, failed swipes: 0)... done.
Result: Fingerprint does match.       ↑
     ↑              ここで指紋センサを撫でます
  指紋が一致すればOK

補足)tf-toolの起動で以下のエラーが発生の場合
発生するエラー:
$ sudo tf-tool --acquire
tf-tool: error while loading shared libraries: libthinkfinger.so.0: cannot open shared object file: No such file or directory

対策:
以下のコマンドを実行
$ sudo ldconfig



3.ログインとsudoでの指紋認証を有効にする
3.1./etc/pam.d/common-authファイル修正
 以下の通りに修正する。
#
# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the
# traditional Unix authentication mechanisms.
#
auth sufficient pam_thinkfinger.so
auth required pam_unix.so try_first_pass nullok_secure

3.2.ユーザの指紋を登録
$ sudo tf-tool --add-user ユーザ名

3.3./etc/modulesファイル修正
 ’uinput’を追加する

#/etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

fuse
lp
sbp2
uinput ←この行を追加する



4.スクリーンロック解除での指紋認証を有効にする
4.1.fingerprintグループの追加
$ sudo groupadd fingerprint

4.2./etc/udev/rules.d/60-thinkfinger.rulesファイル作成
 以下の通り作成する。
#
# udev rules file for the thinkfinger fingerprint scanner
#
# gives access to the fingerprint reader to those in the "fingerprint" group
#
# Taken from:
# http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger
# which was taken and modified from:
# http://article.gmane.org/gmane.linux.drivers.thinkfinger/329
#

# SGS Thomson Microelectronics Fingerprint Reader
SYSFS{idVendor}=="0483", SYSFS{idProduct}=="2016", SYMLINK+="input/thinkfinger-%k", MODE="0660", GROUP="fingerprint"

# the also-needed uinput device
KERNEL=="uinput", MODE="0660", GROUP="fingerprint"

4.3./etc/pam.d/gnome-screensaverの内容を確認
 以下の内容になっていればOK
@include common-auth

 内容が異なる場合、以下の通り修正。
auth sufficient pam_thinkfinger.so
auth required pam_unix.so try_first_pass nullok_secure

4.4.スクリーンロック解除時の指紋データアクセスを可能とする
$ sudo gpasswd -a ユーザ名 fingerprint
$ sudo chown ユーザ名:root /etc/pam_thinkfinger/ユーザ名.bir
$ sudo chmod 400 /etc/pam_thinkfinger/ユーザ名.bir
$ sudo chmod o+x /etc/pam_thinkfinger

0 件のコメント: