title: What permissions are needed to delete a file in unix?
body: <p>I currently have a directory (udir), which has only read and write permissions for all users. This directory contains two files (file1 &amp; file2)</p>
  
  <p>I initially though that only write access was needed (on the directory) for me to be able to delete/remove a file via (rm udir/file1) but the rm command would give me access denied.  when i set the permissions to read, write, and execute, the rm command works.</p>
  
  <p>Obviously the execute access is needed as well but why??</p>
  
  <p>I thought the execute access on a directory was to be able to make it a working a directory and search its contents and access sub directories.  </p>