title: how can I change the permissions of a linux socket file?
body: <p>I have a program which creates a socket, and then I want to change the permissions of the socket file:</p>
  
  <pre><code>ret_val = chmod(filename, 0777);
  </code></pre>
  
  <p>, but it doesn't change, even though ret_val will be 0. If I try the same thing on a regular file, it works.</p>
  
  <p>Any ideas?</p>
  
  <p>P.S: I am running the program as root, so it has all the authority needed.</p>