Forum OpenACS Q&A: Permission Denied when installing OpenACS
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:
usermod -G web service001
But the problem occurs as early as I want to extract the tarball from /tmp directory.
[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.
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
[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 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?
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