Expand my Community achievements bar.

error.log file permissions

Avatar

Level 2

For some reason our 6.2 Author instance is writing the error.log file to the file system with rw ------ permissions. I've looked online but can't seem to find a way to configure file permissions. the other log files are OK. Anybody encounter this before ? 

-rw-r--r--   1 40134    4160      322662 Dec 20 15:57 access.log

-rw-r--r--   1 40134    4160     1780254 Dec 15 19:08 access.log.2017-12-15

-rw-r--r--   1 40134    4160      132162 Dec 17 23:44 access.log.2017-12-17

-rw-r--r--   1 40134    4160      748052 Dec 18 23:59 access.log.2017-12-18

-rw-r--r--   1 40134    4160      959394 Dec 19 23:59 access.log.2017-12-19

-rw-r--r--   1 40134    4160      119847 Dec 20 15:10 access.log_20171220_151111.gz

-rw-------   1 40134    4160     4036553 Dec 20 15:57 error.log

-rw-r--r--   1 40134    4160     2392709 Jun 10  2017 error.log.2017-06-10

-rw-------   1 40134    4160     28409438 Dec 20 15:12 error.log_20171220_151111.gz

drwx------   2 40134    4160        4096 Apr 11  2017 ffmpeg

-rw-r--r--   1 40134    4160        5452 Dec 20 15:56 history.log

-rw-r--r--   1 40134    4160      262719 Dec 20 14:56 history.log_20171220_151111.gz

-rw-r--r--   1 40134    4160           0 Dec 20 15:11 project-contentlibrary.log

-rw-r--r--   1 40134    4160       33842 Dec 20 13:14 project-contentlibrary.log_20171220_151111.gz

-rw-r--r--   1 40134    4160      179035 Dec 20 15:57 request.log

-rw-r--r--   1 40134    4160      690681 Dec 20 15:10 request.log_20171220_151111.gz

-rw-r--r--   1 40134    4160          23 Dec 20 15:55 stdout.log

-rw-r--r--   1 40134    4160       47246 Dec 20 14:36 stdout.log_20171220_151111.gz

-rw-r--r--   1 40134    4160      584041 Dec 20 15:56 tarmk-coldstandby.log

-rw-------   1 root     root     442554386 Dec 20 15:11 tarmk-coldstandby.log_20171220_151111.gz

1 Reply

Avatar

Employee Advisor

The file permissions are typically specified by the "umask" of the java process. Configure it accordingly in your start script, if you want to to change it (the default is OS specific).

I don't understand why the permissions are different for the error.log. My best assumption is that someone changed that manually. AEM doesn't deal with the permissions of the logfiles.

Jörg