Fórum Ubuntu CZ/SK

Ubuntu pro osobní počítače => Hardware => Téma založeno: Lui 05 Ledna 2009, 12:37:20

Název: Otisk prstu na ubuntu 8.10 s Gnome a IBM Thinkpad T60p
Přispěvatel: Lui 05 Ledna 2009, 12:37:20
Ahoj, snazim se na kombinaci v subjectu rozchodit otisk prstu. JVse se zda, ze funguje, jen si o ten otisk nerekne a prihlasuju se jmenem a heslem.

Udelal jsem toto:
do zdroju jsem pridal tento radek
deb http://ppa.launchpad.net/jldugger/ubuntu gutsy main restricted universe multiverse

Pak jsem nainstaloval tyto baliky: thinkfinger-tools  libpam-thinkfinger build-essential libtool libusb-dev libpam0g-dev pkg-config
Pak jsem udelal
modprobe uinput
a samozrejme jsem uinput[/i] pridal do /etc/modules

Nasledne jsem zadal pro uzivatele jeho otisk a vyzkousel ho pomoci prikazu
sudo tf-tool --acquire
sudo tf-tool --verify


# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the
# traditional Unix authentication mechanisms.
#
# As of pam 1.0.1-5, this file is managed by pam-auth-update by default.
# To take advantage of this, it is recommended that you configure any
# local modules either before or after the default block, and use
# pam-auth-update to manage selection of other modules.  See
# pam-auth-update(8) for details.

# ctecka otisku prstu
auth    sufficient      pam_thinkfinger.so
#
# here are the per-package modules (the "Primary" block)
auth   [success=1 default=ignore]   pam_unix.so nullok_secure

# here's the fallback if no module succeeds
auth   requisite         pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
auth   required         pam_permit.so
# and here are more per-package modules (the "Additional" block)
# end of pam-auth-update config

Bohuzel to stale nefunguje a me dochazi inspirace. Nemate nekdo nejaky napad?

Predem diky


Název: Re: Otisk prstu na ubuntu 8.10 s Gnome a IBM Thinkpad T60p
Přispěvatel: Martin Kiklhorn 05 Ledna 2009, 19:16:30
sudo tf-tool --acquire
sudo tf-tool --verify
to nebylo pro uživatele...
Kód: [Vybrat]
tf-tool --acquire
tf-tool --verify
Název: Re: Otisk prstu na ubuntu 8.10 s Gnome a IBM Thinkpad T60p
Přispěvatel: Lui 06 Ledna 2009, 17:20:03
To zni logicky. Nicmene  jsem to udelal bez sudo a nic. Stale nevim, jak domutit Gnome, aby to na pocatku chtelo onen otisk prstu a ne heslo. Podle me je problem v pam, ale to je jen moje domenka.

Název: Re: Otisk prstu na ubuntu 8.10 s Gnome a IBM Thinkpad T60p
Přispěvatel: Martin Kiklhorn 06 Ledna 2009, 17:30:51
Já jsem si čtečku pro auth povoloval skriptem /usr/lib/pam-thinkfinger/pam-thinkfinger-enable který mi věci v /etc/pam* upravil sám
viz


čtečka otisků prstů = thinkfinger
návod pochází odtud: http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger#Hardy

Nainstalovat thinkfinder (instaloval jsem všecho co mi nabídl synaptic po hledání "thinkfinder")
mělo by stačit jen:
Kód: [Vybrat]
$ sudo apt-get install thinkfinger-tools libpam-thinkfingerPovolit čtečku pro pam:
Kód: [Vybrat]
$ sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enablenasnímat prst, pokud vyhodí chybu ohledně "claiming the USB device" tak restartovat PC
Následující příkaz pro nasnímání prstu NEspouštět se  'sudo' - vznikly by probémy s přístupovými právy
Kód: [Vybrat]
$ tf-tool --acquirevytvoří skrytý soubor $HOME/.thinkfinger.bir

kontrola zda je úspěšně nasnímaný prst:
Kód: [Vybrat]
$ tf-tool --verifyPři přihlášení je stále nutné vybrat/zadat jméno, namísto hesla lze už použít prst
prompt pro zadání hesla se většinou změní na "Password or swipe finger"
Použitelnost je asi pro všechny případy jako alternativa k interaktivnímu zadání hesla z klávesnice
(grafické, textové přihlášení, sudo, zamčení obrazovky (spořič), další výzvy k zadání administračního hesla (manažer aktualizací, synaptic)
------------------------------------------------------------------
Název: Re: Otisk prstu na ubuntu 8.10 s Gnome a IBM Thinkpad T60p
Přispěvatel: Bobanek 06 Ledna 2009, 22:33:41
Super návod. Díky moc. Mám Thinkpad X61s a zrovna dnes jsem začal přemýšlet jak zprovoznit čtečku otisků po nové instalaci Ubuntu 8.10.
Podle návodu pro T60p a obecného návodu na ThinkFinger jsem přidal repozitáře a instaloval dané balíčky. Po instalaci, zapnutí skriptem a pokusu o sejmutí příkazem "tf-tool --acquire" byla chybová hláška o které píšete a tak jsem restartoval. Pak se příkaz již bez problému spustil a požádal o sejmutí. Bohužel ale uložení neproběhlo a místo toho se objevila opět chyba viz:
ThinkFinger 0.3 (http://thinkfinger.sourceforge.net/)
Copyright (C) 2006, 2007 Timo Hoenig <thoenig@suse.de>

Initializing... done.
Please swipe your finger (successful swipes 3/3, failed swipes: 0)... done.
Storing data (/root/.thinkfinger.bir)...Warning: usb_bulk_read expected to read 0x40 (read 0x24 bytes).
Could not acquire fingerprint (communication with fingerprint reader failed).

Když jsem předtím to samé dělal jako uživatel, v závorce bylo číslo 0x34 a skript zůstal viset. Nevypsal závěrečnou hlášku o chybě v komunikaci se čtečkou.
Můžete nějak pomoct? Používám Interpid v 64bit verzi.
Děkuji.
Název: Re: Otisk prstu na ubuntu 8.10 s Gnome a IBM Thinkpad T60p
Přispěvatel: Martin Kiklhorn 06 Ledna 2009, 22:49:03
Potvrzená, systémově nevyřešená chyba, https://bugs.launchpad.net/ubuntu/+source/thinkfinger/+bug/214404
clx to tam řeší změnou časování a kompilací.

Přihlašte se že se vás chyba také týká (klik na change v: This bug doesn't affect me (change) )
Název: Re: Otisk prstu na ubuntu 8.10 s Gnome a IBM Thinkpad T60p
Přispěvatel: Bobanek 06 Ledna 2009, 23:27:25
Díky za odpověď. Ty hlášky, to je přesně ono.

Vláďa
Název: Re: Otisk prstu na ubuntu 8.10 s Gnome a IBM Thinkpad T60p
Přispěvatel: Lui 08 Ledna 2009, 02:51:35
Já jsem si čtečku pro auth povoloval skriptem /usr/lib/pam-thinkfinger/pam-thinkfinger-enable který mi věci v /etc/pam* upravil sám
viz


čtečka otisků prstů = thinkfinger
návod pochází odtud: http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger#Hardy

Nainstalovat thinkfinder (instaloval jsem všecho co mi nabídl synaptic po hledání "thinkfinder")
mělo by stačit jen:
Kód: [Vybrat]
$ sudo apt-get install thinkfinger-tools libpam-thinkfingerPovolit čtečku pro pam:
Kód: [Vybrat]
$ sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enablenasnímat prst, pokud vyhodí chybu ohledně "claiming the USB device" tak restartovat PC
Následující příkaz pro nasnímání prstu NEspouštět se  'sudo' - vznikly by probémy s přístupovými právy
Kód: [Vybrat]
$ tf-tool --acquirevytvoří skrytý soubor $HOME/.thinkfinger.bir

kontrola zda je úspěšně nasnímaný prst:
Kód: [Vybrat]
$ tf-tool --verifyPři přihlášení je stále nutné vybrat/zadat jméno, namísto hesla lze už použít prst
prompt pro zadání hesla se většinou změní na "Password or swipe finger"
Použitelnost je asi pro všechny případy jako alternativa k interaktivnímu zadání hesla z klávesnice
(grafické, textové přihlášení, sudo, zamčení obrazovky (spořič), další výzvy k zadání administračního hesla (manažer aktualizací, synaptic)
------------------------------------------------------------------

To je super. Diky moc. Funguje to. Asi sm nevdecnej, ale nevite, jak zaridit aby otisk prstu fungoval i na Gnome screenserver?
Název: Re: Otisk prstu na ubuntu 8.10 s Gnome a IBM Thinkpad T60p
Přispěvatel: Martin Kiklhorn 11 Ledna 2009, 23:43:52
mně tam funguje, gnome-screensaver mám neupravený, includuje common-auth:
Kód: [Vybrat]
martin@hej-hq:~$ cat /etc/pam.d/gnome-screensaver
@include common-auth
auth optional pam_gnome_keyring.so
a v common-auth mám položky upravené (thinkfinger doplněn automaticky v minulém postu odkazovaným skriptem pam-thinkfinger-enable )
Kód: [Vybrat]
martin@a3-ntb:~$ cat /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 requisite pam_unix.so try_first_pass nullok_secure
auth optional pam_smbpass.so migrate
Název: Re: Otisk prstu na ubuntu 8.10 s Gnome a IBM Thinkpad T60p
Přispěvatel: Lui 12 Ledna 2009, 10:17:15
mně tam funguje, gnome-screensaver mám neupravený, includuje common-auth:
Kód: [Vybrat]
martin@hej-hq:~$ cat /etc/pam.d/gnome-screensaver
@include common-auth
auth optional pam_gnome_keyring.so
a v common-auth mám položky upravené (thinkfinger doplněn automaticky v minulém postu odkazovaným skriptem pam-thinkfinger-enable )
Kód: [Vybrat]
martin@a3-ntb:~$ cat /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 requisite pam_unix.so try_first_pass nullok_secure
auth optional pam_smbpass.so migrate


Ale tohle tam mam
cat /etc/pam.d/gnome-screensaver
@include common-auth
auth optional pam_gnome_keyring.so

cat /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.
#
# As of pam 1.0.1-5, this file is managed by pam-auth-update by default.
# To take advantage of this, it is recommended that you configure any
# local modules either before or after the default block, and use
# pam-auth-update to manage selection of other modules.  See
# pam-auth-update(8) for details.

# ctecka otisku prstu
auth    sufficient      pam_thinkfinger.so
#
# here are the per-package modules (the "Primary" block)
auth   [success=1 default=ignore]   pam_unix.so nullok_secure

# here's the fallback if no module succeeds
auth   requisite         pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
auth   required         pam_permit.so
# and here are more per-package modules (the "Additional" block)
# end of pam-auth-update config


Dik za rady
Název: Re: Otisk prstu na ubuntu 8.10 s Gnome a IBM Thinkpad T60p
Přispěvatel: Lui 22 Ledna 2009, 00:59:24
Dal jsem tam UPLNE PRESNE totez a porad to z toho screensaveru nechodi.

Nejakej napad jak to diagnostikovat?

Lui


mně tam funguje, gnome-screensaver mám neupravený, includuje common-auth:
Kód: [Vybrat]
martin@hej-hq:~$ cat /etc/pam.d/gnome-screensaver
@include common-auth
auth optional pam_gnome_keyring.so
a v common-auth mám položky upravené (thinkfinger doplněn automaticky v minulém postu odkazovaným skriptem pam-thinkfinger-enable )
Kód: [Vybrat]
martin@a3-ntb:~$ cat /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 requisite pam_unix.so try_first_pass nullok_secure
auth optional pam_smbpass.so migrate


Ale tohle tam mam
cat /etc/pam.d/gnome-screensaver
@include common-auth
auth optional pam_gnome_keyring.so

cat /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.
#
# As of pam 1.0.1-5, this file is managed by pam-auth-update by default.
# To take advantage of this, it is recommended that you configure any
# local modules either before or after the default block, and use
# pam-auth-update to manage selection of other modules.  See
# pam-auth-update(8) for details.

# ctecka otisku prstu
auth    sufficient      pam_thinkfinger.so
#
# here are the per-package modules (the "Primary" block)
auth   [success=1 default=ignore]   pam_unix.so nullok_secure

# here's the fallback if no module succeeds
auth   requisite         pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
auth   required         pam_permit.so
# and here are more per-package modules (the "Additional" block)
# end of pam-auth-update config


Dik za rady