title: How to modify file access control in .NET Core
body: <p>I'm trying to change the permissions of a file in .NET Core.
  However, it seems that <a href="https://msdn.microsoft.com/en-us/library/system.io.fileinfo.setaccesscontrol(v=vs.110).aspx" rel="noreferrer">FileInfo</a> doesn't have any <code>SetAccessControl</code> anymore.</p>
  
  <pre><code>// Create a new FileInfo object.
  FileInfo fInfo = new FileInfo(FileName);
  
  // Get a FileSecurity object that represents the 
  // current security settings.
  FileSecurity fSecurity = fInfo.GetAccessControl();
  
  // Add the FileSystemAccessRule to the security settings. 
  fSecurity.AddAccessRule(new FileSystemAccessRule(Account,
                                                  Rights,
                                                  ControlType));
  
  // Set the new access settings.
  fInfo.SetAccessControl(fSecurity);
  </code></pre>
  
  <p>The goal is just to add execution right to the current owner of a file (which is not Windows or Unix specific feature).</p>
  
  <p>Any clues on how to do that on .NET Core ?</p>