cancel
Showing results for 
Search instead for 
Did you mean: 

Run Alfresco as non-root

a_uchi
Champ on-the-rise
Champ on-the-rise

Hello. I installed Alfresco 5.0.c with root.
But I want to run Alfresco as non-root.

I tried to chenge permission for directory and run alfresco, but it doesn't work.
Tomcat is fine, but postgresql doesn't run.

If anyone know how to run alfresco as non-root, Could you teach me please.

Thank you,

4 REPLIES 4

rjohnson
Star Contributor
Star Contributor
If you did a default install then you will need to change the ownership of all the files in alf_data to the user you want to run Alfresco under. With this done, sign in as that use and it should start up OK using alfresco.sh

You will need to change the "run as" user in your init script (if you use one) to make sure that Alfresco starts up under the correct user on a machine re-boot.

If you did a non default install then your data may be in different folders but the requirement remains that same.

a_uchi
Champ on-the-rise
Champ on-the-rise

Thank you for replying.

>If you did a default install then you will need to change the ownership of all the >files in alf_data to the user you want to run Alfresco under.
Should i change the ownership of all the files in only 'alf_data'?
What about in 'alf_data/postgresql'?

I think postgresql run as postgres.
Should i change all?

And what about other file? like ALF_HOME/postgresql and so on.

Thank you,

rjohnson
Star Contributor
Star Contributor
Yes. Change ownership of everything in alf_data and all sub directories.

Also, thinking about it, change the ownership on the logs and the log directories {alfresco}/tomcat/logs and the files in that and (usually) /var/log/alfresco and the files in that

a_uchi
Champ on-the-rise
Champ on-the-rise

Thank you for your answer.
its really helpful for me. now i solved.

I really appriciate.