我有 git 权限问题。当我从控制台运行 git 时,我必须在它前面添加 sudo 才能使其工作,但是当我使用 NetBeans GUI 时,脚本在没有“sudo”命令的情况下运行,结果我收到了以下错误消息:
[ java.io.IOException: No access ]
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能让它发挥作用?
我的 /var/www/html/apps/blog 目录内容的权限
wiktor@wiktor-VB:/var/www/html/apps/blog$ ls -la
all 140
drwxr-xr-x 9 wiktor wiktor 4096 lis 27 23:28 .
drwxr-xr-x 5 wiktor wiktor 4096 lis 27 21:32 ..
drwxr-xr-x 6 wiktor wiktor 4096 lis 27 21:34 app
drwxr-xr-x 2 wiktor wiktor 4096 lis 27 21:33 bin
-rw-r--r-- 1 wiktor wiktor 2318 lis 23 13:18 composer.json
-rw-r--r-- 1 wiktor wiktor 64050 lis 23 13:18 composer.lock
drwxr-xr-x 8 …Run Code Online (Sandbox Code Playgroud)