• Files in Repository Root owned

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #48869  by farkinid2
 
Hi there,

I deployed OpenKM 6.3.2 community last year in my office. It is running on Ubuntu 18.04 server.

Today I received some reports from users asking why they could not download some files from the repository. When I went in to check, the logs showed that openkm could not find those files which the users could not download. It was a javaio file not found with the path to the file.

When I looked in the repository I could find the file but the ownership of the file was changed to root:root. This made it invisible to openkm. Upon changing the ownership of the file to openkm:openkm the user could operate on the file as per normal.

However there are many more files with this issue. How did these files when uploaded get their ownership set to root:root? I'm completely stumped
 #48878  by jllort
 
That happened because in some moment the application was started by root. Then all the files ( logs ) and new files added in the repository are created and updated by the user who started the application. Usually happens when started the application from the terminal with ./bin/catalina.sh or ./bin/start.sh scripts

Replace all the owner in the whole tomcat :
Code: Select all
chown openkm:openkm -R tomcat-XXXX
And ensure in future you start and stop openkm with service ( what might use openkm user either root )
 #48902  by farkinid2
 
Hi jllort

Thanks for the reply. So I will proceed to chown the entire repository to openkm:openkm

As for the start and stop of the openkm service, I already have a systemd file with user and group set to openkm. But you might be right about the catalina.sh start or stop because a colleague was making some changes to the system. I will monitor and see.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.