On Tue, 13 Sep 2011 16:16:51 +0200
er <arobase...@gmail.com> wrote:

> > [...]
> >> $ git checkout -b gh-pages origin/gh-pages
> >> warning: unable to unlink c_array/doc/html/c_array_HTML.manifest:
> >> Permission denied
> >> warning: unable to unlink c_array/doc/html/index.html: Permission
> >> denied
> >> Branch gh-pages set up to track remote branch gh-pages from origin.
> >> Switched to a new branch 'gh-pages'
> >>
> >> What should I do about the warnings, here?
> > What's the output of
> >
> > $ ls -l c_array/doc/html/c_array_HTML.manifest
> > $ ls -l c_array/doc/html/index.html
> > $ ls -ld _array/doc/html/
> > $ id
> >
> > ?
> Thanks for following up.
> 
> -rw-r--r--  1 root  staff  11 Aug 28 21:43
> c_array/doc/html/c_array_HTML.manifest -rw-r--r--  1 root  staff
> 12998 Sep  2 21:58 c_array/doc/html/index.html
> drwxr-xr-x  4 root  staff  136 Aug 28
> 17:32 c_array/doc/html/
> 
> uid=502(er) gid=20(staff) 
> groups=20(staff),101(com.apple.sharepoint.group.1),204(_developer),100
> (_lpoperator),98(_lpadmin),81(_appserveradm),80(admin),79
> (_appserverusr),61(localaccounts),12(everyone),401
> (com.apple.access_screensharing)

When trying to delete files in that "c_array/doc/html/" folder, the
system considers your membership in the "staff" group, but that group
does not have write permission on that folder (which, on directories,
controls the right to create or delete files--that is, change the
directory contents).

P.S.
Note that root:staff appear to be really weird permissions for
something like files in a git repo, really, because it looks like the
repo has been created by the user root (hence the owner).  So if you did
that as root, then don't, ever; instead, work as a normal user,
presumably somewhere under ~/devel.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to