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

Problem with command sudo -u _serviceagent ... #37

Open
SilviusSK opened this issue Feb 1, 2021 · 2 comments
Open

Problem with command sudo -u _serviceagent ... #37

SilviusSK opened this issue Feb 1, 2021 · 2 comments

Comments

@SilviusSK
Copy link

Hi,I would like to use a smartcard always be available and that's why I used your command, and this is the output

airuzivilvester:~ User$ sudo -u _securityagent /Applications/Utilities/OpenSCTokenApp.app/Contents/MacOS/OpenSCTokenApp
Enter PIN for 'Certificate for PIV Authentication (User)':
2021-02-01 14:04:28.546 OpenSCTokenApp[1112:17536] NSXPCSharedListener should but cannot work around rdar://problem/35553241

airuzivilvester:~ User$ sudo -u _securityagent pluginkit -a /Applications/Utilities/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex
Password:
add: Connection interrupted

OpenSC v21
macOS Big Sur 11.1

Run OpenSCTokenApp as SecurityAgent sudo -u _securityagent /Applications/Utilities/OpenSCTokenApp.app/Contents/MacOS/OpenSCTokenApp or execute sudo -u _securityagent pluginkit -a /Applications/Utilities/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex: Registers OpenSC globally. Your token will always be available.

Thnx

@frankmorgner
Copy link
Owner

Sorry, Apple is constantly changing things around. I don't know how to fix this error.

Do you need to register it globally, at all? If you're pairing your card with your account, you should be able to login without any additional registration; running the App in your local account should be enough, shouldn't it?

@SilviusSK
Copy link
Author

Hi
Can you tell me what Apple constantly changing ? Maybe I could help.

My idea is to use SmartCrad to log in to the device As a means of security and it doesn't matter if it is after the restart of the device or just logged out, since FileVault does not have support for smartcard we cannot change this the first login will always be with a password.

I have set DisableFDEAutologin to YES

Scenario1:
When I run the app from the local account, first login is to unlock FileVault is allways with a password and then second login with the same password and after that can I use SmartCard, in this case, you do not have a SmartCard as the element that secures your account.

Scenario2:
If I understand correctly if I register globaly i can use after first login to unlock FileVault what I have to use password the next login can use SmartCard and PIN, in this case yes.

If you set enforceSmartCard to true , in Scenario1 you cannot login in device anymore. You can unlock FileVault and and that is all.

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

2 participants