Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agent event not working in pamusb-conf #51

Open
Balpreet-afk opened this issue Sep 30, 2022 · 2 comments
Open

agent event not working in pamusb-conf #51

Balpreet-afk opened this issue Sep 30, 2022 · 2 comments

Comments

@Balpreet-afk
Copy link

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
Copy link

galliotxy commented Sep 30, 2022 via email

@mcdope
Copy link
Contributor

mcdope commented Sep 30, 2022

Invalid, can be closed - this is for my fork and tracked in mcdope#185.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants