你好linux 删除文件夹中国linux,
感谢在微软论坛发贴。
>> 使用 vs2017 调试 linux 程序,因为需要访问硬件,需要root权限,但是又没有,所以总执行失败,如何在vs2017中配置?
你用是Ubuntu还是其他的?你是通过SSH连接Linux操作系统的吗?Linux系统出于对系统安全的考虑,一般都是不允许Root远程登陆的。你可以先检查一下自己电脑的Linux系统是否支持Root远程登录。你可以先试着修改SSH的配置文件(/etc/ssh/sshd_config),查看里面PermitRootLogin 是不是yes,如果是yes的话应该就可以Root远程登录了。然后以root用户的方式远程连接linux用超级用户执行,再看看程序能否以root权限运行linux用超级用户执行,如果不行的话,建议你去微软开发者论坛问问。
Best Wishes,
Jack Zhang
MSDN Community Support<br/> Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark
as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact <a href="mailto:"></a>