Skip to content

List index out of range when I adding a device #276

@OlegXio

Description

@OlegXio

Which version of pam_usb are you running?

0.8.5

Which distribution are you using?

Debian 14

Which login manager and desktop environment are you using?

TTY (no login manager) | i3

What happened?

Command log:
Command pamusb-conf --add-device usb_orange:

* Using "General UDisk (2310270922380505739019)" (only option)

Which volume would you like to use for storing data ?
0) /dev/sdc1 (UUID: 4E21-0000)
1) /dev/sdc2 (UUID: 3105-B091)

0
[0-1]: Name		: usb_orange
Vendor		: General
Model		: UDisk
Serial		: 2310270922380505739019
UUID		: 4E21-0000

Save to /etc/security/pam_usb.conf? [Y/n]
y
Traceback (most recent call last):
  File "/usr/bin/pamusb-conf", line 461, in <module>
    addDevice(options)
    ~~~~~~~~~^^^^^^^^^
  File "/usr/bin/pamusb-conf", line 329, in addDevice
    devs[0].appendChild(prettifyElement(dev))
    ~~~~^^^
IndexError: list index out of range

Output of "pamusb-check --debug whoami"

* No authentication device(s) configured for user "olegxio".

Output of "w"

21:00:08 up 49 min,  1 user,  load average: 0.74, 1.10, 1.57
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU  WHAT
olegxio  tty1     -                20:11   48:33   2:23    ?    xinit /

Output of "loginctl"

21:00:08 up 49 min,  1 user,  load average: 0.74, 1.10, 1.57
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU  WHAT
olegxio  tty1     -                20:11   48:33   2:23    ?    xinit /

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions