Package Details: otpw 1.5-1

Git Clone URL: https://aur.archlinux.org/otpw.git (read-only, click to copy)
Package Base: otpw
Description: A one-time password login package using PAM
Upstream URL: http://www.cl.cam.ac.uk/~mgk25/otpw.html
Licenses: custom
Submitter: mojo-hakase
Maintainer: mojo-hakase
Last Packager: mojo-hakase
Votes: 4
Popularity: 0.000000
First Submitted: 2015-08-15 14:33 (UTC)
Last Updated: 2023-06-13 19:38 (UTC)

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

m040601 commented on 2022-08-31 20:04 (UTC) (edited on 2022-08-31 20:12 (UTC) by m040601)

Hhmmm, PKGBUILD was last updated 2 years ago. Strange .... Anyway lets try it.

pacman -Ql otpw

otpw /usr/
otpw /usr/bin/
otpw /usr/bin/otpw-gen
otpw /usr/lib/
otpw /usr/lib/security/
otpw /usr/lib/security/pam_otpw.so
otpw /usr/share/
otpw /usr/share/licenses/
otpw /usr/share/licenses/otpw/
otpw /usr/share/licenses/otpw/LICENSE

Got this little annoying error

   $ otpw-gen
Generating random seed ...
sh: line 1: netstat: command not found

Not sure if it's caused by this PKGBUILD, of if it's just the software that is too old and apparently not maintained ?, at its homepage, https://www.cl.cam.ac.uk/~mgk25/otpw.html

Latest release: Version 1.5, 2014-08-07

pacman -F netstat

core/net-tools 2.10-1
    usr/bin/netstat
community/munin-node 2.0.69-1
    usr/lib/munin/plugins/netstat

pacman -Fl net-tools

...
net-tools usr/bin/arp
net-tools usr/bin/ifconfig
net-tools usr/bin/ipmaddr
net-tools usr/bin/iptunnel
net-tools usr/bin/mii-tool
net-tools usr/bin/nameif
net-tools usr/bin/netstat

I wanted to try this setup. Apparently the Archwiki page, https://wiki.archlinux.org/title/OTPW seems maintained and updated.

I'm also not going to install net-tools, as it is an old and deprecated set of tools.

Is there any other tool or instructions for this "otpw" setup in Arch ? Anyone has any comments and recentt practical feedback experience on this ?

I'm actually not even interested in the SSH part. Just wanted to test OTP for local logins.

scrouthtv commented on 2020-08-23 13:02 (UTC)

Got this error:

Aug 23 12:58:59 alarmpi sshd[6696]: Connection closed by authenticating user user 10.8.0.10 port 45752 [preauth]
Aug 23 12:59:20 alarmpi sshd[6949]: PAM unable to dlopen(/usr/lib/security/pam_otpw.so): /usr/lib/security/pam_otpw.so: undefined symbol: __aeabi_uidivmod
Aug 23 12:59:20 alarmpi sshd[6949]: PAM adding faulty module: /usr/lib/security/pam_otpw.so
Aug 23 12:59:27 alarmpi sshd[6949]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.8.0.10  user=lenni
Aug 23 12:59:27 alarmpi sshd[6949]: pam_systemd_home(sshd:auth): Failed to query user record: Unit dbus-org.freedesktop.home1.service not found.
Aug 23 12:59:28 alarmpi sshd[6949]: Failed password for user from 10.8.0.10 port 45754 ssh2
Aug 23 12:59:34 alarmpi sshd[6949]: Connection closed by authenticating user user 10.8.0.10 port 45754 [preauth]
Aug 23 13:00:15 alarmpi sshd[7283]: PAM unable to dlopen(/usr/lib/security/pam_otpw.so): /usr/lib/security/pam_otpw.so: undefined symbol: __aeabi_uidivmod
Aug 23 13:00:15 alarmpi sshd[7283]: PAM adding faulty module: /usr/lib/security/pam_otpw.so
Aug 23 13:00:20 alarmpi sshd[7283]: Failed password for user from 192.168.0.166 port 50276 ssh2

This is on armv7h

scrouthtv commented on 2020-08-22 09:49 (UTC)

Successfully built & used on armv7h, you can add that to the supported architectures