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

[Bug]: Tun does not work on Linux unless I manually execute run_as_sudo.sh #6396

Closed
2 tasks done
filionos opened this issue Jan 1, 2025 · 3 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@filionos
Copy link

filionos commented Jan 1, 2025

预期情况

It should be possible to enable Tun after simply opening the app

实际情况

App opens as usual, however after trying to turn on Tun, an error message appears stating: "Error executing command as another user: Not authorized. This incident has been reported." After manually executing "sudo ./run_as_sudo.sh" and letting it run in the background the app works as expected.

复现方法

Download v2rayN-linux-64.zip (7.5.1 or 7.4.2 both have the same behaviour), unzip, run "chmod +x v2rayN" and "./v2rayN"
OS: Arch Linux 6.12.7

日志信息

2025-01-01 14:35:24.7970-INFO v2rayN start up | v2rayN - V7.5.1 - X64 | /home/filiono/Desktop/v2rayN-linux-64/ | /home/filiono/Desktop/v2rayN-linux-64/v2rayN | Unix 6.6.68.1 | 64
2025-01-01 14:35:28.1757-INFO UpdateTaskRunGeo
2025-01-01 14:36:28.1785-INFO UpdateTaskRunSubscription
2025-01-01 14:36:43.4845-INFO /home/filiono/Desktop/v2rayN-linux-64/bin/run_as_sudo.sh
2025-01-01 14:36:43.5431-DEBUG Error executing command as another user: Not authorized
This incident has been reported.
,Error executing command as another user: Not authorized
This incident has been reported.

2025-01-01 14:36:43.5646-DEBUG    at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Handler/CoreHandler.cs:line 306
2025-01-01 14:42:39.9478-INFO /home/filiono/Desktop/v2rayN-linux-64/bin/kill_as_sudo.sh
2025-01-01 14:42:44.1685-INFO /home/filiono/Desktop/v2rayN-linux-64/bin/run_as_sudo.sh
2025-01-01 14:42:44.2227-DEBUG Error executing command as another user: Not authorized
This incident has been reported.
,Error executing command as another user: Not authorized
This incident has been reported.

2025-01-01 14:42:44.2227-DEBUG    at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Handler/CoreHandler.cs:line 306
2025-01-01 14:42:44.3499-INFO /home/filiono/Desktop/v2rayN-linux-64/bin/run_as_sudo.sh
2025-01-01 14:42:44.4153-DEBUG Error executing command as another user: Not authorized
This incident has been reported.
,Error executing command as another user: Not authorized
This incident has been reported.

2025-01-01 14:42:44.4153-DEBUG    at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo) in /home/runner/work/v2rayN/v2rayN/v2rayN/ServiceLib/Handler/CoreHandler.cs:line 306

额外信息

2025-01-01_15-00

我确认已更新至最新版本

我确认已查询历史issues

@filionos filionos added the bug Something isn't working label Jan 1, 2025
@filionos filionos changed the title [Bug]: Does not work on Linux unless I manually execute run_as_sudo.sh [Bug]: Tun does not work on Linux unless I manually execute run_as_sudo.sh Jan 1, 2025
@2dust
Copy link
Owner

2dust commented Jan 1, 2025

在Tun设置中,输入你的密码后试一试?

@filionos
Copy link
Author

filionos commented Jan 1, 2025

在Tun设置中,输入你的密码后试一试?

Huge thanks, it worked. It would be great if you added something about this to the error message, or maybe made a notification on the first Tun activation.

@2dust
Copy link
Owner

2dust commented Jan 2, 2025

在发布的页面有写过说明。
等有空时写一个WIKI吧

@2dust 2dust closed this as completed Jan 2, 2025
@2dust 2dust mentioned this issue Jan 2, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants