<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: default umask for file creation on OS in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/default-umask-for-file-creation-on-OS/m-p/46699#M179362</link>
    <description>&lt;P&gt;I was looking more for a setting from a Splunk config. Managing Acls is along the same lines as having to manage permissions. Also, I have SunOS, AIX, &amp;amp; Linux to manage. I should have been more specific in my question. Thanks for the feedback though.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2012 14:55:16 GMT</pubDate>
    <dc:creator>chicodeme</dc:creator>
    <dc:date>2012-07-06T14:55:16Z</dc:date>
    <item>
      <title>default umask for file creation on OS</title>
      <link>https://community.splunk.com/t5/Splunk-Search/default-umask-for-file-creation-on-OS/m-p/46697#M179360</link>
      <description>&lt;P&gt;Splunk runs as root so it has access to monitor anything on the system without managing those permissions. &lt;BR /&gt;
I ran this&lt;BR /&gt;
find /opt/splunk/ -type d -exec chmod g+s {} \;&lt;BR /&gt;
The files get created:&lt;BR /&gt;
-rw-------  1 root   splunk filename&lt;BR /&gt;
I want to have it&lt;BR /&gt;
-rw-rw----  1 root   splunk filename&lt;/P&gt;

&lt;P&gt;Any ideas besides change the root user default umask?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2011 20:19:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/default-umask-for-file-creation-on-OS/m-p/46697#M179360</guid>
      <dc:creator>chicodeme</dc:creator>
      <dc:date>2011-07-21T20:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: default umask for file creation on OS</title>
      <link>https://community.splunk.com/t5/Splunk-Search/default-umask-for-file-creation-on-OS/m-p/46698#M179361</link>
      <description>&lt;P&gt;One option would be to &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/installation/RunSplunkasadifferentornon-rootuser"&gt;run Splunk as a non-root user&lt;/A&gt;, and set the umask on the Splunk account. You would need to make sure all log files are viewable by the Splunk account, of course.&lt;/P&gt;

&lt;P&gt;If you do need to run Splunk as root, POSIX ACLs may be your answer. Something like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Make sure all existing files are group-owned by Splunk. Set the filesystem
# ACL to allow the Splunk group as the default for new files, and set the 
# same ACL on currently existing files.
cd /opt/splunk/etc/apps
sudo setfacl -R -b .
sudo chown -R splunk:splunk .
sudo setfacl -R -d -m g:splunk:rwx .
sudo setfacl -R -m g:splunk:rwx .

# Then repeat the above for /opt/splunk/etc/system/local or other paths as desired.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jul 2012 14:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/default-umask-for-file-creation-on-OS/m-p/46698#M179361</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2012-07-06T14:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: default umask for file creation on OS</title>
      <link>https://community.splunk.com/t5/Splunk-Search/default-umask-for-file-creation-on-OS/m-p/46699#M179362</link>
      <description>&lt;P&gt;I was looking more for a setting from a Splunk config. Managing Acls is along the same lines as having to manage permissions. Also, I have SunOS, AIX, &amp;amp; Linux to manage. I should have been more specific in my question. Thanks for the feedback though.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2012 14:55:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/default-umask-for-file-creation-on-OS/m-p/46699#M179362</guid>
      <dc:creator>chicodeme</dc:creator>
      <dc:date>2012-07-06T14:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: default umask for file creation on OS</title>
      <link>https://community.splunk.com/t5/Splunk-Search/default-umask-for-file-creation-on-OS/m-p/46700#M179363</link>
      <description>&lt;P&gt;Agreed that a configurable umask setting in Splunk would be a big plus. (Time to file an ER!).&lt;/P&gt;

&lt;P&gt;The distinction with using POSIX ACLs instead of traditional permissions is that you should only have to do it once. If you set the default ACL, I believe that it should inherit down as new files/directories are created by Splunk (Contrast that with the find/chmod approach, which you have to do over and over again as Splunk creates and modifies files in &lt;CODE&gt;local&lt;/CODE&gt;.)&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2012 15:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/default-umask-for-file-creation-on-OS/m-p/46700#M179363</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2012-07-06T15:28:20Z</dc:date>
    </item>
  </channel>
</rss>

