How to control user permissions of deployed folder after hot deployment in JBoss EAP?

Solution Verified - Updated -

Issue

  • While doing hot deployments the war file gets expanded with a 777 permission which should not happen.
  • Change default file permissions for JBoss.
  • We'd like to have 644 rights on the log files. But they are created with 600( for server.log). Changing the UMASK ->022 of the JBoss user and restart the service does not help.
  • Running Jboss as a non-root user, umask 022, all folder and files permissions are right and correct EXCEPT for the logs folder for Jboss.
    User umask is 022, logon as user, create a file in the folder, creates as 755, but when the JBoss process is running and using the folder, all logs are 700, even though folder and user are not set that restrictive. Chown all files to correct permissions, JBoss roles logs back to 700.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
    • 6.x
    • 5.x
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content