fjmduran Posted June 5, 2019 Share Posted June 5, 2019 Hello I want read bitacora.txt file that my java application generates for log. File is generated with permission 640 in javaLog folder. javaLog folder has 777 permission. I change bitacora.txt permission to 777, but when I reload page, permission change to 640 so I can not read file, I get a error http 401: could not read file “/home1/fjmduran/javaLog/bitacora.txt” as uid 4165 Please, any idea? Thanks, Link to comment Share on other sites More sharing options...
wolstech Posted June 5, 2019 Share Posted June 5, 2019 Krydos is the one to answer this...lets have him take a look. 1 Link to comment Share on other sites More sharing options...
Krydos Posted June 7, 2019 Share Posted June 7, 2019 Try reading from the file now. 1 Link to comment Share on other sites More sharing options...
fjmduran Posted June 7, 2019 Author Share Posted June 7, 2019 Thanks Krydos, now, file has 644 permission. Could you tell me which was the problem? So, if problem repets again, I being able to solve for myself. Regards, Link to comment Share on other sites More sharing options...
Krydos Posted June 9, 2019 Share Posted June 9, 2019 Rather than letting tomcat create the file you could try creating an empty file yourself that tomcat has permissions to write to. Link to comment Share on other sites More sharing options...
fjmduran Posted June 9, 2019 Author Share Posted June 9, 2019 I did it (to create empty file) before to write in helionet and open this topic, but when Tomcat wrote, permissions file changed to 640.Thanks for your time Link to comment Share on other sites More sharing options...
Recommended Posts