pam_usb icon indicating copy to clipboard operation
pam_usb copied to clipboard

agent event not working in pamusb-conf

Open Balpreet-afk opened this issue 3 years ago • 2 comments

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

Balpreet-afk avatar Sep 30 '22 08:09 Balpreet-afk

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

galliotxy avatar Sep 30 '22 08:09 galliotxy

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

mcdope avatar Sep 30 '22 11:09 mcdope