i want to setup up git protocol for unauthenticated read-only access, but 
git-daemon cannot work properly when i run this command
git daemon --reuseaddr --user=git-ro --base-path=/opt/git/ /opt/git/
it shows :
warning: unable to access '.git/config': Permission denied
fatal: cannot drop privileges

lee@ubuntu:/home/git$ ls -l /opt/git
total 4
drwxr-xr-x 7 root root 4096 Dec 13 10:38 project.git
lee@ubuntu:/home/git$ ls -l /opt
total 4
drwxr-xr-x 3 root root 4096 Dec 12 19:35 git
lee@ubuntu:/home/git$ ls /opt/git/project.git
branches  description           HEAD   info     refs
config    git-daemon-export-ok  hooks  objects

git version is 1.8.0-rc3
os is Ubuntu 12.04.1 LTS

thanks

-- 


Reply via email to