当我跑步时git pull origin test,我得到
git pull origin test
fatal: unable to connect to cache daemon: Permission denied
然后提示输入github用户名和密码。该目录位于我的主文件夹(~/www/software)下。有任何想法吗?如果使用sudo,它可以工作,但是我不认为必须在自己的主文件夹中使用su!
~/www/software
sudo
这是结果ls -l:
ls -l
drwxrwxrwx 48 root root 53248 Jan 3 12:10 application -rw-rw-r-- 1 andrewr andrewr 1458793 Jan 2 10:09 a.txt -rw-rw-r-- 1 andrewr andrewr 186 Jan 2 10:09 Desktop.ini -rw-rw-r-- 1 andrewr andrewr 1406 Jan 2 10:10 favicon.ico -rw-rw-r-- 1 andrewr andrewr 6858 Jan 2 10:10 fb.jpg -rw-rw-r-- 1 andrewr andrewr 2 Jan 2 10:10 format -rw-rw-r-- 1 andrewr andrewr 398 Jan 2 10:10 index.php -rw-rw-r-- 1 andrewr andrewr 16572 Jan 2 10:10 license.txt -rw-rw-r-- 1 andrewr andrewr 1390 Jan 2 10:10 loginscreen.php -rw-rw-r-- 1 andrewr andrewr 6424 Jan 2 10:10 md5_login.js -rw-rw-r-- 1 andrewr andrewr 65 Jan 2 10:10 phpinfo.php -rw-rw-r-- 1 andrewr andrewr 9202 Jan 2 10:10 readme.html -rw-rw-r-- 1 andrewr andrewr 101 Jan 2 10:09 README.md -rw-rw-r-- 1 andrewr andrewr 229 Jan 2 10:09 README.txt -rw-rw-r-- 1 andrewr andrewr 180467 Jan 2 10:10 svn.ico -rw-rw-r-- 1 andrewr andrewr 71 Jan 2 10:10 test.php -rw-rw-r-- 1 andrewr andrewr 46080 Jan 2 10:09 Thumbs.db -rw-rw-r-- 1 andrewr andrewr 4268 Jan 2 10:10 wp-activate.php drwxrwxrwx 9 root root 4096 Jan 2 10:10 wp-admin -rw-rw-r-- 1 andrewr andrewr 40272 Jan 2 10:10 wp-app.php -rw-rw-r-- 1 andrewr andrewr 274 Jan 2 10:10 wp-blog-header.php -rw-rw-r-- 1 andrewr andrewr 3982 Jan 2 10:10 wp-comments-post.php -rw-rw-r-- 1 andrewr andrewr 3444 Jan 2 10:10 wp-config.php -rw-rw-r-- 1 andrewr andrewr 3087 Jan 2 10:10 wp-config-sample.php drwxrwxrwx 6 root root 4096 Jan 2 10:10 wp-content -rw-rw-r-- 1 andrewr andrewr 2684 Jan 2 10:10 wp-cron.php drwxrwxrwx 8 root root 4096 Jan 2 10:10 wp-includes -rw-rw-r-- 1 andrewr andrewr 1997 Jan 2 10:10 wp-links-opml.php -rw-rw-r-- 1 andrewr andrewr 2546 Jan 2 10:10 wp-load.php -rw-rw-r-- 1 andrewr andrewr 27695 Jan 2 10:10 wp-login.php -rw-rw-r-- 1 andrewr andrewr 7777 Jan 2 10:10 wp-mail.php -rw-rw-r-- 1 andrewr andrewr 413 Jan 2 10:10 wp-pass.php -rw-rw-r-- 1 andrewr andrewr 334 Jan 2 10:10 wp-register.php -rw-rw-r-- 1 andrewr andrewr 9913 Jan 2 10:10 wp-settings.php -rw-rw-r-- 1 andrewr andrewr 18545 Jan 2 10:10 wp-signup.php -rw-rw-r-- 1 andrewr andrewr 3702 Jan 2 10:10 wp-trackback.php -rw-rw-r-- 1 andrewr andrewr 1834 Jan 2 10:10 x.htaccess.bak -rw-rw-r-- 1 andrewr andrewr 3266 Jan 2 10:10 xmlrpc.php
几乎所有更改都在application文件夹中进行
application
问题是git无法连接到其凭据缓存(有关更多信息,请阅读http://git-scm.com/docs/git-credential- cache)。
从文档:
可以通过Unix域套接字访问该缓存,该缓存受文件系统权限限制为当前用户。
因此,您所需要做的就是检查该域套接字的文件权限。通常将其放置 ~/.git-credential- cache/socket并更改它们以使其可由andrewr用户访问。
~/.git-credential- cache/socket
andrewr