Forum OpenACS Q&A: Permission Denied when installing OpenACS

Collapse
Posted by Aash SH on
I've managed to install postgresql 7.4.10, and aol server.

But when comes to the openacs installation part, I've stucked early at the beginning when service that I've created seems don't have enough pemission to proceed with the installation commands.

I followed every single step of the documentations for the postgresql and aolserver, and use the installation from the tarball in the documentation for openacs 5.1.4, but the version I tried to install is openacs 5.1.5.

I've use this:

useradd service001
usermod -G web service001

But the problem occurs as early as I want to extract the tarball from /tmp directory.

Error:
[service001@localhost aolserver]$ tar xzf /tmp/openacs-5.1.5.tar.gz
tar (child): /tmp/openacs-5.1.5.tar.gz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors

chmod and chown also didn't work and the error is operation not permitted.

Can anybody tell me how could I solve this problem, because I've come to this problem for several times and still can't find the solution.

Thanks in advance.

Collapse
Posted by Adam Aggeusz Jaworski on
Hello,

after installing PostgreSQL you should became root to continue
with installation, while from you have here it seems you are
trying to do it as user 'service001' which is wrong

HTH

Adam

Collapse
Posted by Aash SH on
If I'm not mistaken the documentation said that we must become the service user for the installation, not root, like this:

[root root]# su - $OPENACS_SERVICE_NAME
[$OPENACS_SERVICE_NAME $OPENACS_SERVICE_NAME]$ cd /var/lib/aolserver
[$OPENACS_SERVICE_NAME aolserver]$ tar xzf /tmp/openacs-5.1.4.tgz
[$OPENACS_SERVICE_NAME aolserver]$ mv openacs-5.1.4 $OPENACS_SERVICE_NAME
[$OPENACS_SERVICE_NAME aolserver]$ chmod -R 775 $OPENACS_SERVICE_NAME
[$OPENACS_SERVICE_NAME aolserver]$ chown -R
$OPENACS_SERVICE_NAME.$OPENACS_SERVICE_NAME $OPENACS_SERVICE_NAME
[$OPENACS_SERVICE_NAME aolserver]$ ls -al

_taken from https://openacs.org/doc/openacs-5-1/openacs.html

..but you said that root account should be used. How could this possible? Should I really use root instead?

Collapse
Posted by Adam Aggeusz Jaworski on
Hello,

documentation is wrong here, you must be root to perform 'chown'
you can safely make OpenACS install as root, just before you will
try to start AOLserver, make sure you have chown-ed OACS dirs/files
to user under which server will be started

HTH
Adam