Hmm... reproduced it and not sure the best way of dealing with it at this point....<br><br>After a silly thing (thankfully this was early in the process of getting systems subscribed to the server so not much loss) I had to rebuild the spacewalk repo yesterday.<br>
<br>Sync'd the repos overnight and found the following:<br><br>Repo's that had been sync'd via spacewalk-repo-sync had a directory owned by root:root. Further down the tree they were owned by apache:apache. A package that is destined for an existing directory via rhnpush naturally gets permission denied for that folder but for a fresh folder of course there are no problems with the rhnpush.<br>
<br>The spacewalk-repo-sync python script starts as follows:<br><br>def main():<br><br>    # quick check to see if you are a super-user.<br>    if os.getuid() != 0:<br>        sys.stderr.write('ERROR: must be root to execute\n')<br>
        sys.exit(8)<br><br>There is then an obvious logical break here.....<br><br>For now I'll add a recursive chown apache:apache to my daily cron sync script so that rhnpush for in house packages isn't broken. Going forwards we should probably have the spacewalk-repo-sync script check ownership of /var/satellite and run as that owner perhaps....<br>
<br>Thoughts?<br> <br><div class="gmail_quote">2009/12/8 James Hogarth <span dir="ltr"><<a href="mailto:james.hogarth@gmail.com">james.hogarth@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
only via spacewalk-sync-repo  .... and that says it requires being run as root if run as an unprivileged user<br><br><div class="gmail_quote">2009/12/8 John Hodrien <span dir="ltr"><<a href="mailto:J.H.Hodrien@leeds.ac.uk" target="_blank">J.H.Hodrien@leeds.ac.uk</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On Tue, 8 Dec 2009, James Hogarth wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thats exactly what I saw a few weeks ago - couldn't isolate what caused it<br>
however..... and a chown -R apache left it fine for future syncs<br>
</blockquote>
<br></div>
Have you done a repo-sync as root?<br><font color="#888888">
<br>
jh</font><div><div></div><div><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>