Electronjs-要求一次访问根
我已经开发了一个VPN应用程序,该应用程序使用ElectronJS上的OpenVPN进行连接。
问题是,用户每次连接到要求root-access的VPN服务器。这不是用户友好的。
有没有办法只要求用户一次访问一次,因此整个应用程序都有它,并且每次需要运行sudo命令时,都不需要用户在密码中输入密码?
谢谢。
I have developed a VPN application that uses openVPN on electronJS to connect with.
The problem is, that everytime the user connects to a VPN-server it asks for root-access. Which is not user-friendly.
Is there a way to ask user for root access only once, so the whole app has it and the user is not required to type in the password every time the sudo command needs to be run?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论