Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] eXist port after installing by means of the rpm

Subject: perfsonar development work

List archive

Re: [pS-dev] eXist port after installing by means of the rpm


Chronological Thread 
  • From: Stijn Melis <>
  • To:
  • Cc: Guilherme Fernandes <>, "" <>
  • Subject: Re: [pS-dev] eXist port after installing by means of the rpm
  • Date: Wed, 06 Feb 2008 12:03:58 +0100

Hi,

Normally, all the packages, perfsonar-tomcat and perfsonar-exist
should install files that belongs to perfsonar user. So all the folder perfsonar-tomcat and perfsonar-exist
should have the following UNIX access rights: perfsonar:perfsonar with read/write access for user perfsonar.

This is the case at the moment. I have this as output:

[perfsonar@localhost
~]$ pwd
/home/perfsonar
[perfsonar@localhost
~]$ ls -l
total 18192
-rw-r--r-- 1 root root 18565049 2008-02-06 10:18 geant2_java-sshtelnet-mp-1.3RC1-1.i386.rpm
lrwxrwxrwx 1 perfsonar perfsonar 37 2008-02-05 15:46 perfsonar-exist -> /home/perfsonar/perfsonar-exist-1.1.1
drwxr-xr-x 2 perfsonar perfsonar 4096 2008-02-05 15:46 perfsonar-exist-1.1.1
lrwxrwxrwx 1 perfsonar perfsonar 38 2008-02-05 15:46 perfsonar-tomcat -> /home/perfsonar/perfsonar-tomcat-6.0.7
drwxr-xr-x 9 perfsonar perfsonar 4096 2008-02-06 11:33 perfsonar-tomcat-6.0.7
drwxr-xr-x 3 perfsonar perfsonar 4096 2008-02-06 11:33 webapps
[perfsonar@localhost
~]$ cd webapps/
[perfsonar@localhost
webapps]$ ls -l
total 12
lrwxrwxrwx 1 perfsonar perfsonar 55 2008-02-06 11:33 geant2_java-sshtelnet-mp -> /home/perfsonar/webapps/geant2_java-sshtelnet-mp-1.3RC1
drwxr-xr-x 4 perfsonar perfsonar 4096 2008-02-06 11:33 geant2_java-sshtelnet-mp-1.3-RC1

As you can see the symbolic link also belongs to the perfsonar user, yet when I try to go to that directory I get an error.

[perfsonar@localhost
webapps]$ cd geant2_java-sshtelnet-mp
-bash: cd: geant2_java-sshtelnet-mp: No such file or directory

I tried going to that directory as root, and even this does not work. I get the same error.

[root@localhost
webapps]# cd geant2_java-sshtelnet-mp
-bash: cd: geant2_java-sshtelnet-mp: No such file or directory

Tomcat also doesn't start the webservice, because it can't access that directory.

When you build your own package (using perfsonar user) make sure that all the files you install
have also the same UNIX access right. (i.e perfsonar:perfsonar with read/write access for perfsonar user)

Make sure that during the telnet/ssh mp rpm building process all these UNIX rights are set accordingly.

This is output of the machine I built the rpm on:

[perfsonar@localhost
~]$ ls -l
total 44
drwxr-xr-x 9 perfsonar perfsonar 4096 Feb 5 15:33 apache-tomcat-6.0.7
drwxr-xr-x 10 perfsonar perfsonar 4096 Feb 5 15:33 geant2_java-sshtelnet-mp-1.3-RC1
drwxr-xr-x 9 perfsonar perfsonar 4096 Feb 6 10:17 rpm
-rw-r--r-- 1 perfsonar perfsonar 7127 Jan 30 15:00 rpm_maker.pl
drwxr-xr-x 3 perfsonar perfsonar 4096 Feb 5 15:42 webapps
[perfsonar@localhost
~]$ cd webapps/
[perfsonar@localhost
webapps]$ ls -l
total 12
lrwxrwxrwx 1 perfsonar perfsonar 57 Feb 5 15:42 geant2_java-sshtelnet-mp -> /home/perfsonar/webapps/geant2_java-sshtelnet-mp-1.3-RC1/
drwxr-xr-x 4 perfsonar perfsonar 4096 Feb 5 15:41 geant2_java-sshtelnet-mp-1.3-RC1

Once again, the symbolic link belongs to the perfsonar user. And here I can go into this directory using the perfsonar user:

[perfsonar@localhost
webapps]$ cd geant2_java-sshtelnet-mp
[perfsonar@localhost
geant2_java-sshtelnet-mp]$ ls
default.css happyaxis.jsp index.jsp perfsonar_logo.gif
fingerprint.jsp i18nLib.jsp main.css WEB-INF
geant2_java-sshtelnet-mp index.html partners.gif wsdd

I use two different machines (both in VMware), the one I build the rpm on is Fedora Core 6, and the other one is Fedora Core 8. Does this make a difference?


Just be careful when executing perfsonar-tomcat as root, because all the files created at this time will be owned by root (e.g root:root). So afterwads if you launch the perfsonar-tomcat as perfsonar user, tomcat won't start because of the files permission ...

If you're not sure, log as root and issue the followinf command:
chown -R perfsonar:perfsonar ~perfsonar
chmod -R u+rw perfsonar:perfsonar ~perfsonar

The chmod command does not seem to work.

[root@localhost
webapps]# chmod -R u+rw perfsonar:perfsonar ~perfsonar
chmod: cannot access `perfsonar:perfsonar': No such file or directory


Hope this help.
Best regards/Frederic

Thanks,

Stijn



Archive powered by MHonArc 2.6.16.

Top of Page