<?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: SAS Workspace server logs permission in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Workspace-server-logs-permission/m-p/477785#M13594</link>
    <description>&lt;P&gt;Your question is highly illogical (&lt;A href="https://www.youtube.com/watch?v=mdf25VY8RYA" target="_blank"&gt;https://www.youtube.com/watch?v=mdf25VY8RYA&lt;/A&gt;). How should a process write information to the log, when the owner of the process doesn't have write permission anymore?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've enacted some kind of security by obscurity for this problem:&lt;/P&gt;
&lt;P&gt;In every user's home directory is a directory logs, to which the WS logs are written (configured in the logconfig.xml of the workspace server), this directory has the following permissions:&lt;/P&gt;
&lt;PRE&gt;drwx-ws---    2 root     group          4096 Jul 11 19:10 logs&lt;/PRE&gt;
&lt;P&gt;The users can write there because of the write permission of their group, but they can't read the directory (they can't get a listing of filenames), making it rather hard (for the average user) to find their own logs and change them (which is still possible in principle).&lt;/P&gt;
&lt;P&gt;A determined user might be able to retrieve logs by studying the entry in the logconfig.xml and then run a "brute force" attack by trying all possible names for a given log file, and once it's found, edit it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jul 2018 05:55:25 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-07-13T05:55:25Z</dc:date>
    <item>
      <title>SAS Workspace server logs permission</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Workspace-server-logs-permission/m-p/477691#M13591</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently in the SAS Platform , there are workspace server logs are getting generated in the server. The logs files are generated with the permission (644) i.e.&amp;nbsp; owner of the log file can read and edit the file and others can only read the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But we have a requirement that even the owner of the file should not edit the log file because if he/she edit the file, its tough to trace if admin wants to analysis the query what has been issued. Everyone should have only read only access to the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if we change the permission of the file for all user/group as read, then I don't think logs will be written to the file under workspace directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to achieve this requirement?? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 21:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Workspace-server-logs-permission/m-p/477691#M13591</guid>
      <dc:creator>helannivas88</dc:creator>
      <dc:date>2018-07-12T21:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Workspace server logs permission</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Workspace-server-logs-permission/m-p/477785#M13594</link>
      <description>&lt;P&gt;Your question is highly illogical (&lt;A href="https://www.youtube.com/watch?v=mdf25VY8RYA" target="_blank"&gt;https://www.youtube.com/watch?v=mdf25VY8RYA&lt;/A&gt;). How should a process write information to the log, when the owner of the process doesn't have write permission anymore?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've enacted some kind of security by obscurity for this problem:&lt;/P&gt;
&lt;P&gt;In every user's home directory is a directory logs, to which the WS logs are written (configured in the logconfig.xml of the workspace server), this directory has the following permissions:&lt;/P&gt;
&lt;PRE&gt;drwx-ws---    2 root     group          4096 Jul 11 19:10 logs&lt;/PRE&gt;
&lt;P&gt;The users can write there because of the write permission of their group, but they can't read the directory (they can't get a listing of filenames), making it rather hard (for the average user) to find their own logs and change them (which is still possible in principle).&lt;/P&gt;
&lt;P&gt;A determined user might be able to retrieve logs by studying the entry in the logconfig.xml and then run a "brute force" attack by trying all possible names for a given log file, and once it's found, edit it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 05:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Workspace-server-logs-permission/m-p/477785#M13594</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-13T05:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Workspace server logs permission</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Workspace-server-logs-permission/m-p/477826#M13596</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/182470"&gt;@helannivas88&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;. The user must have write access to the file to be able to generate the file. Maybe to try and mitigate the risk, you could always move the&amp;nbsp;logs to a secure location as soon as the SAS job finishes. This only leaves a window period from when the log was last written to, to the time being moved. E.g. put in a check to move the file as soon as the Workspace server PID dies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But on another level, if you are dealing with cases where users are editing logs files as to alter the details of e.g. a query, then IMHO you are dealing with a case of fraud. If so, I would really suggest that you engage with your IT security to investigate.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 10:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Workspace-server-logs-permission/m-p/477826#M13596</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-07-13T10:49:31Z</dc:date>
    </item>
  </channel>
</rss>

