[sane-devel] Alioth cron job permission issue (was Re: SANE website on GitLab Pages)

Olaf Meeuwissen paddy-hack at member.fsf.org
Wed Jun 22 10:21:05 UTC 2016


m. allan noah writes:

> Hmm, recently I have been getting this from the nightly cron
> /home/groups/sane/bin/update-htdocs.sh
>
> chgrp: changing group of `./.git/index': Operation not permitted
>
> Is that related to a change you have made here?

I have not knowingly changed anything on Alioth (other than through the
regular git push mechanism).  All I've been doing is look around.  I did
not make any changes.  Well not intentionally at least.

Checking things gives

  olaf-guest at moszumanska:/home/groups/sane/htdocs$ ls -l .git/index 
  -rw-r--r-- 1 olaf-guest sane 70280 Jun 20 12:24 .git/index

I was logged in at that point in time according to `last`.  Insofar
`history` (and I ;-) can be trusted, during that login session I
executed the following commands

  cat sane-home/bin/update-sanei-docs.sh 
  ls sane-home/htdocs/
  ls sane-home/htdocs/backends
  ls sane-home/
  cd sane-home/htdocs/
  git status
  ls -l
  ls -l ../lists/
  ls -l ../sanei/
  ls -l ../old-archive/

where sane-home is a symlink in my $HOME directory to /home/groups/sane.

Anyway, I've restored group write permissions to .git/index.  I believe
that will fix the cron job issue.

  olaf-guest at moszumanska:/home/groups/sane/htdocs$ chmod g+w .git/index
  olaf-guest at moszumanska:/home/groups/sane/htdocs$ ls -l .git/index
  -rw-rw-r-- 1 olaf-guest sane 70280 Jun 20 12:24 .git/index

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Software                        https://my.fsf.org/donate
 Join the Free Software Foundation              https://my.fsf.org/join




More information about the sane-devel mailing list