On Tue, Jul 07, 2009 at 10:11:13PM -0400, Greg DeKoenigsberg wrote: > > Hello folks. > > I had a working Spacewalk install running on RHEL 5.3. > > I then applied the instructions here: > > https://fedorahosted.org/spacewalk/wiki/DevelopmentWorkstationSetup > > ...to turn my Spacewalk install into a development workstation. Hurray! > > So most of this process appears to set up all the appropriate stuff in my > own personal Spacewalk directory, with the intention of pointing > Spacewalk to my own stuff instead of the RPM-installed stuff. > > Looking at the results of "sudo ant install-devel" seems to confirm (and > yes, I'm installing Spacewalk as the user "tito"): > > ===== > > Buildfile: build.xml > > install-web: > [symlink] ln -s /home/tito/spacewalk/web/html /var/www/html > [mkdir] Created dir: /var/www/lib > [symlink] ln -s /home/tito/spacewalk/web/modules/cypress/Cypress > /var/www/lib/Cypress > [symlink] ln -s /home/tito/spacewalk/web/modules/dobby/Dobby > /var/www/lib/Dobby > [symlink] ln -s /home/tito/spacewalk/web/modules/grail/Grail > /var/www/lib/Grail > [symlink] ln -s /home/tito/spacewalk/web/modules/moon/Moon > /var/www/lib/Moon > [symlink] ln -s /home/tito/spacewalk/web/modules/pxt/PXT > /var/www/lib/PXT > [symlink] ln -s /home/tito/spacewalk/web/modules/rhn/RHN > /var/www/lib/RHN > [symlink] ln -s /home/tito/spacewalk/web/modules/sniglets/Sniglets > /var/www/lib/Sniglets > [symlink] ln -s /home/tito/spacewalk/branding/css /var/www/html/css > [symlink] ln -s /home/tito/spacewalk/branding/img /var/www/html/img > [symlink] ln -s /home/tito/spacewalk/branding/templates > /var/www/html/templates > [symlink] ln -s /home/tito/spacewalk/branding/styles > /var/www/html/nav/styles > > install-java: > [mkdir] Created dir: /var/lib/tomcat5/webapps.save > [symlink] ln -s /home/tito/spacewalk/java/rhnwebapp > /var/lib/tomcat5/webapps/rhn > > install-devel: > > BUILD SUCCESSFUL > > ===== > > Now all of the permissions are broken. Before I go figuring out exactly > which permissions are required by what, I thought I'd ask the question: > why is it that this build file, which must be run as root anyway, doesn't > simply apply the right default permissions? Why must I guess which > symlinks should be changed to apache, and which to tomcat, and so on?
Ah I think I know what the problem is. The tomcat/apache users need access to where your code is running from. I gave the apache and tomcat users acl to my homedir, you can probably limit it to your spacewalk checkout. getfacl /home/jesusr/ getfacl: Removing leading '/' from absolute path names # file: home/jesusr # owner: jesusr # group: jesusr user::rwx user:apache:r-x user:tomcat:r-x group::--- mask::r-x other::--- we don't do it in the script because we don't know how you want us to change it. But it SURELY should be added to the wiki so folks are aware of what needs to happen. jesus -- jesus m. rodriguez | [email protected] sr. software engineer | irc: zeus rhn satellite & spacewalk | 919.754.4413 (w) rhce # 805008586930012 | 919.623.0080 (c) +-------------------------------------------+ | "Those who cannot learn from history | | are doomed to repeat it." | | -- George Santayana | +-------------------------------------------+ _______________________________________________ Spacewalk-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-devel
