Changing permission on EMS server log files.

Changing permission on EMS server log files.

book

Article ID: KB0093629

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Description:
When EMS creates a new log file, it calls the "open" system call and sets permission on the file to 666. On *NIX, permission on new files that are created may be restricted by a permissions "umask". The effective permission of the new log file is "mode & ~umask".





Resolution

For example, run the following commands on Linux:

1). umask 000

2). Start EMS server.

3). In tibemsadmin, run:

rotatelog

A new EMS log will be created.

4). The permission on the new log file is 644.

On Linux, the default umask value is usually 0022 (022). You can write a new umask value in shell’s configuration file or in the /etc/profile file. Consult your System Administrator if needed.



Issue/Introduction

Changing permission on EMS server log files.

Additional Information

http://news.softpedia.com/news/How-to-Change-Umask-Value-Permanently-in-Linux-435026.shtml

http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html