aluzzardi / pam_usb

Hardware authentication for Linux using ordinary USB Flash Drives.
GNU General Public License v2.0
152 stars 82 forks source link

agent event not working in pamusb-conf #51

Open Balpreet-afk opened 2 years ago

Balpreet-afk commented 2 years ago

I have Sandisk USB and I got an issue :- I tried configuring /etc/security/pam_usb.conf block to following :-

<user id="balpreet">
    <device>SANDISK</device>
        <agent event="lock">

                <cmd>cinnamon-screensaver-command -l</cmd>                      

            </agent>

            <!-- Resume operations when the usb device is plugged back and authenticated -->

            <agent event="unlock">              

                <cmd>cinnamon-screensaver-command --deactivate</cmd>                

            </agent>
</user>

The authentication works perfect but when i plug out the usb, it doesnot locks it and neither unlocks when i plug in it

Second. When I execute pamusb-check balpreet I get this :-

* Authentication request for user "balpreet" (pamusb-check)
sh: 1: Syntax error: "(" unexpected
* Access denied.

PLZ Help

galliotxy commented 2 years ago

    您好,您的邮件已经收到。我会尽快查收的~

mcdope commented 2 years ago

Invalid, can be closed - this is for my fork and tracked in https://github.com/mcdope/pam_usb/issues/185.