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

linux 下的普通用户,确认是可以使用这个设备的吗? #94

Open
atzlinux opened this issue Jul 16, 2024 · 1 comment
Open

Comments

@atzlinux
Copy link

按文档进行了相关配置,
在系统上增加了 /etc/udev/rules.d/69-canokeys.rules 文件。

目前就 用 root 用户运行 gpg --card-status 能够获取卡的状态,普通用户运行报错:

gpg --card-status
gpg: 从 ‘scdaemon’ 获取版本时出现错误: Not supported
gpg: OpenPGP 卡不可用:Not supported

OS:
Debian 12.6

uname -a
Linux atzlinux-ce 6.9.8-rt-amd64 #1 SMP PREEMPT_RT Debian 6.9.8-1 (2024-07-07) x86_64 GNU/Linux

@raven15
Copy link

raven15 commented Jul 25, 2024

gpg会独占。你先别用管理员执行 card-status ,重启后直接用普通用户,或者把管理员那个用户的gpg相关进程先 kill 掉。我用起来发现gpg有点坑的是会独占,有一个 gpg 进程占用后其他进程都用不了,有些程序用起来各种错误。现在我在 windows 的解决办法是用git内置的gpg和gpg-agent,不用gpg4win,。linux下我暂时都是一个用户用,没有遇到你的这种情况。

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