Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recipe for setting umask #1038

Merged
merged 2 commits into from
Oct 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/sphinx/recipes/umask.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. _umask:

Setting the umask for your process
==================================

When using the :ref:`java-server-plugin`, the umask, associated with the user running the process,
will determine what permissions files generated by the process, such as log file, will have. Usually the system default umask
for daemons is fine and can be left unchanged, however sometime the need arises to oerride it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is a typo in "oerride".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! 😘


System V/systemd
----------------

To set a custom umask for your application that is running either via a System V init script or systemd, the umask can be
specified via a custom ``/etc/default/appname`` file. The contents of this file can be specified by creating a template at
``src/templates/etc-default`` and adding a line such as the following:


.. code-block:: bash

umask 022